tx · HXyyNPtLbJXndgiyDuefpDmb437gK8KW8vddrvs7GWT5

3N6D1fPBTu4QuZenU7hKNuxEKsxd13USum8:  -0.01400000 Waves

2020.08.26 16:03 [1149710] smart account 3N6D1fPBTu4QuZenU7hKNuxEKsxd13USum8 > SELF 0.00000000 Waves

{ "type": 13, "id": "HXyyNPtLbJXndgiyDuefpDmb437gK8KW8vddrvs7GWT5", "fee": 1400000, "feeAssetId": null, "timestamp": 1598446980428, "version": 1, "sender": "3N6D1fPBTu4QuZenU7hKNuxEKsxd13USum8", "senderPublicKey": "8xCH82jKi2DM7HXXD45fmftPUDjr3TJpjanUATKMK37U", "proofs": [ "4FRQskvqofaKZRXXT9cwrcyHW7fGepcmMTzuoZRJuvteVf9LmHWe5iHCMv7YPnrV653GHR9DAyRbJ1Jsx2qMoqaU" ], "script": "base64:AAIDAAAAAAAAACwIARIECgIICBIECgIICBIHCgUICAgIARIHCgUICAgIARIECgIIARIECgIIAQAAADMAAAAAB3lCaXRDTzIBAAAAIGmM1P/bTQF96Mt4t9+zj8FcPDlb6Qx5aA0hjmfpm0utAAAAAARndHMxAQAAACDDxYMO3SsdGFMCSZ4E3p59+bOpZEBHwTUZ+0J8yxIGZwAAAAAIc3RhcnRRdHkAAAAAALY1DNAAAAAADEZpcnN0RmFzZVF0eQAAAAAAEpeskAAAAAANU2Vjb25kRmFzZVF0eQAAAAAAo51gQAAAAAALc3RhcnRRdHlHVFMAAAAAAAHSc1QAAAAAD0ZpcnN0RmFzZVF0eUdUUwAAAAAAAC+YxAAAAAAQU2Vjb25kRmFzZVF0eUdUUwAAAAAAAaLakAAAAAAIbm9tUHJpY2UAAAAAAAAAAAEAAAAAA3d2cwAAAAAABfXhAAAAAAAQc3VwcGxpZXJEaXNjb3VudAAAAAAAAAAADAAAAAAETk9ORQIAAAAEbm9uZQAAAAALT3duZXJQdWJLZXkBAAAAIHYlgUf22Lk37u4at3MrCWteEN5n68yQc4q5Um14SA8PAAAAAAZpc3N1ZXIJAQAA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AAAAByRtYXRjaDACAAAAElJlaXNzdWVUcmFuc2FjdGlvbgQAAAABZAUAAAAHJG1hdGNoMAYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAnR4BQAAAAckbWF0Y2gwBgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATRXhjaGFuZ2VUcmFuc2FjdGlvbgQAAAACdHgFAAAAByRtYXRjaDAEAAAAC3dpdGh5Qml0Q28yAwkBAAAAASEAAAABCQEAAAAJaXNEZWZpbmVkAAAAAQgICAUAAAACdHgAAAAJc2VsbE9yZGVyAAAACWFzc2V0UGFpcgAAAApwcmljZUFzc2V0BgkBAAAAASEAAAABCQEAAAAJaXNEZWZpbmVkAAAAAQgICAUAAAACdHgAAAAJc2VsbE9yZGVyAAAACWFzc2V0UGFpcgAAAAthbW91bnRBc3NldAUAAAALd2l0aHlCaXRDbzIH8mjEMg==", "chainId": 84, "height": 1149710, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Dd7iHAJMijiDB39Hp4gYRxPZnVSZkMU9ZDPtEdvxKhAZ Next: 3F7zPHktVEZ1HoFiQ97ppQdhA2Htgpc6mziUF6AMf6WL Diff:
OldNewDifferences
228228 let subTotal = (totalAmount - ((igv * totalAmount) / 100))
229229 let cPG = ((88 * gts) / 100)
230230 let uI = ((subTotal * uIP) / 100)
231- let uGI = ((uI / cPG) * 2000)
231+ let uGI = ((uI * 100) / cPG)
232232 let pI = ((subTotal * pIP) / 100)
233233 let eI = ((subTotal * eIP) / 100)
234234 let eGI = 10
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let yBitCO2 = base58'872MvpMoQx7SnV58HMcR9hd6vBWDtQvqmt5javCmYwpx'
55
66 let gts1 = base58'EBDBY14t3xuduZ2GCNqEUpoLoy9eAAYfyQZA5ryVJxzS'
77
88 let startQty = 3056930000
99
1010 let FirstFaseQty = 311930000
1111
1212 let SecondFaseQty = 2745000000
1313
1414 let startQtyGTS = 30569300
1515
1616 let FirstFaseQtyGTS = 3119300
1717
1818 let SecondFaseQtyGTS = 27450000
1919
2020 let nomPrice = 1
2121
2222 let wvs = 100000000
2323
2424 let supplierDiscount = 12
2525
2626 let NONE = "none"
2727
2828 let OwnerPubKey = base58'8xCH82jKi2DM7HXXD45fmftPUDjr3TJpjanUATKMK37U'
2929
3030 let issuer = Address(base58'3N67GoXrZo4iwmEjLhS9iNUCbzpPEjoYgNW')
3131
3232 let eAdd = Address(base58'3N3uf7RK8Aed4v5ufGB8xV2Wsz4WNoHj21c')
3333
3434 let pAdd = Address(base58'3Mv5mXTRhpWZxZxstmnsBhckWNgErMTFEaD')
3535
3636 let igv = 18
3737
3838 let ybitco2 = 10000
3939
4040 let gts = 100000
4141
4242 let uIP = 7
4343
4444 let pIP = 10
4545
4646 let eIP = 1
4747
4848 let sBP = 2
4949
5050 let eBP = 2
5151
5252 let eGP = 2
5353
5454 let sGP = 2
5555
5656 func getNumberByKey (key) = {
5757 let num = match getInteger(this, key) {
5858 case a: Int =>
5959 a
6060 case _ =>
6161 0
6262 }
6363 num
6464 }
6565
6666
6767 func getStrByKey (key) = {
6868 let str = match getString(this, key) {
6969 case a: String =>
7070 a
7171 case _ =>
7272 NONE
7373 }
7474 str
7575 }
7676
7777
7878 func getKeyItemSupplier (supplier) = (supplier + "Bit-CO2 Shop, Lima-Perú")
7979
8080
8181 func getKeyItem (supplier,item) = (("Producto-GTS: " + " ") + toBase58String(sha256(toBytes((supplier + item)))))
8282
8383
8484 func getKeyProject (item) = "Project"
8585
8686
8787 func getKeyEcosystNode (item) = "Nodo del Ecosistema"
8888
8989
9090 func getKeyTokenGTS1 (item) = "GTStable"
9191
9292
9393 func getKeyUserItemGtsCounter (user,item) = "Order_№:"
9494
9595
9696 func getValueUserItemGtsCounter (user,item) = getNumberByKey(getKeyUserItemGtsCounter(user, item))
9797
9898
9999 func getKeyItemName (item) = "Categoría del Producto:"
100100
101101
102102 func getValueItemName (item) = getStrByKey(getKeyItemName(item))
103103
104104
105105 func getKeyUserName (item) = "Nombre del Usuario:"
106106
107107
108108 func getValueUserName (item) = getStrByKey(getKeyUserName(item))
109109
110110
111111 func getKeyUserDocument (item) = "№ de Documento / DNI del Usuario:"
112112
113113
114114 func getValueUserDocument (item) = getStrByKey(getKeyUserDocument(item))
115115
116116
117117 func getKeyBalanceQtySupplier (item) = "Balance/Saldo GTS, gts-tokens:"
118118
119119
120120 func getValueBalanceQtySupplier (item) = getNumberByKey(getKeyBalanceQtySupplier(item))
121121
122122
123123 func getKeyBalanceSupplier (supplier) = "Monto Bruto por VentaGTS, wvls:"
124124
125125
126126 func getValueBalanceSupplier (supplier) = getNumberByKey(getKeyBalanceSupplier(supplier))
127127
128128
129129 func getKeyUI (item) = "UI,_wvls:"
130130
131131
132132 func getValueUI (item) = getNumberByKey(getKeyUI(item))
133133
134134
135135 func getKeyPI (item) = "PI,_wvls:"
136136
137137
138138 func getValuePI (item) = getNumberByKey(getKeyPI(item))
139139
140140
141141 func getKeySI (item) = "SI,_wvls:"
142142
143143
144144 func getValueSI (item) = getNumberByKey(getKeySI(item))
145145
146146
147147 @Callable(i)
148148 func depositGTS (title,supplierData) = {
149149 let pmt = extract(i.payment)
150150 if ((pmt.assetId != gts1))
151151 then throw("deposito permitido solo en gts1 tokens")
152152 else {
153153 let supplier = toBase58String(i.caller.bytes)
154154 let currentAmount = match getInteger(this, supplier) {
155155 case a: Int =>
156156 a
157157 case _ =>
158158 startQtyGTS
159159 }
160160 let newAmount = (currentAmount + pmt.amount)
161161 if ((0 >= newAmount))
162162 then throw("No hay gts1 en su balance")
163163 else WriteSet([DataEntry(supplier, newAmount)])
164164 }
165165 }
166166
167167
168168
169169 @Callable(i)
170170 func deposit (title,supplierData) = {
171171 let pmt = extract(i.payment)
172172 if ((pmt.assetId != yBitCO2))
173173 then throw("deposito permitido solo en yBitCO2 tokens")
174174 else {
175175 let supplier = toBase58String(i.caller.bytes)
176176 let currentAmount = match getInteger(this, supplier) {
177177 case a: Int =>
178178 a
179179 case _ =>
180180 startQty
181181 }
182182 let newAmount = (currentAmount + pmt.amount)
183183 if ((0 >= newAmount))
184184 then throw("No hay yBitCO2 en su balance")
185185 else WriteSet([DataEntry(supplier, newAmount)])
186186 }
187187 }
188188
189189
190190
191191 @Callable(i)
192192 func purchaseGTS (item,itemName,userName,userDocument,totalAmount) = {
193193 let pmt = extract(i.payment)
194194 if ((pmt.assetId != yBitCO2))
195195 then throw("Use yBitCO2 tokens para adquirir ProductosGTS")
196196 else {
197197 let supplier = match getString(this, getKeyItemSupplier(item)) {
198198 case a: String =>
199199 a
200200 case _ =>
201201 NONE
202202 }
203203 let projAdd = match getString(this, getKeyProject(item)) {
204204 case a: String =>
205205 NONE
206206 case _ =>
207207 pAdd
208208 }
209209 let nodoAdd = match getString(this, getKeyEcosystNode(item)) {
210210 case a: String =>
211211 NONE
212212 case _ =>
213213 eAdd
214214 }
215215 let preTokenQty = match getInteger(this, getKeyBalanceQtySupplier(item)) {
216216 case a: Int =>
217217 a
218218 case _ =>
219219 SecondFaseQtyGTS
220220 }
221221 let balanceSupplier = match getInteger(this, getKeyBalanceSupplier(supplier)) {
222222 case a: Int =>
223223 a
224224 case _ =>
225225 0
226226 }
227227 let userAddress = toBase58String(i.caller.bytes)
228228 let subTotal = (totalAmount - ((igv * totalAmount) / 100))
229229 let cPG = ((88 * gts) / 100)
230230 let uI = ((subTotal * uIP) / 100)
231- let uGI = ((uI / cPG) * 2000)
231+ let uGI = ((uI * 100) / cPG)
232232 let pI = ((subTotal * pIP) / 100)
233233 let eI = ((subTotal * eIP) / 100)
234234 let eGI = 10
235235 let sI = ((totalAmount - pI) - eI)
236236 let sGI = 11
237237 let QVentasgts = (((subTotal * 11) / (cPG * 100)) * 1)
238238 if ((totalAmount > pmt.amount))
239239 then throw("Payment Amount can't be less than item Purchase Order")
240240 else if ((pmt.amount > totalAmount))
241241 then throw("Payment Amount can't be higher than item Purchase Order")
242242 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,_yBitCO2cents", totalAmount), DataEntry("Imp, %", igv), DataEntry("STtl, yBitCO2cents", subTotal), DataEntry("CP 1GTS, yBitCO2cents", (cPG * 1)), DataEntry(getKeyUI(item), uI), DataEntry("UGI, 10e-4 gts1", uGI), DataEntry(getKeyPI(item), pI), DataEntry("EcSys, yBitCO2cents", eI), DataEntry("EcSys, 10e-4 gts1", eGI), DataEntry(getKeySI(item), sI), DataEntry("SGI, 10e-4 gts1", sGI), DataEntry(("Order_Status:_" + userAddress), "Adquisición Confirmada!"), DataEntry("QporVentasGTS, 10e-4 gts1", QVentasgts), DataEntry(getKeyBalanceQtySupplier(item), (preTokenQty - QVentasgts)), DataEntry(getKeyBalanceSupplier(supplier), (balanceSupplier + pmt.amount))]), TransferSet([ScriptTransfer(i.caller, uGI, gts1), ScriptTransfer(pAdd, pI, yBitCO2), ScriptTransfer(eAdd, eI, yBitCO2), ScriptTransfer(eAdd, eGI, gts1), ScriptTransfer(issuer, sI, yBitCO2)]))
243243 }
244244 }
245245
246246
247247
248248 @Callable(i)
249249 func purchaseGTS2 (item,itemName,userName,userDocument,totalAmount) = {
250250 let pmt = extract(i.payment)
251251 if (isDefined(pmt.assetId))
252252 then throw("El Precio en waves.")
253253 else {
254254 let supplier = match getString(this, getKeyItemSupplier(item)) {
255255 case a: String =>
256256 a
257257 case _ =>
258258 NONE
259259 }
260260 let projAdd = match getString(this, getKeyProject(item)) {
261261 case a: String =>
262262 NONE
263263 case _ =>
264264 pAdd
265265 }
266266 let nodoAdd = match getString(this, getKeyEcosystNode(item)) {
267267 case a: String =>
268268 NONE
269269 case _ =>
270270 eAdd
271271 }
272272 let preTokenQty = match getInteger(this, getKeyBalanceQtySupplier(item)) {
273273 case a: Int =>
274274 a
275275 case _ =>
276276 SecondFaseQty
277277 }
278278 let balanceSupplier = match getInteger(this, getKeyBalanceSupplier(supplier)) {
279279 case a: Int =>
280280 a
281281 case _ =>
282282 0
283283 }
284284 let userAddress = toBase58String(i.caller.bytes)
285285 let subTotal = (totalAmount - ((igv * totalAmount) / 100))
286286 let cPB = ((88 * ybitco2) / 100)
287287 let uI = ((subTotal * uIP) / 100)
288288 let uBI = ((uI / cPB) * 1)
289289 let pI = ((subTotal * pIP) / 100)
290290 let eI = ((subTotal * eIP) / 100)
291291 let eBI = (((subTotal * eBP) / (100 * cPB)) * 1)
292292 let sI = ((totalAmount - pI) - eI)
293293 let sBI = (((subTotal * sBP) / (100 * cPB)) * 1)
294294 let QVentasgts = (((subTotal * 11) / (cPB * 100)) * 1)
295295 if ((totalAmount > pmt.amount))
296296 then throw("Payment Amount can't be less than item Purchase Order")
297297 else if ((pmt.amount > totalAmount))
298298 then throw("Payment Amount can't be higher than item Purchase Order")
299299 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,_wvls", totalAmount), DataEntry("Imp, %", igv), DataEntry("STtl, wvls", subTotal), DataEntry("CP 1 B, wvls", (cPB * 10000)), DataEntry(getKeyUI(item), uI), DataEntry("UBI, 10e-4 ybitco2", uBI), DataEntry(getKeyPI(item), pI), DataEntry("EcSys, wvls", eI), 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), (preTokenQty - (QVentasgts / 1))), DataEntry(getKeyBalanceSupplier(supplier), (balanceSupplier + pmt.amount))]), TransferSet([ScriptTransfer(i.caller, uBI, yBitCO2), ScriptTransfer(pAdd, pI, unit), ScriptTransfer(eAdd, eI, unit), ScriptTransfer(eAdd, eBI, yBitCO2), ScriptTransfer(issuer, sI, unit), ScriptTransfer(issuer, sBI, yBitCO2)]))
300300 }
301301 }
302302
303303
304304
305305 @Callable(i)
306306 func withdrawGTS (item,amount) = {
307307 let userAddress = toBase58String(i.caller.bytes)
308308 let supplier = match getString(this, getKeyItemSupplier(item)) {
309309 case a: String =>
310310 a
311311 case _ =>
312312 NONE
313313 }
314314 let preIcoQty = match getInteger(this, getKeyBalanceQtySupplier(item)) {
315315 case a: Int =>
316316 a
317317 case _ =>
318318 startQtyGTS
319319 }
320320 let newAmount = (preIcoQty - amount)
321321 if ((0 > amount))
322322 then throw("El balance de retiro no puede ser negativo!")
323323 else if ((0 >= newAmount))
324324 then throw("Ooppss.. Insuficiente balance!")
325325 else ScriptResult(WriteSet([DataEntry(item, newAmount)]), TransferSet([ScriptTransfer(i.caller, amount, gts1)]))
326326 }
327327
328328
329329
330330 @Callable(i)
331331 func withdraw (item,amount) = {
332332 let userAddress = toBase58String(i.caller.bytes)
333333 let supplier = match getString(this, getKeyItemSupplier(item)) {
334334 case a: String =>
335335 a
336336 case _ =>
337337 NONE
338338 }
339339 let preIcoQty = match getInteger(this, getKeyBalanceQtySupplier(item)) {
340340 case a: Int =>
341341 a
342342 case _ =>
343343 startQty
344344 }
345345 let newAmount = (preIcoQty - amount)
346346 if ((0 > amount))
347347 then throw("El balance de retiro no puede ser negativo!")
348348 else if ((0 >= newAmount))
349349 then throw("Ooppss.. Insuficiente balance!")
350350 else ScriptResult(WriteSet([DataEntry(item, newAmount)]), TransferSet([ScriptTransfer(i.caller, amount, yBitCO2)]))
351351 }
352352
353353
354354 @Verifier(tx)
355355 func verify () = match tx {
356356 case t: SetScriptTransaction =>
357357 sigVerify(tx.bodyBytes, tx.proofs[0], OwnerPubKey)
358358 case d: DataTransaction|ReissueTransaction =>
359359 true
360360 case tx: TransferTransaction =>
361361 true
362362 case tx: ExchangeTransaction =>
363363 let withyBitCo2 = if (!(isDefined(tx.sellOrder.assetPair.priceAsset)))
364364 then true
365365 else !(isDefined(tx.sellOrder.assetPair.amountAsset))
366366 withyBitCo2
367367 case _ =>
368368 false
369369 }
370370

github/deemru/w8io/026f985 
48.89 ms