tx · 9CTwRiNvoBzXkcbH4phLvC4nJzQJAA2tdLimqXLGkPNA

3N6D1fPBTu4QuZenU7hKNuxEKsxd13USum8:  -0.01400000 Waves

2020.08.19 13:56 [1139691] smart account 3N6D1fPBTu4QuZenU7hKNuxEKsxd13USum8 > SELF 0.00000000 Waves

{ "type": 13, "id": "9CTwRiNvoBzXkcbH4phLvC4nJzQJAA2tdLimqXLGkPNA", "fee": 1400000, "feeAssetId": null, "timestamp": 1597834676147, "version": 1, "sender": "3N6D1fPBTu4QuZenU7hKNuxEKsxd13USum8", "senderPublicKey": "8xCH82jKi2DM7HXXD45fmftPUDjr3TJpjanUATKMK37U", "proofs": [ "Wgup9J1Jq9FwkewST4JnEPk5gq7LUvdtuMdfHuwqyDzjhmqzzkp5n1z9hYAetP1gkmZeappmDEcpqPau5KXPCBk" ], "script": "base64:AAIDAAAAAAAAABkIARIECgIICBIJCgcICAgIAQgIEgQKAggBAAAAKgAAAAAHeUJpdENPMgEAAAAgaYzU/9tNAX3oy3i337OPwVw8OVvpDHloDSGOZ+mbS60AAAAACHN0YXJ0UXR5AAAAAAC2NQzQAAAAAAxGaXJzdEZhc2VRdHkAAAAAABKXrJAAAAAADVNlY29uZEZhc2VRdHkAAAAAAKOdYEAAAAAACG5vbVByaWNlAAAAAAAAAAABAAAAAAN3dnMAAAAAAAX14QAAAAAAEHN1cHBsaWVyRGlzY291bnQAAAAAAAAAAAwAAAAABE5PTkUCAAAABG5vbmUAAAAAC093bmVyUHViS2V5AQAAACB2JYFH9ti5N+7uGrdzKwlrXhDeZ+vMkHOKuVJteEgPDwAAAAAGaXNzdWVyCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUsZ/LLWvSicGFXkptOa6Ov7Vyb4KJ2haTAAAAAARlQWRkCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUmX0sM+4Li4VQQQ26bfB7j/XU/VW4HmxXAAAAAARwQWRkCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUQ6WuNYiem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AAAAKcHJpY2VBc3NldAYJAQAAAAEhAAAAAQkBAAAACWlzRGVmaW5lZAAAAAEICAgFAAAAAnR4AAAACXNlbGxPcmRlcgAAAAlhc3NldFBhaXIAAAALYW1vdW50QXNzZXQFAAAACXdpdGhXYXZlcwdlOvKt", "chainId": 84, "height": 1139691, "spentComplexity": 0 } View: original | compacted Prev: DBgSfWwgNXP1sqYfwuPnNMzyQ8FYdyQpPnubPfatB3x1 Next: HhiNz7FwaNJndqp6jSuvBfWuMMiGVNe2VHUAtjNQyJbo Diff:
OldNewDifferences
172172 0
173173 }
174174 let userAddress = toBase58String(i.caller.bytes)
175- let subTotal = (totalAmount - ((igv * totalAmount) / 100))
175+ let subTotal = (totalAmount - (((igv * totalAmount) / wvs) * 100))
176176 let uI = ((subTotal * uIP) / 100)
177177 let uBI = (uI / cPB)
178178 let pI = ((subTotal * pIP) / 100)
185185 then throw("Payment Amount can't be less than item Purchase Order")
186186 else if ((pmt.amount > totalAmount))
187187 then throw("Payment Amount can't be higher than item Purchase Order")
188- 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 / wvs)), DataEntry("Imp, %", igv), DataEntry("STtl, wvs", (subTotal / wvs)), DataEntry("CP 1 B, wvs", ((cPB * 1) / wvs)), DataEntry(getKeyUI(item), (uI / wvs)), DataEntry("UBI", uBI), DataEntry(getKeyPI(item), (pI / wvs)), DataEntry("EcSys", (eBI / wvs)), DataEntry(getKeySI(item), (sI / wvs)), DataEntry("SBI: b", (sBI / wvs)), DataEntry(("Order_Status:_" + userAddress), "Adquisición Confirmada!"), DataEntry("QporVentasGTS", (QVentasgts / wvs)), DataEntry(getKeyBalanceQtySupplier(item), ((SecondFaseQty - QVentasgts) / wvs)), DataEntry(getKeyBalanceSupplier(supplier), ((balanceSupplier + pmt.amount) / wvs))]), TransferSet([ScriptTransfer(i.caller, uBI, yBitCO2), ScriptTransfer(issuer, sI, unit), ScriptTransfer(issuer, sBI, yBitCO2)]))
188+ 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, wvs", subTotal), DataEntry("CP 1 B, wvs", (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("QporVentasGTS", QVentasgts), DataEntry(getKeyBalanceQtySupplier(item), (SecondFaseQty - QVentasgts)), DataEntry(getKeyBalanceSupplier(supplier), (balanceSupplier + pmt.amount))]), TransferSet([ScriptTransfer(i.caller, uBI, yBitCO2), ScriptTransfer(issuer, sI, unit), ScriptTransfer(issuer, sBI, yBitCO2)]))
189189 }
190190 }
191191
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 cPB = 88000000
3131
3232 let uIP = 7
3333
3434 let pIP = 10
3535
3636 let sIP = 1
3737
3838 let eIP = 1
3939
4040 func getNumberByKey (key) = {
4141 let num = match getInteger(this, key) {
4242 case a: Int =>
4343 a
4444 case _ =>
4545 0
4646 }
4747 num
4848 }
4949
5050
5151 func getStrByKey (key) = {
5252 let str = match getString(this, key) {
5353 case a: String =>
5454 a
5555 case _ =>
5656 NONE
5757 }
5858 str
5959 }
6060
6161
6262 func getKeyItemSupplier (supplier) = (supplier + "Bit-CO2 Shop, Lima-Perú")
6363
6464
6565 func getKeyItem (supplier,item) = (("Producto-GTS: " + " ") + toBase58String(sha256(toBytes((supplier + item)))))
6666
6767
6868 func getKeyUserItemGtsCounter (user,item) = "Order_№:"
6969
7070
7171 func getValueUserItemGtsCounter (user,item) = getNumberByKey(getKeyUserItemGtsCounter(user, item))
7272
7373
7474 func getKeyItemName (item) = "Categoría del Producto:"
7575
7676
7777 func getValueItemName (item) = getStrByKey(getKeyItemName(item))
7878
7979
8080 func getKeyUserName (item) = "Nombre del Usuario:"
8181
8282
8383 func getValueUserName (item) = getStrByKey(getKeyUserName(item))
8484
8585
8686 func getKeyUserDocument (item) = "№ de Documento / DNI del Usuario:"
8787
8888
8989 func getValueUserDocument (item) = getStrByKey(getKeyUserDocument(item))
9090
9191
9292 func getKeySaldoTokenQtyStartEtapa (item) = "Tokens Ofertados en la presente etapa / Saldo, ytok:"
9393
9494
9595 func getValueSaldoTokenQtyStartEtapa (item) = getNumberByKey(getKeySaldoTokenQtyStartEtapa(item))
9696
9797
9898 func getKeyBalanceQtySupplier (item) = "Balance/Saldo GTS, ytokens:"
9999
100100
101101 func getValueBalanceQtySupplier (item) = getNumberByKey(getKeyBalanceQtySupplier(item))
102102
103103
104104 func getKeyBalanceSupplier (supplier) = "Ingresos por VentaGTS, wvls:"
105105
106106
107107 func getValueBalanceSupplier (supplier) = getNumberByKey(getKeyBalanceSupplier(supplier))
108108
109109
110110 func getKeyUI (item) = "UI,_wvls:"
111111
112112
113113 func getValueUI (item) = getNumberByKey(getKeyUI(item))
114114
115115
116116 func getKeyPI (item) = "PI,_wvls:"
117117
118118
119119 func getValuePI (item) = getNumberByKey(getKeyPI(item))
120120
121121
122122 func getKeySI (item) = "SI,_wvls:"
123123
124124
125125 func getValueSI (item) = getNumberByKey(getKeySI(item))
126126
127127
128128 @Callable(i)
129129 func deposit (title,supplierData) = {
130130 let pmt = extract(i.payment)
131131 if ((pmt.assetId != yBitCO2))
132132 then throw("deposito permitido solo en yBitCO2 tokens")
133133 else {
134134 let supplier = toBase58String(i.caller.bytes)
135135 let currentAmount = match getInteger(this, supplier) {
136136 case a: Int =>
137137 a
138138 case _ =>
139139 startQty
140140 }
141141 let newAmount = (currentAmount + pmt.amount)
142142 if ((0 >= newAmount))
143143 then throw("No hay yBitCO2 en su balance")
144144 else WriteSet([DataEntry(supplier, newAmount)])
145145 }
146146 }
147147
148148
149149
150150 @Callable(i)
151151 func purchaseGTS (item,itemName,userName,userDocument,totalAmount,pAdd,eAdd) = {
152152 let pmt = extract(i.payment)
153153 if (isDefined(pmt.assetId))
154154 then throw("El Precio en waves.")
155155 else {
156156 let supplier = match getString(this, getKeyItemSupplier(item)) {
157157 case a: String =>
158158 a
159159 case _ =>
160160 NONE
161161 }
162162 let preIcoQty = match getInteger(this, getKeyBalanceQtySupplier(item)) {
163163 case a: Int =>
164164 a
165165 case _ =>
166166 SecondFaseQty
167167 }
168168 let balanceSupplier = match getInteger(this, getKeyBalanceSupplier(supplier)) {
169169 case a: Int =>
170170 a
171171 case _ =>
172172 0
173173 }
174174 let userAddress = toBase58String(i.caller.bytes)
175- let subTotal = (totalAmount - ((igv * totalAmount) / 100))
175+ let subTotal = (totalAmount - (((igv * totalAmount) / wvs) * 100))
176176 let uI = ((subTotal * uIP) / 100)
177177 let uBI = (uI / cPB)
178178 let pI = ((subTotal * pIP) / 100)
179179 let eI = ((subTotal * eIP) / 100)
180180 let eBI = (eI / cPB)
181181 let sI = ((totalAmount - pI) - eI)
182182 let sBI = ((subTotal * sIP) / (cPB * 100))
183183 let QVentasgts = ((subTotal * 11) / (cPB * 100))
184184 if ((totalAmount > pmt.amount))
185185 then throw("Payment Amount can't be less than item Purchase Order")
186186 else if ((pmt.amount > totalAmount))
187187 then throw("Payment Amount can't be higher than item Purchase Order")
188- 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 / wvs)), DataEntry("Imp, %", igv), DataEntry("STtl, wvs", (subTotal / wvs)), DataEntry("CP 1 B, wvs", ((cPB * 1) / wvs)), DataEntry(getKeyUI(item), (uI / wvs)), DataEntry("UBI", uBI), DataEntry(getKeyPI(item), (pI / wvs)), DataEntry("EcSys", (eBI / wvs)), DataEntry(getKeySI(item), (sI / wvs)), DataEntry("SBI: b", (sBI / wvs)), DataEntry(("Order_Status:_" + userAddress), "Adquisición Confirmada!"), DataEntry("QporVentasGTS", (QVentasgts / wvs)), DataEntry(getKeyBalanceQtySupplier(item), ((SecondFaseQty - QVentasgts) / wvs)), DataEntry(getKeyBalanceSupplier(supplier), ((balanceSupplier + pmt.amount) / wvs))]), TransferSet([ScriptTransfer(i.caller, uBI, yBitCO2), ScriptTransfer(issuer, sI, unit), ScriptTransfer(issuer, sBI, yBitCO2)]))
188+ 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, wvs", subTotal), DataEntry("CP 1 B, wvs", (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("QporVentasGTS", QVentasgts), DataEntry(getKeyBalanceQtySupplier(item), (SecondFaseQty - QVentasgts)), DataEntry(getKeyBalanceSupplier(supplier), (balanceSupplier + pmt.amount))]), TransferSet([ScriptTransfer(i.caller, uBI, yBitCO2), ScriptTransfer(issuer, sI, unit), ScriptTransfer(issuer, sBI, yBitCO2)]))
189189 }
190190 }
191191
192192
193193
194194 @Callable(i)
195195 func withdraw (item,amount) = {
196196 let userAddress = toBase58String(i.caller.bytes)
197197 let supplier = match getString(this, getKeyItemSupplier(item)) {
198198 case a: String =>
199199 a
200200 case _ =>
201201 NONE
202202 }
203203 let preIcoQty = match getInteger(this, getKeyBalanceQtySupplier(item)) {
204204 case a: Int =>
205205 a
206206 case _ =>
207207 startQty
208208 }
209209 let newAmount = (preIcoQty - amount)
210210 if ((0 > amount))
211211 then throw("El balance de retiro no puede ser negativo!")
212212 else if ((0 >= newAmount))
213213 then throw("Ooppss.. Insuficiente balance!")
214214 else ScriptResult(WriteSet([DataEntry(item, newAmount)]), TransferSet([ScriptTransfer(i.caller, amount, yBitCO2)]))
215215 }
216216
217217
218218 @Verifier(tx)
219219 func verify () = match tx {
220220 case t: SetScriptTransaction =>
221221 sigVerify(tx.bodyBytes, tx.proofs[0], OwnerPubKey)
222222 case d: DataTransaction|ReissueTransaction =>
223223 true
224224 case tx: TransferTransaction =>
225225 true
226226 case tx: ExchangeTransaction =>
227227 let withWaves = if (!(isDefined(tx.sellOrder.assetPair.priceAsset)))
228228 then true
229229 else !(isDefined(tx.sellOrder.assetPair.amountAsset))
230230 withWaves
231231 case _ =>
232232 false
233233 }
234234

github/deemru/w8io/026f985 
50.50 ms