tx · 7JqBo6cS9LYAiUsqLcHrEUytcCH1AEw8bbqs8HMfEkBZ 3N6D1fPBTu4QuZenU7hKNuxEKsxd13USum8: -0.01400000 Waves 2020.08.22 13:51 [1144060] smart account 3N6D1fPBTu4QuZenU7hKNuxEKsxd13USum8 > SELF 0.00000000 Waves
{ "type": 13, "id": "7JqBo6cS9LYAiUsqLcHrEUytcCH1AEw8bbqs8HMfEkBZ", "fee": 1400000, "feeAssetId": null, "timestamp": 1598093481765, "version": 1, "sender": "3N6D1fPBTu4QuZenU7hKNuxEKsxd13USum8", "senderPublicKey": "8xCH82jKi2DM7HXXD45fmftPUDjr3TJpjanUATKMK37U", "proofs": [ "Q2LA8zY2ADsB4DL9Lh9SBS9CXT7TT5dSCfxo4osZXVyJYY6zapiKeYgQJd6tTRDf42Ca7V53eMBjJZWHCiNumVu" ], "script": "base64:AAIDAAAAAAAAABkIARIECgIICBIJCgcICAgIAQgIEgQKAggBAAAALAAAAAAHeUJpdENPMgEAAAAgaYzU/9tNAX3oy3i337OPwVw8OVvpDHloDSGOZ+mbS60AAAAACHN0YXJ0UXR5AAAAAAC2NQzQAAAAAAxGaXJzdEZhc2VRdHkAAAAAABKXrJAAAAAADVNlY29uZEZhc2VRdHkAAAAAAKOdYEAAAAAACG5vbVByaWNlAAAAAAAAAAABAAAAAAN3dnMAAAAAAAX14QAAAAAAEHN1cHBsaWVyRGlzY291bnQAAAAAAAAAAAwAAAAABE5PTkUCAAAABG5vbmUAAAAAC093bmVyUHViS2V5AQAAACB2JYFH9ti5N+7uGrdzKwlrXhDeZ+vMkHOKuVJteEgPDwAAAAAGaXNzdWVyCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUsZ/LLWvSicGFXkptOa6Ov7Vyb4KJ2haTAAAAAARlQWRkCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUmX0sM+4Li4VQQQ26bfB7j/XU/VW4HmxXAAAAAARwQWRkCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUQ6W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dWJLZXkDAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9EYXRhVHJhbnNhY3Rpb24GCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAElJlaXNzdWVUcmFuc2FjdGlvbgQAAAABZAUAAAAHJG1hdGNoMAYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAnR4BQAAAAckbWF0Y2gwBgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATRXhjaGFuZ2VUcmFuc2FjdGlvbgQAAAACdHgFAAAAByRtYXRjaDAEAAAACXdpdGhXYXZlcwMJAQAAAAEhAAAAAQkBAAAACWlzRGVmaW5lZAAAAAEICAgFAAAAAnR4AAAACXNlbGxPcmRlcgAAAAlhc3NldFBhaXIAAAAKcHJpY2VBc3NldAYJAQAAAAEhAAAAAQkBAAAACWlzRGVmaW5lZAAAAAEICAgFAAAAAnR4AAAACXNlbGxPcmRlcgAAAAlhc3NldFBhaXIAAAALYW1vdW50QXNzZXQFAAAACXdpdGhXYXZlcweB7emD", "chainId": 84, "height": 1144060, "spentComplexity": 0 } View: original | compacted Prev: 9D1twTUs2WvW682hKZHwRdjmbAMZXcajyGsCqppok1ao Next: AsyTveYDjgN18qKpMd2xxL8Tt9of7bTap2M2PYC81vUL Diff:
Old | New | Differences | |
---|---|---|---|
180 | 180 | let ybitco2 = (1 * EuroW) | |
181 | 181 | let cPB = ((88 * ybitco2) / 100) | |
182 | 182 | let uI = ((subTotal * uIP) / 100) | |
183 | - | let uBI = ((uI / cPB) * | |
183 | + | let uBI = ((uI / cPB) * 100000000) | |
184 | 184 | let pI = ((subTotal * pIP) / 100) | |
185 | 185 | let eI = ((subTotal * eIP) / 100) | |
186 | 186 | let eBI = (((subTotal * eBP) / (100 * cPB)) * 10000) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let yBitCO2 = base58'872MvpMoQx7SnV58HMcR9hd6vBWDtQvqmt5javCmYwpx' | |
5 | 5 | ||
6 | 6 | let startQty = 3056930000 | |
7 | 7 | ||
8 | 8 | let FirstFaseQty = 311930000 | |
9 | 9 | ||
10 | 10 | let SecondFaseQty = 2745000000 | |
11 | 11 | ||
12 | 12 | let nomPrice = 1 | |
13 | 13 | ||
14 | 14 | let wvs = 100000000 | |
15 | 15 | ||
16 | 16 | let supplierDiscount = 12 | |
17 | 17 | ||
18 | 18 | let NONE = "none" | |
19 | 19 | ||
20 | 20 | let OwnerPubKey = base58'8xCH82jKi2DM7HXXD45fmftPUDjr3TJpjanUATKMK37U' | |
21 | 21 | ||
22 | 22 | let issuer = Address(base58'3N67GoXrZo4iwmEjLhS9iNUCbzpPEjoYgNW') | |
23 | 23 | ||
24 | 24 | let eAdd = Address(base58'3N3uf7RK8Aed4v5ufGB8xV2Wsz4WNoHj21c') | |
25 | 25 | ||
26 | 26 | let pAdd = Address(base58'3Mv5mXTRhpWZxZxstmnsBhckWNgErMTFEaD') | |
27 | 27 | ||
28 | 28 | let igv = 18 | |
29 | 29 | ||
30 | 30 | let EuroW = 32000000 | |
31 | 31 | ||
32 | 32 | let uIP = 7 | |
33 | 33 | ||
34 | 34 | let pIP = 10 | |
35 | 35 | ||
36 | 36 | let sIP = 1 | |
37 | 37 | ||
38 | 38 | let eIP = 1 | |
39 | 39 | ||
40 | 40 | let sBP = 2 | |
41 | 41 | ||
42 | 42 | let eBP = 2 | |
43 | 43 | ||
44 | 44 | func getNumberByKey (key) = { | |
45 | 45 | let num = match getInteger(this, key) { | |
46 | 46 | case a: Int => | |
47 | 47 | a | |
48 | 48 | case _ => | |
49 | 49 | 0 | |
50 | 50 | } | |
51 | 51 | num | |
52 | 52 | } | |
53 | 53 | ||
54 | 54 | ||
55 | 55 | func getStrByKey (key) = { | |
56 | 56 | let str = match getString(this, key) { | |
57 | 57 | case a: String => | |
58 | 58 | a | |
59 | 59 | case _ => | |
60 | 60 | NONE | |
61 | 61 | } | |
62 | 62 | str | |
63 | 63 | } | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | func getKeyItemSupplier (supplier) = (supplier + "Bit-CO2 Shop, Lima-Perú") | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | func getKeyItem (supplier,item) = (("Producto-GTS: " + " ") + toBase58String(sha256(toBytes((supplier + item))))) | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | func getKeyUserItemGtsCounter (user,item) = "Order_№:" | |
73 | 73 | ||
74 | 74 | ||
75 | 75 | func getValueUserItemGtsCounter (user,item) = getNumberByKey(getKeyUserItemGtsCounter(user, item)) | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | func getKeyItemName (item) = "Categoría del Producto:" | |
79 | 79 | ||
80 | 80 | ||
81 | 81 | func getValueItemName (item) = getStrByKey(getKeyItemName(item)) | |
82 | 82 | ||
83 | 83 | ||
84 | 84 | func getKeyUserName (item) = "Nombre del Usuario:" | |
85 | 85 | ||
86 | 86 | ||
87 | 87 | func getValueUserName (item) = getStrByKey(getKeyUserName(item)) | |
88 | 88 | ||
89 | 89 | ||
90 | 90 | func getKeyUserDocument (item) = "№ de Documento / DNI del Usuario:" | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | func getValueUserDocument (item) = getStrByKey(getKeyUserDocument(item)) | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func getKeySaldoTokenQtyStartEtapa (item) = "Tokens Ofertados en la presente etapa / Saldo, ytok:" | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | func getValueSaldoTokenQtyStartEtapa (item) = getNumberByKey(getKeySaldoTokenQtyStartEtapa(item)) | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | func getKeyBalanceQtySupplier (item) = "Balance/Saldo GTS, ytokens:" | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func getValueBalanceQtySupplier (item) = getNumberByKey(getKeyBalanceQtySupplier(item)) | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | func getKeyBalanceSupplier (supplier) = "Ingresos por VentaGTS, wvls:" | |
109 | 109 | ||
110 | 110 | ||
111 | 111 | func getValueBalanceSupplier (supplier) = getNumberByKey(getKeyBalanceSupplier(supplier)) | |
112 | 112 | ||
113 | 113 | ||
114 | 114 | func getKeyUI (item) = "UI,_wvls:" | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | func getValueUI (item) = getNumberByKey(getKeyUI(item)) | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | func getKeyPI (item) = "PI,_wvls:" | |
121 | 121 | ||
122 | 122 | ||
123 | 123 | func getValuePI (item) = getNumberByKey(getKeyPI(item)) | |
124 | 124 | ||
125 | 125 | ||
126 | 126 | func getKeySI (item) = "SI,_wvls:" | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | func getValueSI (item) = getNumberByKey(getKeySI(item)) | |
130 | 130 | ||
131 | 131 | ||
132 | 132 | @Callable(i) | |
133 | 133 | func deposit (title,supplierData) = { | |
134 | 134 | let pmt = extract(i.payment) | |
135 | 135 | if ((pmt.assetId != yBitCO2)) | |
136 | 136 | then throw("deposito permitido solo en yBitCO2 tokens") | |
137 | 137 | else { | |
138 | 138 | let supplier = toBase58String(i.caller.bytes) | |
139 | 139 | let currentAmount = match getInteger(this, supplier) { | |
140 | 140 | case a: Int => | |
141 | 141 | a | |
142 | 142 | case _ => | |
143 | 143 | startQty | |
144 | 144 | } | |
145 | 145 | let newAmount = (currentAmount + pmt.amount) | |
146 | 146 | if ((0 >= newAmount)) | |
147 | 147 | then throw("No hay yBitCO2 en su balance") | |
148 | 148 | else WriteSet([DataEntry(supplier, newAmount)]) | |
149 | 149 | } | |
150 | 150 | } | |
151 | 151 | ||
152 | 152 | ||
153 | 153 | ||
154 | 154 | @Callable(i) | |
155 | 155 | func purchaseGTS (item,itemName,userName,userDocument,totalAmount,pAdd,eAdd) = { | |
156 | 156 | let pmt = extract(i.payment) | |
157 | 157 | if (isDefined(pmt.assetId)) | |
158 | 158 | then throw("El Precio en waves.") | |
159 | 159 | else { | |
160 | 160 | let supplier = match getString(this, getKeyItemSupplier(item)) { | |
161 | 161 | case a: String => | |
162 | 162 | a | |
163 | 163 | case _ => | |
164 | 164 | NONE | |
165 | 165 | } | |
166 | 166 | let preIcoQty = match getInteger(this, getKeyBalanceQtySupplier(item)) { | |
167 | 167 | case a: Int => | |
168 | 168 | a | |
169 | 169 | case _ => | |
170 | 170 | SecondFaseQty | |
171 | 171 | } | |
172 | 172 | let balanceSupplier = match getInteger(this, getKeyBalanceSupplier(supplier)) { | |
173 | 173 | case a: Int => | |
174 | 174 | a | |
175 | 175 | case _ => | |
176 | 176 | 0 | |
177 | 177 | } | |
178 | 178 | let userAddress = toBase58String(i.caller.bytes) | |
179 | 179 | let subTotal = (totalAmount - ((igv * totalAmount) / 100)) | |
180 | 180 | let ybitco2 = (1 * EuroW) | |
181 | 181 | let cPB = ((88 * ybitco2) / 100) | |
182 | 182 | let uI = ((subTotal * uIP) / 100) | |
183 | - | let uBI = ((uI / cPB) * | |
183 | + | let uBI = ((uI / cPB) * 100000000) | |
184 | 184 | let pI = ((subTotal * pIP) / 100) | |
185 | 185 | let eI = ((subTotal * eIP) / 100) | |
186 | 186 | let eBI = (((subTotal * eBP) / (100 * cPB)) * 10000) | |
187 | 187 | let sI = ((totalAmount - pI) - eI) | |
188 | 188 | let sBI = (((subTotal * sBP) / (100 * cPB)) * 10000) | |
189 | 189 | let QVentasgts = (((subTotal * 11) / (cPB * 100)) * 10000) | |
190 | 190 | if ((totalAmount > pmt.amount)) | |
191 | 191 | then throw("Payment Amount can't be less than item Purchase Order") | |
192 | 192 | else if ((pmt.amount > totalAmount)) | |
193 | 193 | then throw("Payment Amount can't be higher than item Purchase Order") | |
194 | 194 | else ScriptResult(WriteSet([DataEntry(getKeyUserItemGtsCounter(userAddress, item), (getValueUserItemGtsCounter(userAddress, item) + 1)), DataEntry(getKeyItem(supplier, item), item), DataEntry(getKeyItemName(item), itemName), DataEntry(getKeyUserName(item), userName), DataEntry(getKeyUserDocument(item), userDocument), DataEntry("Payment_amount,_wvs", totalAmount), DataEntry("Imp, %", igv), DataEntry("STtl, waves", subTotal), DataEntry("CP 1 B, waves", (cPB * 1)), DataEntry(getKeyUI(item), uI), DataEntry("UBI, 10e-4 ybitco2", uBI), DataEntry(getKeyPI(item), pI), DataEntry("EcSys, 10e-4 ybitco2", eBI), DataEntry(getKeySI(item), sI), DataEntry("SBI, 10e-4 ybitco2", sBI), DataEntry(("Order_Status:_" + userAddress), "Adquisición Confirmada!"), DataEntry("QporVentasGTS, 10e-4 ybitco2", QVentasgts), DataEntry(getKeyBalanceQtySupplier(item), (SecondFaseQty - (QVentasgts / 10000))), DataEntry(getKeyBalanceSupplier(supplier), (balanceSupplier + pmt.amount))]), TransferSet([ScriptTransfer(i.caller, (uBI / 10000), yBitCO2), ScriptTransfer(issuer, sI, unit), ScriptTransfer(issuer, sBI, yBitCO2)])) | |
195 | 195 | } | |
196 | 196 | } | |
197 | 197 | ||
198 | 198 | ||
199 | 199 | ||
200 | 200 | @Callable(i) | |
201 | 201 | func withdraw (item,amount) = { | |
202 | 202 | let userAddress = toBase58String(i.caller.bytes) | |
203 | 203 | let supplier = match getString(this, getKeyItemSupplier(item)) { | |
204 | 204 | case a: String => | |
205 | 205 | a | |
206 | 206 | case _ => | |
207 | 207 | NONE | |
208 | 208 | } | |
209 | 209 | let preIcoQty = match getInteger(this, getKeyBalanceQtySupplier(item)) { | |
210 | 210 | case a: Int => | |
211 | 211 | a | |
212 | 212 | case _ => | |
213 | 213 | startQty | |
214 | 214 | } | |
215 | 215 | let newAmount = (preIcoQty - amount) | |
216 | 216 | if ((0 > amount)) | |
217 | 217 | then throw("El balance de retiro no puede ser negativo!") | |
218 | 218 | else if ((0 >= newAmount)) | |
219 | 219 | then throw("Ooppss.. Insuficiente balance!") | |
220 | 220 | else ScriptResult(WriteSet([DataEntry(item, newAmount)]), TransferSet([ScriptTransfer(i.caller, amount, yBitCO2)])) | |
221 | 221 | } | |
222 | 222 | ||
223 | 223 | ||
224 | 224 | @Verifier(tx) | |
225 | 225 | func verify () = match tx { | |
226 | 226 | case t: SetScriptTransaction => | |
227 | 227 | sigVerify(tx.bodyBytes, tx.proofs[0], OwnerPubKey) | |
228 | 228 | case d: DataTransaction|ReissueTransaction => | |
229 | 229 | true | |
230 | 230 | case tx: TransferTransaction => | |
231 | 231 | true | |
232 | 232 | case tx: ExchangeTransaction => | |
233 | 233 | let withWaves = if (!(isDefined(tx.sellOrder.assetPair.priceAsset))) | |
234 | 234 | then true | |
235 | 235 | else !(isDefined(tx.sellOrder.assetPair.amountAsset)) | |
236 | 236 | withWaves | |
237 | 237 | case _ => | |
238 | 238 | false | |
239 | 239 | } | |
240 | 240 |
github/deemru/w8io/026f985 66.53 ms ◑