tx · 5stnZVaxUNQk27cqGo8yZbexEQfSs4quMVhHTcLLy2wt

3N6D1fPBTu4QuZenU7hKNuxEKsxd13USum8:  -0.01400000 Waves

2020.08.19 12:33 [1139601] smart account 3N6D1fPBTu4QuZenU7hKNuxEKsxd13USum8 > SELF 0.00000000 Waves

{ "type": 13, "id": "5stnZVaxUNQk27cqGo8yZbexEQfSs4quMVhHTcLLy2wt", "fee": 1400000, "feeAssetId": null, "timestamp": 1597829577179, "version": 1, "sender": "3N6D1fPBTu4QuZenU7hKNuxEKsxd13USum8", "senderPublicKey": "8xCH82jKi2DM7HXXD45fmftPUDjr3TJpjanUATKMK37U", "proofs": [ "3QY23dpao7wizjNnpMT6QiHCS3WFQKvNhiYQbtbKo8SmkNG9qEXVAC9PKmK8ekMB88XCub3KpkthqBcdUaKbeto9" ], "script": "base64:AAIDAAAAAAAAABkIARIECgIICBIJCgcICAgIAQgIEgQKAggBAAAAKgAAAAAHeUJpdENPMgEAAAAgaYzU/9tNAX3oy3i337OPwVw8OVvpDHloDSGOZ+mbS60AAAAACHN0YXJ0UXR5AAAAAAC2NQzQAAAAAAxGaXJzdEZhc2VRdHkAAAAAABKXrJAAAAAADVNlY29uZEZhc2VRdHkAAAAAAKOdYEAAAAAACG5vbVByaWNlAAAAAAAAAAABAAAAAAN3dnMAAAAAAAX14QAAAAAAEHN1cHBsaWVyRGlzY291bnQAAAAAAAAAAAwAAAAABE5PTkUCAAAABG5vbmUAAAAAC093bmVyUHViS2V5AQAAACB2JYFH9ti5N+7uGrdzKwlrXhDeZ+vMkHOKuVJteEgPDwAAAAAGaXNzdWVyCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUsZ/LLWvSicGFXkptOa6Ov7Vyb4KJ2haTAAAAAARlQWRkCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUmX0sM+4Li4VQQQ26bfB7j/XU/VW4HmxXAAAAAARwQWRkCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUQ6WuNYiemm0n1p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AAAAASEAAAABCQEAAAAJaXNEZWZpbmVkAAAAAQgICAUAAAACdHgAAAAJc2VsbE9yZGVyAAAACWFzc2V0UGFpcgAAAAthbW91bnRBc3NldAUAAAAJd2l0aFdhdmVzB8i8NPs=", "chainId": 84, "height": 1139601, "spentComplexity": 0 } View: original | compacted Prev: 3Zyv1uLEsziTaasrxdGpZJrC1AjoUsSdnExPnS4w9sgp Next: 4STmc7NHCuQcx2gSDS7KnP4ZagRTiz5Bwisfk4aoYjRa Diff:
OldNewDifferences
33 {-# CONTENT_TYPE DAPP #-}
44 let yBitCO2 = base58'872MvpMoQx7SnV58HMcR9hd6vBWDtQvqmt5javCmYwpx'
55
6-let startQty = 305693
6+let startQty = 3056930000
77
8-let FirstFaseQty = 31193
8+let FirstFaseQty = 311930000
99
10-let SecondFaseQty = 274500
10+let SecondFaseQty = 2745000000
1111
1212 let nomPrice = 1
1313
8989 func getValueUserDocument (item) = getStrByKey(getKeyUserDocument(item))
9090
9191
92-func getKeySaldoTokenQtyStartEtapa (item) = "Tokens Ofertados en la presente etapa / Saldo:"
92+func getKeySaldoTokenQtyStartEtapa (item) = "Tokens Ofertados en la presente etapa / Saldo, ytok:"
9393
9494
9595 func getValueSaldoTokenQtyStartEtapa (item) = getNumberByKey(getKeySaldoTokenQtyStartEtapa(item))
9696
9797
98-func getKeyBalanceQtySupplier (item) = "Balance/Saldo GTS, tokens:"
98+func getKeyBalanceQtySupplier (item) = "Balance/Saldo GTS, ytokens:"
9999
100100
101101 func getValueBalanceQtySupplier (item) = getNumberByKey(getKeyBalanceQtySupplier(item))
102102
103103
104-func getKeyBalanceSupplier (supplier) = "Ingresos por VentaGTS:"
104+func getKeyBalanceSupplier (supplier) = "Ingresos por VentaGTS, wvls:"
105105
106106
107107 func getValueBalanceSupplier (supplier) = getNumberByKey(getKeyBalanceSupplier(supplier))
108108
109109
110-func getKeyUI (item) = "UI,_wvs:"
110+func getKeyUI (item) = "UI,_wvls:"
111111
112112
113113 func getValueUI (item) = getNumberByKey(getKeyUI(item))
114114
115115
116-func getKeyPI (item) = "PI,_%:"
116+func getKeyPI (item) = "PI,_wvls:"
117117
118118
119119 func getValuePI (item) = getNumberByKey(getKeyPI(item))
120120
121121
122-func getKeySI (item) = "SI,_%:"
122+func getKeySI (item) = "SI,_wvls:"
123123
124124
125125 func getValueSI (item) = getNumberByKey(getKeySI(item))
177177 let uBI = (uI / cPB)
178178 let pI = ((subTotal * pIP) / 100)
179179 let eI = ((subTotal * eIP) / 100)
180- let eBI = ((subTotal * eIP) / (cPB * 100))
180+ let eBI = (eI / cPB)
181181 let sI = ((totalAmount - pI) - eI)
182182 let sBI = ((subTotal * sIP) / (cPB * 100))
183183 let QVentasgts = ((subTotal * 11) / (cPB * 100))
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let yBitCO2 = base58'872MvpMoQx7SnV58HMcR9hd6vBWDtQvqmt5javCmYwpx'
55
6-let startQty = 305693
6+let startQty = 3056930000
77
8-let FirstFaseQty = 31193
8+let FirstFaseQty = 311930000
99
10-let SecondFaseQty = 274500
10+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
92-func getKeySaldoTokenQtyStartEtapa (item) = "Tokens Ofertados en la presente etapa / Saldo:"
92+func getKeySaldoTokenQtyStartEtapa (item) = "Tokens Ofertados en la presente etapa / Saldo, ytok:"
9393
9494
9595 func getValueSaldoTokenQtyStartEtapa (item) = getNumberByKey(getKeySaldoTokenQtyStartEtapa(item))
9696
9797
98-func getKeyBalanceQtySupplier (item) = "Balance/Saldo GTS, tokens:"
98+func getKeyBalanceQtySupplier (item) = "Balance/Saldo GTS, ytokens:"
9999
100100
101101 func getValueBalanceQtySupplier (item) = getNumberByKey(getKeyBalanceQtySupplier(item))
102102
103103
104-func getKeyBalanceSupplier (supplier) = "Ingresos por VentaGTS:"
104+func getKeyBalanceSupplier (supplier) = "Ingresos por VentaGTS, wvls:"
105105
106106
107107 func getValueBalanceSupplier (supplier) = getNumberByKey(getKeyBalanceSupplier(supplier))
108108
109109
110-func getKeyUI (item) = "UI,_wvs:"
110+func getKeyUI (item) = "UI,_wvls:"
111111
112112
113113 func getValueUI (item) = getNumberByKey(getKeyUI(item))
114114
115115
116-func getKeyPI (item) = "PI,_%:"
116+func getKeyPI (item) = "PI,_wvls:"
117117
118118
119119 func getValuePI (item) = getNumberByKey(getKeyPI(item))
120120
121121
122-func getKeySI (item) = "SI,_%:"
122+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)
175175 let subTotal = (totalAmount - ((igv * totalAmount) / 100))
176176 let uI = ((subTotal * uIP) / 100)
177177 let uBI = (uI / cPB)
178178 let pI = ((subTotal * pIP) / 100)
179179 let eI = ((subTotal * eIP) / 100)
180- let eBI = ((subTotal * eIP) / (cPB * 100))
180+ 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")
188188 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 
47.18 ms