tx · 9D1twTUs2WvW682hKZHwRdjmbAMZXcajyGsCqppok1ao

3N6D1fPBTu4QuZenU7hKNuxEKsxd13USum8:  -0.01400000 Waves

2020.08.22 13:44 [1144052] smart account 3N6D1fPBTu4QuZenU7hKNuxEKsxd13USum8 > SELF 0.00000000 Waves

{ "type": 13, "id": "9D1twTUs2WvW682hKZHwRdjmbAMZXcajyGsCqppok1ao", "fee": 1400000, "feeAssetId": null, "timestamp": 1598093048147, "version": 1, "sender": "3N6D1fPBTu4QuZenU7hKNuxEKsxd13USum8", "senderPublicKey": "8xCH82jKi2DM7HXXD45fmftPUDjr3TJpjanUATKMK37U", "proofs": [ "3j59FRu1YVeVv94HjZQGL9EoLhFfatfe9uj92r2TAbDkYJi9NNQ7mFp5SVG5i8EXcyQJSPqs8ZCNLXmhmtBYcEZF" ], "script": "base64:AAIDAAAAAAAAABkIARIECgIICBIJCgcICAgIAQgIEgQKAggBAAAALAAAAAAHeUJpdENPMgEAAAAgaYzU/9tNAX3oy3i337OPwVw8OVvpDHloDSGOZ+mbS60AAAAACHN0YXJ0UXR5AAAAAAC2NQzQAAAAAAxGaXJzdEZhc2VRdHkAAAAAABKXrJAAAAAADVNlY29uZEZhc2VRdHkAAAAAAKOdYEAAAAAACG5vbVByaWNlAAAAAAAAAAABAAAAAAN3dnMAAAAAAAX14QAAAAAAEHN1cHBsaWVyRGlzY291bnQAAAAAAAAAAAwAAAAABE5PTkUCAAAABG5vbmUAAAAAC093bmVyUHViS2V5AQAAACB2JYFH9ti5N+7uGrdzKwlrXhDeZ+vMkHOKuVJteEgPDwAAAAAGaXNzdWVyCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUsZ/LLWvSicGFXkptOa6Ov7Vyb4KJ2haTAAAAAARlQWRkCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUmX0sM+4Li4VQQQ26bfB7j/XU/VW4HmxXAAAAAARwQWRkCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUQ6WuNYiemm0n1p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wkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9EYXRhVHJhbnNhY3Rpb24GCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAElJlaXNzdWVUcmFuc2FjdGlvbgQAAAABZAUAAAAHJG1hdGNoMAYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAnR4BQAAAAckbWF0Y2gwBgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATRXhjaGFuZ2VUcmFuc2FjdGlvbgQAAAACdHgFAAAAByRtYXRjaDAEAAAACXdpdGhXYXZlcwMJAQAAAAEhAAAAAQkBAAAACWlzRGVmaW5lZAAAAAEICAgFAAAAAnR4AAAACXNlbGxPcmRlcgAAAAlhc3NldFBhaXIAAAAKcHJpY2VBc3NldAYJAQAAAAEhAAAAAQkBAAAACWlzRGVmaW5lZAAAAAEICAgFAAAAAnR4AAAACXNlbGxPcmRlcgAAAAlhc3NldFBhaXIAAAALYW1vdW50QXNzZXQFAAAACXdpdGhXYXZlcwcLEIlb", "chainId": 84, "height": 1144052, "spentComplexity": 0 } View: original | compacted Prev: ASHSadn4pVZLRLaUBbTVv3XVNBxJMun3BP6ksQZKcjGY Next: 7JqBo6cS9LYAiUsqLcHrEUytcCH1AEw8bbqs8HMfEkBZ Diff:
OldNewDifferences
3636 let sIP = 1
3737
3838 let eIP = 1
39+
40+let sBP = 2
41+
42+let eBP = 2
3943
4044 func getNumberByKey (key) = {
4145 let num = match getInteger(this, key) {
173177 }
174178 let userAddress = toBase58String(i.caller.bytes)
175179 let subTotal = (totalAmount - ((igv * totalAmount) / 100))
176- let ybitco2 = EuroW
180+ let ybitco2 = (1 * EuroW)
177181 let cPB = ((88 * ybitco2) / 100)
178182 let uI = ((subTotal * uIP) / 100)
179183 let uBI = ((uI / cPB) * 10000)
180184 let pI = ((subTotal * pIP) / 100)
181185 let eI = ((subTotal * eIP) / 100)
182- let eBI = ((eI / cPB) * 10000)
186+ let eBI = (((subTotal * eBP) / (100 * cPB)) * 10000)
183187 let sI = ((totalAmount - pI) - eI)
184- let sBI = (((subTotal * sIP) / (cPB * 100)) * 10000)
188+ let sBI = (((subTotal * sBP) / (100 * cPB)) * 10000)
189+ let QVentasgts = (((subTotal * 11) / (cPB * 100)) * 10000)
185190 if ((totalAmount > pmt.amount))
186191 then throw("Payment Amount can't be less than item Purchase Order")
187192 else if ((pmt.amount > totalAmount))
188193 then throw("Payment Amount can't be higher than item Purchase Order")
189- 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", uBI), DataEntry(getKeyPI(item), pI), DataEntry("EcSys", eBI), DataEntry(getKeySI(item), sI), DataEntry("SBI: b", sBI), DataEntry(("Order_Status:_" + userAddress), "Adquisición Confirmada!"), DataEntry(getKeyBalanceSupplier(supplier), (balanceSupplier + pmt.amount))]), TransferSet([ScriptTransfer(i.caller, (uBI / 10000), yBitCO2), ScriptTransfer(issuer, sI, unit), ScriptTransfer(issuer, (sBI / 10000), yBitCO2)]))
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)]))
190195 }
191196 }
192197
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let yBitCO2 = base58'872MvpMoQx7SnV58HMcR9hd6vBWDtQvqmt5javCmYwpx'
55
66 let startQty = 3056930000
77
88 let FirstFaseQty = 311930000
99
1010 let SecondFaseQty = 2745000000
1111
1212 let nomPrice = 1
1313
1414 let wvs = 100000000
1515
1616 let supplierDiscount = 12
1717
1818 let NONE = "none"
1919
2020 let OwnerPubKey = base58'8xCH82jKi2DM7HXXD45fmftPUDjr3TJpjanUATKMK37U'
2121
2222 let issuer = Address(base58'3N67GoXrZo4iwmEjLhS9iNUCbzpPEjoYgNW')
2323
2424 let eAdd = Address(base58'3N3uf7RK8Aed4v5ufGB8xV2Wsz4WNoHj21c')
2525
2626 let pAdd = Address(base58'3Mv5mXTRhpWZxZxstmnsBhckWNgErMTFEaD')
2727
2828 let igv = 18
2929
3030 let EuroW = 32000000
3131
3232 let uIP = 7
3333
3434 let pIP = 10
3535
3636 let sIP = 1
3737
3838 let eIP = 1
39+
40+let sBP = 2
41+
42+let eBP = 2
3943
4044 func getNumberByKey (key) = {
4145 let num = match getInteger(this, key) {
4246 case a: Int =>
4347 a
4448 case _ =>
4549 0
4650 }
4751 num
4852 }
4953
5054
5155 func getStrByKey (key) = {
5256 let str = match getString(this, key) {
5357 case a: String =>
5458 a
5559 case _ =>
5660 NONE
5761 }
5862 str
5963 }
6064
6165
6266 func getKeyItemSupplier (supplier) = (supplier + "Bit-CO2 Shop, Lima-Perú")
6367
6468
6569 func getKeyItem (supplier,item) = (("Producto-GTS: " + " ") + toBase58String(sha256(toBytes((supplier + item)))))
6670
6771
6872 func getKeyUserItemGtsCounter (user,item) = "Order_№:"
6973
7074
7175 func getValueUserItemGtsCounter (user,item) = getNumberByKey(getKeyUserItemGtsCounter(user, item))
7276
7377
7478 func getKeyItemName (item) = "Categoría del Producto:"
7579
7680
7781 func getValueItemName (item) = getStrByKey(getKeyItemName(item))
7882
7983
8084 func getKeyUserName (item) = "Nombre del Usuario:"
8185
8286
8387 func getValueUserName (item) = getStrByKey(getKeyUserName(item))
8488
8589
8690 func getKeyUserDocument (item) = "№ de Documento / DNI del Usuario:"
8791
8892
8993 func getValueUserDocument (item) = getStrByKey(getKeyUserDocument(item))
9094
9195
9296 func getKeySaldoTokenQtyStartEtapa (item) = "Tokens Ofertados en la presente etapa / Saldo, ytok:"
9397
9498
9599 func getValueSaldoTokenQtyStartEtapa (item) = getNumberByKey(getKeySaldoTokenQtyStartEtapa(item))
96100
97101
98102 func getKeyBalanceQtySupplier (item) = "Balance/Saldo GTS, ytokens:"
99103
100104
101105 func getValueBalanceQtySupplier (item) = getNumberByKey(getKeyBalanceQtySupplier(item))
102106
103107
104108 func getKeyBalanceSupplier (supplier) = "Ingresos por VentaGTS, wvls:"
105109
106110
107111 func getValueBalanceSupplier (supplier) = getNumberByKey(getKeyBalanceSupplier(supplier))
108112
109113
110114 func getKeyUI (item) = "UI,_wvls:"
111115
112116
113117 func getValueUI (item) = getNumberByKey(getKeyUI(item))
114118
115119
116120 func getKeyPI (item) = "PI,_wvls:"
117121
118122
119123 func getValuePI (item) = getNumberByKey(getKeyPI(item))
120124
121125
122126 func getKeySI (item) = "SI,_wvls:"
123127
124128
125129 func getValueSI (item) = getNumberByKey(getKeySI(item))
126130
127131
128132 @Callable(i)
129133 func deposit (title,supplierData) = {
130134 let pmt = extract(i.payment)
131135 if ((pmt.assetId != yBitCO2))
132136 then throw("deposito permitido solo en yBitCO2 tokens")
133137 else {
134138 let supplier = toBase58String(i.caller.bytes)
135139 let currentAmount = match getInteger(this, supplier) {
136140 case a: Int =>
137141 a
138142 case _ =>
139143 startQty
140144 }
141145 let newAmount = (currentAmount + pmt.amount)
142146 if ((0 >= newAmount))
143147 then throw("No hay yBitCO2 en su balance")
144148 else WriteSet([DataEntry(supplier, newAmount)])
145149 }
146150 }
147151
148152
149153
150154 @Callable(i)
151155 func purchaseGTS (item,itemName,userName,userDocument,totalAmount,pAdd,eAdd) = {
152156 let pmt = extract(i.payment)
153157 if (isDefined(pmt.assetId))
154158 then throw("El Precio en waves.")
155159 else {
156160 let supplier = match getString(this, getKeyItemSupplier(item)) {
157161 case a: String =>
158162 a
159163 case _ =>
160164 NONE
161165 }
162166 let preIcoQty = match getInteger(this, getKeyBalanceQtySupplier(item)) {
163167 case a: Int =>
164168 a
165169 case _ =>
166170 SecondFaseQty
167171 }
168172 let balanceSupplier = match getInteger(this, getKeyBalanceSupplier(supplier)) {
169173 case a: Int =>
170174 a
171175 case _ =>
172176 0
173177 }
174178 let userAddress = toBase58String(i.caller.bytes)
175179 let subTotal = (totalAmount - ((igv * totalAmount) / 100))
176- let ybitco2 = EuroW
180+ let ybitco2 = (1 * EuroW)
177181 let cPB = ((88 * ybitco2) / 100)
178182 let uI = ((subTotal * uIP) / 100)
179183 let uBI = ((uI / cPB) * 10000)
180184 let pI = ((subTotal * pIP) / 100)
181185 let eI = ((subTotal * eIP) / 100)
182- let eBI = ((eI / cPB) * 10000)
186+ let eBI = (((subTotal * eBP) / (100 * cPB)) * 10000)
183187 let sI = ((totalAmount - pI) - eI)
184- let sBI = (((subTotal * sIP) / (cPB * 100)) * 10000)
188+ let sBI = (((subTotal * sBP) / (100 * cPB)) * 10000)
189+ let QVentasgts = (((subTotal * 11) / (cPB * 100)) * 10000)
185190 if ((totalAmount > pmt.amount))
186191 then throw("Payment Amount can't be less than item Purchase Order")
187192 else if ((pmt.amount > totalAmount))
188193 then throw("Payment Amount can't be higher than item Purchase Order")
189- 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", uBI), DataEntry(getKeyPI(item), pI), DataEntry("EcSys", eBI), DataEntry(getKeySI(item), sI), DataEntry("SBI: b", sBI), DataEntry(("Order_Status:_" + userAddress), "Adquisición Confirmada!"), DataEntry(getKeyBalanceSupplier(supplier), (balanceSupplier + pmt.amount))]), TransferSet([ScriptTransfer(i.caller, (uBI / 10000), yBitCO2), ScriptTransfer(issuer, sI, unit), ScriptTransfer(issuer, (sBI / 10000), yBitCO2)]))
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)]))
190195 }
191196 }
192197
193198
194199
195200 @Callable(i)
196201 func withdraw (item,amount) = {
197202 let userAddress = toBase58String(i.caller.bytes)
198203 let supplier = match getString(this, getKeyItemSupplier(item)) {
199204 case a: String =>
200205 a
201206 case _ =>
202207 NONE
203208 }
204209 let preIcoQty = match getInteger(this, getKeyBalanceQtySupplier(item)) {
205210 case a: Int =>
206211 a
207212 case _ =>
208213 startQty
209214 }
210215 let newAmount = (preIcoQty - amount)
211216 if ((0 > amount))
212217 then throw("El balance de retiro no puede ser negativo!")
213218 else if ((0 >= newAmount))
214219 then throw("Ooppss.. Insuficiente balance!")
215220 else ScriptResult(WriteSet([DataEntry(item, newAmount)]), TransferSet([ScriptTransfer(i.caller, amount, yBitCO2)]))
216221 }
217222
218223
219224 @Verifier(tx)
220225 func verify () = match tx {
221226 case t: SetScriptTransaction =>
222227 sigVerify(tx.bodyBytes, tx.proofs[0], OwnerPubKey)
223228 case d: DataTransaction|ReissueTransaction =>
224229 true
225230 case tx: TransferTransaction =>
226231 true
227232 case tx: ExchangeTransaction =>
228233 let withWaves = if (!(isDefined(tx.sellOrder.assetPair.priceAsset)))
229234 then true
230235 else !(isDefined(tx.sellOrder.assetPair.amountAsset))
231236 withWaves
232237 case _ =>
233238 false
234239 }
235240

github/deemru/w8io/026f985 
120.89 ms