tx · 8jyAVdCrkGE7uKvEyWMPQgcQ6st73W5MUYqqFhU2WzBZ

3N9DpWDvNPnq3wuuyh2cGk9hcKfoke9CCfL:  -0.01000000 Waves

2021.10.31 13:06 [1770341] smart account 3N9DpWDvNPnq3wuuyh2cGk9hcKfoke9CCfL > SELF 0.00000000 Waves

{ "type": 13, "id": "8jyAVdCrkGE7uKvEyWMPQgcQ6st73W5MUYqqFhU2WzBZ", "fee": 1000000, "feeAssetId": null, "timestamp": 1635674793407, "version": 2, "chainId": 84, "sender": "3N9DpWDvNPnq3wuuyh2cGk9hcKfoke9CCfL", "senderPublicKey": "A695BnQcmLqEPwcN5kdhv4bHipgdE4FnM5CBEMtA95Mo", "proofs": [ "3AxBfJrgm19pNTPiZnYzRHwVwGrvKgkvgVEDgucJK5tqKqjFn3qMTU9gxSoiyZiM8Yddta17seneKo1eAUhQvFGz" ], "script": "base64:AAIDAAAAAAAAAAsIARIHCgUICAgBAQAAAC0AAAAAB3hCaXRDTzIBAAAAICAEZKaqA3sNb6aq+pclWLOWiXpTDP/vusZoh2yDVNyNAAAAAA1zdGFydFRvdGFsUXR5AAAAAAAABKodAAAAAAxGaXJzdEZhc2VRdHkAAAAAAAAAK7kAAAAADVNlY29uZEZhc2VRdHkAAAAAAAAEMEQAAAAAA3d2cwAAAAAABfXhAAAAAAATYW1vdW50QXNzZXREZWNpbWFscwAAAAAAAAAADAAAAAAETk9ORQIAAAAEbm9uZQAAAAAFZXVyb3UAAAAAAAAAAHQAAAAABXVzZG53AAAAAAAAAAnrAAAAAAViY28yZQAAAAAAAAAACgAAAAALT3duZXJQdWJLZXkBAAAAIIcKNq99kuJ9WetD4RzbqGBoQt3P74qF++Y9wltvbHx2AQAAAA5nZXROdW1iZXJCeUtleQAAAAEAAAADa2V5BAAAAANudW0EAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtY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icationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7ZagJf1tDY12EyxgjNyejBtM69k9rd5ZQeJoKPyj8DXX Next: Gp3nirLUcXF7K6b8oyHqQF2pHbrRGDEpSujHw6Fz3f64 Diff:
OldNewDifferences
1010 let SecondFaseQty = 274500
1111
1212 let wvs = 100000000
13+
14+let amountAssetDecimals = 12
1315
1416 let NONE = "none"
1517
166168 let userAddress = toBase58String(i.caller.bytes)
167169 let dsctFract = fraction((((100 - userDiscount) * bco2e) * eurou), wvs, 100)
168170 let currentTokenPrice = fraction(dsctFract, 1, usdnw)
169- let totalAmount = (orderQty * currentTokenPrice)
171+ let totalAmount = ((orderQty * currentTokenPrice) * pow(10, 0, 12, 0, 0, HALFUP))
170172 if ((totalAmount > pmt.amount))
171173 then throw("Payment Amount can't be less than item Purchase Order")
172174 else if ((pmt.amount > totalAmount))
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
13+
14+let amountAssetDecimals = 12
1315
1416 let NONE = "none"
1517
1618 let eurou = 116
1719
1820 let usdnw = 2539
1921
2022 let bco2e = 10
2123
2224 let OwnerPubKey = base58'A695BnQcmLqEPwcN5kdhv4bHipgdE4FnM5CBEMtA95Mo'
2325
2426 func getNumberByKey (key) = {
2527 let num = match getInteger(this, key) {
2628 case a: Int =>
2729 a
2830 case _ =>
2931 0
3032 }
3133 num
3234 }
3335
3436
3537 func getStrByKey (key) = {
3638 let str = match getString(this, key) {
3739 case a: String =>
3840 a
3941 case _ =>
4042 NONE
4143 }
4244 str
4345 }
4446
4547
4648 func getKeyProjectCategory (item) = "Categoría:"
4749
4850
4951 func getValueProjectCategory (item) = getStrByKey(getKeyProjectCategory(item))
5052
5153
5254 func getKeyItemSupplier (supplier) = (supplier + "Comunidad Achuar Kapawi del Ecuador")
5355
5456
5557 func getKeyProjectName (item) = "Nombre del Proyecto:"
5658
5759
5860 func getValueProjectName (item) = getStrByKey(getKeyProjectName(item))
5961
6062
6163 func getKeyProjectCountry (item) = "País | Ubicación:"
6264
6365
6466 func getValueProjectCountry (item) = getStrByKey(getKeyProjectCountry(item))
6567
6668
6769 func getKeyProjectCode (item) = "Código:"
6870
6971
7072 func getValueProjectCode (item) = getStrByKey(getKeyProjectCode(item))
7173
7274
7375 func getKeyProjectPropietary (item) = "Propietario | Beneficiario del Proyecto:"
7476
7577
7678 func getValueProjectPropietary (item) = getStrByKey(getKeyProjectPropietary(item))
7779
7880
7981 func getKeyProjectDev (supplier) = "Desarrollador | Responsable Legal:"
8082
8183
8284 func getValueProjectDev (supplier) = getStrByKey(getKeyProjectDev(supplier))
8385
8486
8587 func getKeyFirstFaseQty (item) = "Tokens ofertados para Usuarios|inversores en Fase I Pre-ICO:"
8688
8789
8890 func getValueFirstFaseQty (item) = getStrByKey(getKeyFirstFaseQty(item))
8991
9092
9193 func getKeyNomTokenPrice (item) = "Precio Nominal, 1 token Bit-CO2:"
9294
9395
9496 func getKeyDescuento6TokPrice (item) = "Precio de 1 token Bit-CO2 con descuento elejido:"
9597
9698
9799 func getValueDescuento6TokPrice (item) = getNumberByKey(getKeyDescuento6TokPrice(item))
98100
99101
100102 func getKeySaldoTokenQtyStartEtapa (item) = "Saldo de tokens en oferta con dcto máx. del 6%:"
101103
102104
103105 func getValueSaldoTokenQtyStartEtapa (item) = getNumberByKey(getKeySaldoTokenQtyStartEtapa(item))
104106
105107
106108 func getKeyUserItemCounter (user,item) = "Order_№:"
107109
108110
109111 func getValueUserItemCounter (user,item) = getNumberByKey(getKeyUserItemCounter(user, item))
110112
111113
112114 func getKeyUserDocument (item) = "Documento Nacional de Identidad, DNI del Usuario:"
113115
114116
115117 func getValueUserDocument (item) = getStrByKey(getKeyUserDocument(item))
116118
117119
118120 func getKeyUserCountry (item) = "País de Residencia del Usuario:"
119121
120122
121123 func getValueUserCountry (item) = getStrByKey(getKeyUserCountry(item))
122124
123125
124126 func getKeyDiscount6User (item) = "Descuento a elección voluntaria, máximo 6%:"
125127
126128
127129 func getValueDiscount6User (item) = getNumberByKey(getKeyDiscount6User(item))
128130
129131
130132 func getKeyItemUserOrderQty (item) = "Cantidad de tokens a adquirir:"
131133
132134
133135 func getValueItemUserOrderQty (item) = getNumberByKey(getKeyItemUserOrderQty(item))
134136
135137
136138 func getKeyBalanceSupplier (supplier) = "Ingresos por Venta Directa / BlockChain:"
137139
138140
139141 func getValueBalanceSupplier (supplier) = getNumberByKey(getKeyBalanceSupplier(supplier))
140142
141143
142144 @Callable(i)
143145 func purchase (item,userDocument,userCountry,userDiscount,orderQty) = {
144146 let pmt = extract(i.payment)
145147 if (isDefined(pmt.assetId))
146148 then throw("Ud. puede adquirir tokens xBitCO2 usando WavesKeeper y su token de pago Waves.")
147149 else {
148150 let supplier = match getString(this, getKeyItemSupplier(item)) {
149151 case a: String =>
150152 a
151153 case _ =>
152154 NONE
153155 }
154156 let preIcoQty = match getInteger(this, getKeySaldoTokenQtyStartEtapa(item)) {
155157 case a: Int =>
156158 a
157159 case _ =>
158160 0
159161 }
160162 let balanceSupplier = match getInteger(this, getKeyBalanceSupplier(supplier)) {
161163 case a: Int =>
162164 a
163165 case _ =>
164166 0
165167 }
166168 let userAddress = toBase58String(i.caller.bytes)
167169 let dsctFract = fraction((((100 - userDiscount) * bco2e) * eurou), wvs, 100)
168170 let currentTokenPrice = fraction(dsctFract, 1, usdnw)
169- let totalAmount = (orderQty * currentTokenPrice)
171+ let totalAmount = ((orderQty * currentTokenPrice) * pow(10, 0, 12, 0, 0, HALFUP))
170172 if ((totalAmount > pmt.amount))
171173 then throw("Payment Amount can't be less than item Purchase Order")
172174 else if ((pmt.amount > totalAmount))
173175 then throw("Payment Amount can't be higher than item Purchase Order")
174176 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("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)]))
175177 }
176178 }
177179
178180
179181 @Verifier(tx)
180182 func verify () = match tx {
181183 case t: SetScriptTransaction =>
182184 sigVerify(tx.bodyBytes, tx.proofs[0], OwnerPubKey)
183185 case d: ReissueTransaction|DataTransaction =>
184186 true
185187 case tx: TransferTransaction =>
186188 true
187189 case tx: ExchangeTransaction =>
188190 let withWaves = if (!(isDefined(tx.sellOrder.assetPair.priceAsset)))
189191 then true
190192 else !(isDefined(tx.sellOrder.assetPair.amountAsset))
191193 withWaves
192194 case _ =>
193195 false
194196 }
195197

github/deemru/w8io/026f985 
87.97 ms