tx · Gy5VD2jhMzfpbgh72z1PBSqKHS77mwGnxRGyXfELZ13A 3N9DpWDvNPnq3wuuyh2cGk9hcKfoke9CCfL: -0.01000000 Waves 2021.10.31 20:11 [1770768] smart account 3N9DpWDvNPnq3wuuyh2cGk9hcKfoke9CCfL > SELF 0.00000000 Waves
{ "type": 13, "id": "Gy5VD2jhMzfpbgh72z1PBSqKHS77mwGnxRGyXfELZ13A", "fee": 1000000, "feeAssetId": null, "timestamp": 1635700278460, "version": 2, "chainId": 84, "sender": "3N9DpWDvNPnq3wuuyh2cGk9hcKfoke9CCfL", "senderPublicKey": "A695BnQcmLqEPwcN5kdhv4bHipgdE4FnM5CBEMtA95Mo", "proofs": [ "Nu97eGGELVfTDmg6FdDbcwX2MrKfonCdzbFXfBbA9db3szEyCJhTxs86AbCnek2fjHUytRAPeLokH4oS38qGrc1" ], "script": "base64:AAIDAAAAAAAAAAsIARIHCgUICAgBAQAAACwAAAAAB3hCaXRDTzIBAAAAICAEZKaqA3sNb6aq+pclWLOWiXpTDP/vusZoh2yDVNyNAAAAAA1zdGFydFRvdGFsUXR5AAAAAAAABKodAAAAAAxGaXJzdEZhc2VRdHkAAAAAAAAAK7kAAAAADVNlY29uZEZhc2VRdHkAAAAAAAAEMEQAAAAAA3d2cwAAAAAABfXhAAAAAAAETk9ORQIAAAAEbm9uZQAAAAAFZXVyb3UAAAAAAAAAAHQAAAAABXVzZG53AAAAAAAAAAnrAAAAAAViY28yZQAAAAAAAAAACgAAAAALT3duZXJQdWJLZXkBAAAAIIcKNq99kuJ9WetD4RzbqGBoQt3P74qF++Y9wltvbHx2AQAAAA5nZXROdW1iZXJCeUtleQAAAAEAAAADa2V5BAAAAANudW0EAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAAFAAAAA251bQEAAAALZ2V0U3RyQ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": 0 } View: original | compacted Prev: 3cf28zh3yjdisubUUjnmj5tCe2yH2CaKcwp2an5QZ2vS Next: 7cQ13Mq2ZBvW8EaqEjpS14BXuvTs3h5nVKHgBg3mtxeP Diff:
Old | New | Differences | |
---|---|---|---|
12 | 12 | let wvs = 100000000 | |
13 | 13 | ||
14 | 14 | let NONE = "none" | |
15 | - | ||
16 | - | let totalAmount = 43631351 | |
17 | - | ||
18 | - | let peru = 1 | |
19 | 15 | ||
20 | 16 | let eurou = 116 | |
21 | 17 | ||
170 | 166 | let userAddress = toBase58String(i.caller.bytes) | |
171 | 167 | let desc1 = (1000 - userDiscount) | |
172 | 168 | let currentTokenPrice = (((((desc1 * bco2e) * eurou) * 1000000000000) / 1000) / usdnw) | |
169 | + | let totalAmount = (((orderQty * 10000) * currentTokenPrice) / 100000000) | |
173 | 170 | if ((totalAmount > pmt.amount)) | |
174 | 171 | then throw("Payment Amount can't be less than item Purchase Order") | |
175 | 172 | else if ((pmt.amount > totalAmount)) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let xBitCO2 = base58'39yw38hm342hiK43SqELTaZRkTWJoBc22XpxmsSiBrsN' | |
5 | 5 | ||
6 | 6 | let startTotalQty = 305693 | |
7 | 7 | ||
8 | 8 | let FirstFaseQty = 11193 | |
9 | 9 | ||
10 | 10 | let SecondFaseQty = 274500 | |
11 | 11 | ||
12 | 12 | let wvs = 100000000 | |
13 | 13 | ||
14 | 14 | let NONE = "none" | |
15 | - | ||
16 | - | let totalAmount = 43631351 | |
17 | - | ||
18 | - | let peru = 1 | |
19 | 15 | ||
20 | 16 | let eurou = 116 | |
21 | 17 | ||
22 | 18 | let usdnw = 2539 | |
23 | 19 | ||
24 | 20 | let bco2e = 10 | |
25 | 21 | ||
26 | 22 | let OwnerPubKey = base58'A695BnQcmLqEPwcN5kdhv4bHipgdE4FnM5CBEMtA95Mo' | |
27 | 23 | ||
28 | 24 | func getNumberByKey (key) = { | |
29 | 25 | let num = match getInteger(this, key) { | |
30 | 26 | case a: Int => | |
31 | 27 | a | |
32 | 28 | case _ => | |
33 | 29 | 0 | |
34 | 30 | } | |
35 | 31 | num | |
36 | 32 | } | |
37 | 33 | ||
38 | 34 | ||
39 | 35 | func getStrByKey (key) = { | |
40 | 36 | let str = match getString(this, key) { | |
41 | 37 | case a: String => | |
42 | 38 | a | |
43 | 39 | case _ => | |
44 | 40 | NONE | |
45 | 41 | } | |
46 | 42 | str | |
47 | 43 | } | |
48 | 44 | ||
49 | 45 | ||
50 | 46 | func getKeyProjectCategory (item) = "Categoría:" | |
51 | 47 | ||
52 | 48 | ||
53 | 49 | func getValueProjectCategory (item) = getStrByKey(getKeyProjectCategory(item)) | |
54 | 50 | ||
55 | 51 | ||
56 | 52 | func getKeyItemSupplier (supplier) = (supplier + "Comunidad Achuar Kapawi del Ecuador") | |
57 | 53 | ||
58 | 54 | ||
59 | 55 | func getKeyProjectName (item) = "Nombre del Proyecto:" | |
60 | 56 | ||
61 | 57 | ||
62 | 58 | func getValueProjectName (item) = getStrByKey(getKeyProjectName(item)) | |
63 | 59 | ||
64 | 60 | ||
65 | 61 | func getKeyProjectCountry (item) = "País | Ubicación:" | |
66 | 62 | ||
67 | 63 | ||
68 | 64 | func getValueProjectCountry (item) = getStrByKey(getKeyProjectCountry(item)) | |
69 | 65 | ||
70 | 66 | ||
71 | 67 | func getKeyProjectCode (item) = "Código:" | |
72 | 68 | ||
73 | 69 | ||
74 | 70 | func getValueProjectCode (item) = getStrByKey(getKeyProjectCode(item)) | |
75 | 71 | ||
76 | 72 | ||
77 | 73 | func getKeyProjectPropietary (item) = "Propietario | Beneficiario del Proyecto:" | |
78 | 74 | ||
79 | 75 | ||
80 | 76 | func getValueProjectPropietary (item) = getStrByKey(getKeyProjectPropietary(item)) | |
81 | 77 | ||
82 | 78 | ||
83 | 79 | func getKeyProjectDev (supplier) = "Desarrollador | Responsable Legal:" | |
84 | 80 | ||
85 | 81 | ||
86 | 82 | func getValueProjectDev (supplier) = getStrByKey(getKeyProjectDev(supplier)) | |
87 | 83 | ||
88 | 84 | ||
89 | 85 | func getKeyFirstFaseQty (item) = "Tokens ofertados para Usuarios|inversores en Fase I Pre-ICO:" | |
90 | 86 | ||
91 | 87 | ||
92 | 88 | func getValueFirstFaseQty (item) = getStrByKey(getKeyFirstFaseQty(item)) | |
93 | 89 | ||
94 | 90 | ||
95 | 91 | func getKeyNomTokenPrice (item) = "Precio Nominal, 1 token Bit-CO2:" | |
96 | 92 | ||
97 | 93 | ||
98 | 94 | func getKeyDescuento6TokPrice (item) = "Precio de 1 token Bit-CO2 con descuento elejido:" | |
99 | 95 | ||
100 | 96 | ||
101 | 97 | func getValueDescuento6TokPrice (item) = getNumberByKey(getKeyDescuento6TokPrice(item)) | |
102 | 98 | ||
103 | 99 | ||
104 | 100 | func getKeySaldoTokenQtyStartEtapa (item) = "Saldo de tokens en oferta con dcto máx. del 6%:" | |
105 | 101 | ||
106 | 102 | ||
107 | 103 | func getValueSaldoTokenQtyStartEtapa (item) = getNumberByKey(getKeySaldoTokenQtyStartEtapa(item)) | |
108 | 104 | ||
109 | 105 | ||
110 | 106 | func getKeyUserItemCounter (user,item) = "Order_№:" | |
111 | 107 | ||
112 | 108 | ||
113 | 109 | func getValueUserItemCounter (user,item) = getNumberByKey(getKeyUserItemCounter(user, item)) | |
114 | 110 | ||
115 | 111 | ||
116 | 112 | func getKeyUserDocument (item) = "Documento Nacional de Identidad, DNI del Usuario:" | |
117 | 113 | ||
118 | 114 | ||
119 | 115 | func getValueUserDocument (item) = getStrByKey(getKeyUserDocument(item)) | |
120 | 116 | ||
121 | 117 | ||
122 | 118 | func getKeyUserCountry (item) = "País de Residencia del Usuario:" | |
123 | 119 | ||
124 | 120 | ||
125 | 121 | func getValueUserCountry (item) = getStrByKey(getKeyUserCountry(item)) | |
126 | 122 | ||
127 | 123 | ||
128 | 124 | func getKeyDiscount6User (item) = "Descuento a elección voluntaria, máximo 6%:" | |
129 | 125 | ||
130 | 126 | ||
131 | 127 | func getValueDiscount6User (item) = getNumberByKey(getKeyDiscount6User(item)) | |
132 | 128 | ||
133 | 129 | ||
134 | 130 | func getKeyItemUserOrderQty (item) = "Cantidad de tokens a adquirir:" | |
135 | 131 | ||
136 | 132 | ||
137 | 133 | func getValueItemUserOrderQty (item) = getNumberByKey(getKeyItemUserOrderQty(item)) | |
138 | 134 | ||
139 | 135 | ||
140 | 136 | func getKeyBalanceSupplier (supplier) = "Ingresos por Venta Directa / BlockChain:" | |
141 | 137 | ||
142 | 138 | ||
143 | 139 | func getValueBalanceSupplier (supplier) = getNumberByKey(getKeyBalanceSupplier(supplier)) | |
144 | 140 | ||
145 | 141 | ||
146 | 142 | @Callable(i) | |
147 | 143 | func purchase (item,userDocument,userCountry,userDiscount,orderQty) = { | |
148 | 144 | let pmt = extract(i.payment) | |
149 | 145 | if (isDefined(pmt.assetId)) | |
150 | 146 | then throw("Ud. puede adquirir tokens xBitCO2 usando WavesKeeper y su token de pago Waves.") | |
151 | 147 | else { | |
152 | 148 | let supplier = match getString(this, getKeyItemSupplier(item)) { | |
153 | 149 | case a: String => | |
154 | 150 | a | |
155 | 151 | case _ => | |
156 | 152 | NONE | |
157 | 153 | } | |
158 | 154 | let preIcoQty = match getInteger(this, getKeySaldoTokenQtyStartEtapa(item)) { | |
159 | 155 | case a: Int => | |
160 | 156 | a | |
161 | 157 | case _ => | |
162 | 158 | 0 | |
163 | 159 | } | |
164 | 160 | let balanceSupplier = match getInteger(this, getKeyBalanceSupplier(supplier)) { | |
165 | 161 | case a: Int => | |
166 | 162 | a | |
167 | 163 | case _ => | |
168 | 164 | 0 | |
169 | 165 | } | |
170 | 166 | let userAddress = toBase58String(i.caller.bytes) | |
171 | 167 | let desc1 = (1000 - userDiscount) | |
172 | 168 | let currentTokenPrice = (((((desc1 * bco2e) * eurou) * 1000000000000) / 1000) / usdnw) | |
169 | + | let totalAmount = (((orderQty * 10000) * currentTokenPrice) / 100000000) | |
173 | 170 | if ((totalAmount > pmt.amount)) | |
174 | 171 | then throw("Payment Amount can't be less than item Purchase Order") | |
175 | 172 | else if ((pmt.amount > totalAmount)) | |
176 | 173 | then throw("Payment Amount can't be higher than item Purchase Order") | |
177 | 174 | else ScriptResult(WriteSet([DataEntry(getKeyProjectCategory(item), "Conservación Forestal"), DataEntry(getKeyProjectName(item), "Reserva Amazónica Achuar-Kapawi"), DataEntry(getKeyProjectCountry(item), "Ecuador"), DataEntry(getKeyProjectCode(item), "01-EC_ACH-KAPAWI_01PREICO"), DataEntry(getKeyProjectPropietary(item), "Comunidad Achuar Kapawi"), DataEntry(getKeyProjectDev(supplier), "Fundación Alianza Ecológica 'NASE'"), DataEntry(getKeyNomTokenPrice(item), "10.00 Euros"), DataEntry("Cantidad de Tokens Bit-CO2 a emitir en Fase I y II Pre-ICO", startTotalQty), DataEntry(getKeyFirstFaseQty(item), FirstFaseQty), DataEntry(getKeyDescuento6TokPrice(item), currentTokenPrice), DataEntry("Prueba currentTokenPrice", currentTokenPrice), DataEntry(getKeyUserItemCounter(userAddress, item), (getValueUserItemCounter(userAddress, item) + 1)), DataEntry(getKeyUserDocument(item), userDocument), DataEntry(getKeyUserCountry(item), userCountry), DataEntry(getKeyDiscount6User(item), userDiscount), DataEntry(getKeyItemUserOrderQty(item), orderQty), DataEntry("Suma invertida, wvs", totalAmount), DataEntry("Estado de su pedido:", "¡Adquisición Confirmada!"), DataEntry(getKeySaldoTokenQtyStartEtapa(item), (getValueSaldoTokenQtyStartEtapa(item) + orderQty)), DataEntry("Saldo de Tokens", ((FirstFaseQty - getValueSaldoTokenQtyStartEtapa(item)) - orderQty)), DataEntry(getKeyBalanceSupplier(supplier), (getValueBalanceSupplier(supplier) + pmt.amount)), DataEntry("Dirección del proyecto en Waves-BlockChain:", "3N9DpWDvNPnq3wuuyh2cGk9hcKfoke9CCfL")]), TransferSet([ScriptTransfer(addressFromStringValue(userAddress), orderQty, xBitCO2)])) | |
178 | 175 | } | |
179 | 176 | } | |
180 | 177 | ||
181 | 178 | ||
182 | 179 | @Verifier(tx) | |
183 | 180 | func verify () = match tx { | |
184 | 181 | case t: SetScriptTransaction => | |
185 | 182 | sigVerify(tx.bodyBytes, tx.proofs[0], OwnerPubKey) | |
186 | 183 | case d: ReissueTransaction|DataTransaction => | |
187 | 184 | true | |
188 | 185 | case tx: TransferTransaction => | |
189 | 186 | true | |
190 | 187 | case tx: ExchangeTransaction => | |
191 | 188 | let withWaves = if (!(isDefined(tx.sellOrder.assetPair.priceAsset))) | |
192 | 189 | then true | |
193 | 190 | else !(isDefined(tx.sellOrder.assetPair.amountAsset)) | |
194 | 191 | withWaves | |
195 | 192 | case _ => | |
196 | 193 | false | |
197 | 194 | } | |
198 | 195 |
github/deemru/w8io/169f3d6 29.12 ms ◑