tx · BfVNkyJCSHzrZEQ6zgFwwTQTNDPYdmAwB74kUbXJWrbk

3N9DpWDvNPnq3wuuyh2cGk9hcKfoke9CCfL:  -0.01000000 Waves

2021.11.01 11:13 [1771684] smart account 3N9DpWDvNPnq3wuuyh2cGk9hcKfoke9CCfL > SELF 0.00000000 Waves

{ "type": 13, "id": "BfVNkyJCSHzrZEQ6zgFwwTQTNDPYdmAwB74kUbXJWrbk", "fee": 1000000, "feeAssetId": null, "timestamp": 1635754429091, "version": 2, "chainId": 84, "sender": "3N9DpWDvNPnq3wuuyh2cGk9hcKfoke9CCfL", "senderPublicKey": "A695BnQcmLqEPwcN5kdhv4bHipgdE4FnM5CBEMtA95Mo", "proofs": [ "3cMMNR42ouQkuHWjJ2Q81Xbf7DtUyWVEmh2F1j2sTsFohwuBzYHCDwqnrejrNDSJ1vBS9agMcYFqf9Lj4zUm8UnJ" ], "script": "base64:AAIDAAAAAAAAAAsIARIHCgUICAgBAQAAACwAAAAAB3hCaXRDTzIBAAAAICAEZKaqA3sNb6aq+pclWLOWiXpTDP/vusZoh2yDVNyNAAAAAA1zdGFydFRvdGFsUXR5AAAAAAAABKodAAAAAAxGaXJzdEZhc2VRdHkAAAAAAAAAK7kAAAAADVNlY29uZEZhc2VRdHkAAAAAAAAEMEQAAAAAA3d2cwAAAAAABfXhAAAAAAAETk9ORQIAAAAEbm9uZQAAAAAFZXVyb3UAAAAAAAAAAHQAAAAABXVzZG53AAAAAAAAAAnEAAAAAAViY28yZQAAAAAAAAAACgAAAAALT3duZXJQdWJLZXkBAAAAIIcKNq99kuJ9WetD4RzbqGBoQt3P74qF++Y9wltvbHx2AQAAAA5nZXROdW1iZXJCeUtleQAAAAEAAAADa2V5BAAAAANudW0EAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAAFAAAAA251b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W9uBAAAAAJ0eAUAAAAHJG1hdGNoMAQAAAAJd2l0aFdhdmVzAwkBAAAAASEAAAABCQEAAAAJaXNEZWZpbmVkAAAAAQgICAUAAAACdHgAAAAJc2VsbE9yZGVyAAAACWFzc2V0UGFpcgAAAApwcmljZUFzc2V0BgkBAAAAASEAAAABCQEAAAAJaXNEZWZpbmVkAAAAAQgICAUAAAACdHgAAAAJc2VsbE9yZGVyAAAACWFzc2V0UGFpcgAAAAthbW91bnRBc3NldAUAAAAJd2l0aFdhdmVzBwGm5P8=", "height": 1771684, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HXMMnERHDKzLNzT5YuYzs7X3AjRJgQBZHryRy1inSq8U Next: 3qTDxGNR4353dPbNtvyympFAC5woowweXdX9TicqneDH Diff:
OldNewDifferences
1515
1616 let eurou = 116
1717
18-let usdnw = 2539
18+let usdnw = 2500
1919
2020 let bco2e = 10
2121
165165 }
166166 let userAddress = toBase58String(i.caller.bytes)
167167 let desc1 = (100 - userDiscount)
168+ let currentTokenPrice = (((((desc1 * bco2e) * eurou) * 100000000) / 100) / usdnw)
168169 let dsctFract = fraction(((desc1 * bco2e) * eurou), wvs, 10000)
169- let currentTokenPrice = fraction(dsctFract, 1000000, usdnw)
170- let a = pow(10, 0, currentTokenPrice, 4, 11, HALFUP)
171- let totalAmount = ((orderQty * currentTokenPrice) / 10000)
170+ let currentTokenPrice1 = fraction(dsctFract, 1000000, usdnw)
171+ let a = pow(10, 0, currentTokenPrice1, 4, 11, HALFUP)
172+ let totalAmount = (orderQty * currentTokenPrice)
172173 if ((totalAmount > pmt.amount))
173174 then throw("Payment Amount can't be less than item Purchase Order")
174175 else if ((pmt.amount > totalAmount))
175176 then throw("Payment Amount can't be higher than item Purchase Order")
176- else ScriptResult(WriteSet([DataEntry(getKeyProjectCategory(item), "Conservación Forestal"), DataEntry(getKeyProjectName(item), "Reserva Amazónica Achuar-Kapawi"), DataEntry(getKeyProjectCountry(item), "Ecuador"), DataEntry(getKeyProjectCode(item), "01-EC_ACH-KAPAWI_01PREICO"), DataEntry(getKeyProjectPropietary(item), "Comunidad Achuar Kapawi"), DataEntry(getKeyProjectDev(supplier), "Fundación Alianza Ecológica 'NASE'"), DataEntry(getKeyNomTokenPrice(item), "10.00 Euros"), DataEntry("Cantidad de Tokens Bit-CO2 a emitir en Fase I y II Pre-ICO", startTotalQty), DataEntry(getKeyFirstFaseQty(item), FirstFaseQty), DataEntry(getKeyDescuento6TokPrice(item), currentTokenPrice), DataEntry(getKeyUserItemCounter(userAddress, item), (getValueUserItemCounter(userAddress, item) + 1)), DataEntry(getKeyUserDocument(item), userDocument), DataEntry(getKeyUserCountry(item), userCountry), DataEntry(getKeyDiscount6User(item), userDiscount), DataEntry(getKeyItemUserOrderQty(item), orderQty), DataEntry("Suma invertida, wvs", totalAmount), DataEntry("Suma a", currentTokenPrice), DataEntry("Suma b", dsctFract), DataEntry("Estado de su pedido:", "¡Adquisición Confirmada!"), DataEntry(getKeySaldoTokenQtyStartEtapa(item), (getValueSaldoTokenQtyStartEtapa(item) + orderQty)), DataEntry("Saldo de Tokens", ((FirstFaseQty - getValueSaldoTokenQtyStartEtapa(item)) - orderQty)), DataEntry(getKeyBalanceSupplier(supplier), (getValueBalanceSupplier(supplier) + pmt.amount)), DataEntry("Dirección del proyecto en Waves-BlockChain:", "3N9DpWDvNPnq3wuuyh2cGk9hcKfoke9CCfL")]), TransferSet([ScriptTransfer(addressFromStringValue(userAddress), orderQty, xBitCO2)]))
177+ else ScriptResult(WriteSet([DataEntry(getKeyProjectCategory(item), "Conservación Forestal"), DataEntry(getKeyProjectName(item), "Reserva Amazónica Achuar-Kapawi"), DataEntry(getKeyProjectCountry(item), "Ecuador"), DataEntry(getKeyProjectCode(item), "01-EC_ACH-KAPAWI_01PREICO"), DataEntry(getKeyProjectPropietary(item), "Comunidad Achuar Kapawi"), DataEntry(getKeyProjectDev(supplier), "Fundación Alianza Ecológica 'NASE'"), DataEntry(getKeyNomTokenPrice(item), "10.00 Euros"), DataEntry("Cantidad de Tokens Bit-CO2 a emitir en Fase I y II Pre-ICO", startTotalQty), DataEntry(getKeyFirstFaseQty(item), FirstFaseQty), DataEntry(getKeyDescuento6TokPrice(item), currentTokenPrice), DataEntry(getKeyUserItemCounter(userAddress, item), (getValueUserItemCounter(userAddress, item) + 1)), DataEntry(getKeyUserDocument(item), userDocument), DataEntry(getKeyUserCountry(item), userCountry), DataEntry(getKeyDiscount6User(item), userDiscount), DataEntry(getKeyItemUserOrderQty(item), orderQty), DataEntry("Suma invertida, wvs", totalAmount), DataEntry("Suma a", currentTokenPrice1), DataEntry("Suma b", dsctFract), DataEntry("Estado de su pedido:", "¡Adquisición Confirmada!"), DataEntry(getKeySaldoTokenQtyStartEtapa(item), (getValueSaldoTokenQtyStartEtapa(item) + orderQty)), DataEntry("Saldo de Tokens", ((FirstFaseQty - getValueSaldoTokenQtyStartEtapa(item)) - orderQty)), DataEntry(getKeyBalanceSupplier(supplier), (getValueBalanceSupplier(supplier) + pmt.amount)), DataEntry("Dirección del proyecto en Waves-BlockChain:", "3N9DpWDvNPnq3wuuyh2cGk9hcKfoke9CCfL")]), TransferSet([ScriptTransfer(addressFromStringValue(userAddress), orderQty, xBitCO2)]))
177178 }
178179 }
179180
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let xBitCO2 = base58'39yw38hm342hiK43SqELTaZRkTWJoBc22XpxmsSiBrsN'
55
66 let startTotalQty = 305693
77
88 let FirstFaseQty = 11193
99
1010 let SecondFaseQty = 274500
1111
1212 let wvs = 100000000
1313
1414 let NONE = "none"
1515
1616 let eurou = 116
1717
18-let usdnw = 2539
18+let usdnw = 2500
1919
2020 let bco2e = 10
2121
2222 let OwnerPubKey = base58'A695BnQcmLqEPwcN5kdhv4bHipgdE4FnM5CBEMtA95Mo'
2323
2424 func getNumberByKey (key) = {
2525 let num = match getInteger(this, key) {
2626 case a: Int =>
2727 a
2828 case _ =>
2929 0
3030 }
3131 num
3232 }
3333
3434
3535 func getStrByKey (key) = {
3636 let str = match getString(this, key) {
3737 case a: String =>
3838 a
3939 case _ =>
4040 NONE
4141 }
4242 str
4343 }
4444
4545
4646 func getKeyProjectCategory (item) = "Categoría:"
4747
4848
4949 func getValueProjectCategory (item) = getStrByKey(getKeyProjectCategory(item))
5050
5151
5252 func getKeyItemSupplier (supplier) = (supplier + "Comunidad Achuar Kapawi del Ecuador")
5353
5454
5555 func getKeyProjectName (item) = "Nombre del Proyecto:"
5656
5757
5858 func getValueProjectName (item) = getStrByKey(getKeyProjectName(item))
5959
6060
6161 func getKeyProjectCountry (item) = "País | Ubicación:"
6262
6363
6464 func getValueProjectCountry (item) = getStrByKey(getKeyProjectCountry(item))
6565
6666
6767 func getKeyProjectCode (item) = "Código:"
6868
6969
7070 func getValueProjectCode (item) = getStrByKey(getKeyProjectCode(item))
7171
7272
7373 func getKeyProjectPropietary (item) = "Propietario | Beneficiario del Proyecto:"
7474
7575
7676 func getValueProjectPropietary (item) = getStrByKey(getKeyProjectPropietary(item))
7777
7878
7979 func getKeyProjectDev (supplier) = "Desarrollador | Responsable Legal:"
8080
8181
8282 func getValueProjectDev (supplier) = getStrByKey(getKeyProjectDev(supplier))
8383
8484
8585 func getKeyFirstFaseQty (item) = "Tokens ofertados para Usuarios|inversores en Fase I Pre-ICO:"
8686
8787
8888 func getValueFirstFaseQty (item) = getStrByKey(getKeyFirstFaseQty(item))
8989
9090
9191 func getKeyNomTokenPrice (item) = "Precio Nominal, 1 token Bit-CO2:"
9292
9393
9494 func getKeyDescuento6TokPrice (item) = "Precio de 1 Bit-CO2 con dscto elejido:"
9595
9696
9797 func getValueDescuento6TokPrice (item) = getNumberByKey(getKeyDescuento6TokPrice(item))
9898
9999
100100 func getKeySaldoTokenQtyStartEtapa (item) = "Saldo de tokens en oferta con dcto máx. del 6%:"
101101
102102
103103 func getValueSaldoTokenQtyStartEtapa (item) = getNumberByKey(getKeySaldoTokenQtyStartEtapa(item))
104104
105105
106106 func getKeyUserItemCounter (user,item) = "Order_№:"
107107
108108
109109 func getValueUserItemCounter (user,item) = getNumberByKey(getKeyUserItemCounter(user, item))
110110
111111
112112 func getKeyUserDocument (item) = "Documento Nacional de Identidad, DNI del Usuario:"
113113
114114
115115 func getValueUserDocument (item) = getStrByKey(getKeyUserDocument(item))
116116
117117
118118 func getKeyUserCountry (item) = "País de Residencia del Usuario:"
119119
120120
121121 func getValueUserCountry (item) = getStrByKey(getKeyUserCountry(item))
122122
123123
124124 func getKeyDiscount6User (item) = "Descuento a elección voluntaria, máximo 6%:"
125125
126126
127127 func getValueDiscount6User (item) = getNumberByKey(getKeyDiscount6User(item))
128128
129129
130130 func getKeyItemUserOrderQty (item) = "Cantidad de tokens a adquirir:"
131131
132132
133133 func getValueItemUserOrderQty (item) = getNumberByKey(getKeyItemUserOrderQty(item))
134134
135135
136136 func getKeyBalanceSupplier (supplier) = "Ingresos por Venta Directa / BlockChain:"
137137
138138
139139 func getValueBalanceSupplier (supplier) = getNumberByKey(getKeyBalanceSupplier(supplier))
140140
141141
142142 @Callable(i)
143143 func purchase (item,userDocument,userCountry,userDiscount,orderQty) = {
144144 let pmt = extract(i.payment)
145145 if (isDefined(pmt.assetId))
146146 then throw("Ud. puede adquirir tokens xBitCO2 usando WavesKeeper y su token de pago Waves.")
147147 else {
148148 let supplier = match getString(this, getKeyItemSupplier(item)) {
149149 case a: String =>
150150 a
151151 case _ =>
152152 NONE
153153 }
154154 let preIcoQty = match getInteger(this, getKeySaldoTokenQtyStartEtapa(item)) {
155155 case a: Int =>
156156 a
157157 case _ =>
158158 0
159159 }
160160 let balanceSupplier = match getInteger(this, getKeyBalanceSupplier(supplier)) {
161161 case a: Int =>
162162 a
163163 case _ =>
164164 0
165165 }
166166 let userAddress = toBase58String(i.caller.bytes)
167167 let desc1 = (100 - userDiscount)
168+ let currentTokenPrice = (((((desc1 * bco2e) * eurou) * 100000000) / 100) / usdnw)
168169 let dsctFract = fraction(((desc1 * bco2e) * eurou), wvs, 10000)
169- let currentTokenPrice = fraction(dsctFract, 1000000, usdnw)
170- let a = pow(10, 0, currentTokenPrice, 4, 11, HALFUP)
171- let totalAmount = ((orderQty * currentTokenPrice) / 10000)
170+ let currentTokenPrice1 = fraction(dsctFract, 1000000, usdnw)
171+ let a = pow(10, 0, currentTokenPrice1, 4, 11, HALFUP)
172+ let totalAmount = (orderQty * currentTokenPrice)
172173 if ((totalAmount > pmt.amount))
173174 then throw("Payment Amount can't be less than item Purchase Order")
174175 else if ((pmt.amount > totalAmount))
175176 then throw("Payment Amount can't be higher than item Purchase Order")
176- else ScriptResult(WriteSet([DataEntry(getKeyProjectCategory(item), "Conservación Forestal"), DataEntry(getKeyProjectName(item), "Reserva Amazónica Achuar-Kapawi"), DataEntry(getKeyProjectCountry(item), "Ecuador"), DataEntry(getKeyProjectCode(item), "01-EC_ACH-KAPAWI_01PREICO"), DataEntry(getKeyProjectPropietary(item), "Comunidad Achuar Kapawi"), DataEntry(getKeyProjectDev(supplier), "Fundación Alianza Ecológica 'NASE'"), DataEntry(getKeyNomTokenPrice(item), "10.00 Euros"), DataEntry("Cantidad de Tokens Bit-CO2 a emitir en Fase I y II Pre-ICO", startTotalQty), DataEntry(getKeyFirstFaseQty(item), FirstFaseQty), DataEntry(getKeyDescuento6TokPrice(item), currentTokenPrice), DataEntry(getKeyUserItemCounter(userAddress, item), (getValueUserItemCounter(userAddress, item) + 1)), DataEntry(getKeyUserDocument(item), userDocument), DataEntry(getKeyUserCountry(item), userCountry), DataEntry(getKeyDiscount6User(item), userDiscount), DataEntry(getKeyItemUserOrderQty(item), orderQty), DataEntry("Suma invertida, wvs", totalAmount), DataEntry("Suma a", currentTokenPrice), DataEntry("Suma b", dsctFract), DataEntry("Estado de su pedido:", "¡Adquisición Confirmada!"), DataEntry(getKeySaldoTokenQtyStartEtapa(item), (getValueSaldoTokenQtyStartEtapa(item) + orderQty)), DataEntry("Saldo de Tokens", ((FirstFaseQty - getValueSaldoTokenQtyStartEtapa(item)) - orderQty)), DataEntry(getKeyBalanceSupplier(supplier), (getValueBalanceSupplier(supplier) + pmt.amount)), DataEntry("Dirección del proyecto en Waves-BlockChain:", "3N9DpWDvNPnq3wuuyh2cGk9hcKfoke9CCfL")]), TransferSet([ScriptTransfer(addressFromStringValue(userAddress), orderQty, xBitCO2)]))
177+ else ScriptResult(WriteSet([DataEntry(getKeyProjectCategory(item), "Conservación Forestal"), DataEntry(getKeyProjectName(item), "Reserva Amazónica Achuar-Kapawi"), DataEntry(getKeyProjectCountry(item), "Ecuador"), DataEntry(getKeyProjectCode(item), "01-EC_ACH-KAPAWI_01PREICO"), DataEntry(getKeyProjectPropietary(item), "Comunidad Achuar Kapawi"), DataEntry(getKeyProjectDev(supplier), "Fundación Alianza Ecológica 'NASE'"), DataEntry(getKeyNomTokenPrice(item), "10.00 Euros"), DataEntry("Cantidad de Tokens Bit-CO2 a emitir en Fase I y II Pre-ICO", startTotalQty), DataEntry(getKeyFirstFaseQty(item), FirstFaseQty), DataEntry(getKeyDescuento6TokPrice(item), currentTokenPrice), DataEntry(getKeyUserItemCounter(userAddress, item), (getValueUserItemCounter(userAddress, item) + 1)), DataEntry(getKeyUserDocument(item), userDocument), DataEntry(getKeyUserCountry(item), userCountry), DataEntry(getKeyDiscount6User(item), userDiscount), DataEntry(getKeyItemUserOrderQty(item), orderQty), DataEntry("Suma invertida, wvs", totalAmount), DataEntry("Suma a", currentTokenPrice1), DataEntry("Suma b", dsctFract), DataEntry("Estado de su pedido:", "¡Adquisición Confirmada!"), DataEntry(getKeySaldoTokenQtyStartEtapa(item), (getValueSaldoTokenQtyStartEtapa(item) + orderQty)), DataEntry("Saldo de Tokens", ((FirstFaseQty - getValueSaldoTokenQtyStartEtapa(item)) - orderQty)), DataEntry(getKeyBalanceSupplier(supplier), (getValueBalanceSupplier(supplier) + pmt.amount)), DataEntry("Dirección del proyecto en Waves-BlockChain:", "3N9DpWDvNPnq3wuuyh2cGk9hcKfoke9CCfL")]), TransferSet([ScriptTransfer(addressFromStringValue(userAddress), orderQty, xBitCO2)]))
177178 }
178179 }
179180
180181
181182 @Verifier(tx)
182183 func verify () = match tx {
183184 case t: SetScriptTransaction =>
184185 sigVerify(tx.bodyBytes, tx.proofs[0], OwnerPubKey)
185186 case d: ReissueTransaction|DataTransaction =>
186187 true
187188 case tx: TransferTransaction =>
188189 true
189190 case tx: ExchangeTransaction =>
190191 let withWaves = if (!(isDefined(tx.sellOrder.assetPair.priceAsset)))
191192 then true
192193 else !(isDefined(tx.sellOrder.assetPair.amountAsset))
193194 withWaves
194195 case _ =>
195196 false
196197 }
197198

github/deemru/w8io/026f985 
57.63 ms