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