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

github/deemru/w8io/026f985 
66.53 ms