tx · B17Eqcv8JMFhnYcBHsNAQDR6yqWfkWARKNa1f9WjFrf3

3MqV7nczBawUF4nLJ3MikS43jHMYaVHF8UA:  -0.01300000 Waves

2022.08.08 17:33 [2175602] smart account 3MqV7nczBawUF4nLJ3MikS43jHMYaVHF8UA > SELF 0.00000000 Waves

{ "type": 13, "id": "B17Eqcv8JMFhnYcBHsNAQDR6yqWfkWARKNa1f9WjFrf3", "fee": 1300000, "feeAssetId": null, "timestamp": 1659969279003, "version": 2, "chainId": 84, "sender": "3MqV7nczBawUF4nLJ3MikS43jHMYaVHF8UA", "senderPublicKey": "Fng6v4kqm1P6h6xF9hCvumcEKbjAKgpoiwaYa7VEkDoU", "proofs": [ "4bCNx9YAmrmqKd8HH8grBxyZyso5wXKJoSnjmBcY7122XfC8eJV8w6yY4Bd5cFThwBBn8iTAtdpWpYjssUWtQfJh" ], "script": "base64:AAIFAAAAAAAAAAwIAhIICgYICAgBAQEAAAAxAAAAAAZCaXRDTzIBAAAAIMUi0QAOPWzHrrHgLgYvt6byvqBTCBHKATKU5thr4LIYAAAAAA1zdGFydFRvdGFsUXR5AAAAAAAABKodAAAAAAxGaXJzdEZhc2VRdHkAAAAAAAAAedkAAAAADVNlY29uZEZhc2VRdHkAAAAAAAAEMEQAAAAAA3d2cwAAAAAABfXhAAAAAAAETk9ORQIAAAAEbm9uZQAAAAAFZXVyb3UAAAAAAAAAAGYAAAAABXVzZG53AAAAAAAAAAJqAAAAAAViY28yZQAAAAAAAAAACgAAAAASYWRtTjA4R1RTYXNvYzExVzkwCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFU+i7AyYrRaVtmoLjDmy4+7UHs4qzGX19uAAAAABRhZG1OMDhFQ0dUU2Fzb2MxMVcxMAkBAAAAB0FkZHJlc3MAAAABAQAAABoBVDanr/iFPErnvzy2ts6SNOnfE9/sP2Z7cwAAAAASQWRtTjA4R1RTYXNvYzExVzkwAgAAACMzTkNpdmlMYnNEMW1NMlJnUVZERm9hRU1ZeTE1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AEmFkbU4wOEdUU2Fzb2MxMVc5MAkAAGkAAAACCQAAaAAAAAIAAAAAAAAAAFoIBQAAAANwbXQAAAAGYW1vdW50AAAAAAAAAABkBQAAAAR1bml0CQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMFAAAAFGFkbU4wOEVDR1RTYXNvYzExVzEwCQAAaQAAAAIJAABoAAAAAgAAAAAAAAAACggFAAAAA3BtdAAAAAZhbW91bnQAAAAAAAAAAGQFAAAABHVuaXQFAAAAA25pbAUAAAAEdW5pdAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABRTZXRTY3JpcHRUcmFuc2FjdGlvbgQAAAABdAUAAAAHJG1hdGNoMAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAJAAJZAAAAAQIAAAAsRm5nNnY0a3FtMVA2aDZ4RjloQ3Z1bWNFS2JqQUtncG9pd2FZYTdWRWtEb1UHvKAoTw==", "height": 2175602, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5rCXf9HPV76xKwEm4CoRKEUo66cwaTLU5hxNLMBoJ6sc Next: DTaHZRZrQKmQcdgP5Jc3DyCz8CqBLXt1EgG1Keh7qoLY Diff:
OldNewDifferences
1313
1414 let NONE = "none"
1515
16-let eurou = 101
16+let eurou = 102
1717
18-let usdnw = 577
18+let usdnw = 618
1919
2020 let bco2e = 10
2121
194194 then throw("El monto del pago no puede ser inferior a la orden de compra del artículo.")
195195 else if ((pmt.amount > totalAmount))
196196 then throw("El monto del pago no puede ser mayor que la orden de compra del artículo.")
197- else $Tuple2([StringEntry(getKeyProjectCategory(item), "Conservación Forestal"), StringEntry(getKeyProjectName(item), "Reserva Amazónica Achuar-Kapawi"), StringEntry(getKeyProjectCountry(item), "Ecuador"), StringEntry(getKeyProjectCode(item), "N08EC-01_ACH-KAPAWI_PREICOF1"), StringEntry(getKeyProjectPropietary(item), "Comunidad Achuar Kapawi"), StringEntry(getKeyProjectDev(supplier), "Fundación Alianza Ecológica NASEE 'FAEN'"), StringEntry(getKeyNomTokenPrice(item), "10.00 Euros"), IntegerEntry("tokens Bit-CO2 emitidos en F1/F2 PreICO, total ", startTotalQty), IntegerEntry("tokens Bit-CO2 en oferta F1 PreICO, unids ", FirstFaseQty), IntegerEntry("tokens Bit-CO2 en oferta/Intercambio, 90% F1 ", f1PjOfertaAsocGTS9X10), IntegerEntry("tokens Bit-CO2 de Apoyo Admin-Inicial, 10% F1 ", f1PjStartAdmFondsAsocGTS1X10), IntegerEntry("tokens Bit-CO2 en oferta F2 PreICO, unids ", SecondFaseQty), IntegerEntry(getKeyUserItemCounter(userAddress, item), (getValueUserItemCounter(userAddress, item) + 1)), StringEntry(getKeyUserCountry(item), userCountry), StringEntry(getKeyUserDocument(item), userDocument), IntegerEntry(getKeyDiscount6User(item), userDiscount), IntegerEntry(getKeyDescuento6TokPrice(item), currentTokenPrice), StringEntry("Estado de su pedido, tokens ", "¡Adquisición Confirmada!"), IntegerEntry(getKeyItemUserOrderQty(item), orderQty), IntegerEntry("Suma transmitida a la PreICO, wvs", totalAmount), IntegerEntry(getKeySaldoTokenQtyStartEtapa(item), (getValueSaldoTokenQtyStartEtapa(item) + orderQty)), IntegerEntry("Saldo de Bit-CO2 en oferta F1 PreICO ", ((FirstFaseQty - getValueSaldoTokenQtyStartEtapa(item)) - orderQty)), IntegerEntry("Saldo Total de Bit-CO2 en F1 PreICO ", ((startTotalQty - getValueSaldoTokenQtyStartEtapa(item)) - orderQty)), IntegerEntry("Saldo Total de Bit-CO2 en F2 PreICO ", SecondFaseQty), IntegerEntry(getKeyBalanceSupplier(supplier), (getValueBalanceSupplier(supplier) + pmt.amount)), ScriptTransfer(addressFromStringValue(userAddress), (10000 * orderQty), BitCO2), ScriptTransfer(admN08GTSasoc11W90, ((90 * pmt.amount) / 100), unit), ScriptTransfer(admN08ECGTSasoc11W10, ((10 * pmt.amount) / 100), unit)], unit)
197+ else $Tuple2([StringEntry(getKeyProjectCategory(item), "Conservación Forestal"), StringEntry(getKeyProjectName(item), "Reserva Amazónica Achuar-Kapawi"), StringEntry(getKeyProjectCountry(item), "Ecuador"), StringEntry(getKeyProjectCode(item), "N08EC-01_ACH-KAPAWI_PREICOF1"), StringEntry(getKeyProjectPropietary(item), "Comunidad Achuar Kapawi"), StringEntry(getKeyProjectDev(supplier), "Fundación Alianza Ecológica NASEE 'FAEN'"), StringEntry(getKeyNomTokenPrice(item), "10.00 Euros"), IntegerEntry("tokens Bit-CO2 emitidos en F1/F2 PreICO, total ", startTotalQty), IntegerEntry("tokens Bit-CO2 en oferta F1 PreICO, unids ", FirstFaseQty), IntegerEntry("tokens Bit-CO2 en oferta/Intercambio, 90% F1 ", f1PjOfertaAsocGTS9X10), IntegerEntry("tokens Bit-CO2 de Apoyo Admin-Inicial, 10% F1 ", f1PjStartAdmFondsAsocGTS1X10), IntegerEntry("tokens Bit-CO2 en oferta F2 PreICO, unids ", SecondFaseQty), IntegerEntry(getKeyUserItemCounter(userAddress, item), (getValueUserItemCounter(userAddress, item) + 1)), StringEntry(getKeyUserCountry(item), userCountry), StringEntry(getKeyUserDocument(item), userDocument), IntegerEntry(getKeyDiscount6User(item), userDiscount), IntegerEntry(getKeyDescuento6TokPrice(item), currentTokenPrice), StringEntry("Estado de su pedido, tokens ", "¡Adquisición Confirmada!"), IntegerEntry(getKeyItemUserOrderQty(item), orderQty), IntegerEntry("Suma transmitida a la PreICO, wvls", totalAmount), IntegerEntry(getKeySaldoTokenQtyStartEtapa(item), (getValueSaldoTokenQtyStartEtapa(item) + orderQty)), IntegerEntry("Saldo de Bit-CO2 en oferta F1 PreICO ", ((FirstFaseQty - getValueSaldoTokenQtyStartEtapa(item)) - orderQty)), IntegerEntry("Saldo Total de Bit-CO2 en F1 PreICO ", ((startTotalQty - getValueSaldoTokenQtyStartEtapa(item)) - orderQty)), IntegerEntry("Saldo Total de Bit-CO2 en F2 PreICO ", SecondFaseQty), IntegerEntry(getKeyBalanceSupplier(supplier), (getValueBalanceSupplier(supplier) + pmt.amount)), ScriptTransfer(addressFromStringValue(userAddress), (10000 * orderQty), BitCO2), ScriptTransfer(admN08GTSasoc11W90, ((90 * pmt.amount) / 100), unit), ScriptTransfer(admN08ECGTSasoc11W10, ((10 * pmt.amount) / 100), unit)], unit)
198198 }
199199 }
200200 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let BitCO2 = base58'EGY7HCyeHiHiCiiYpqH1Dmd5E6nzbwrgsdX3FHx5kFWw'
55
66 let startTotalQty = 305693
77
88 let FirstFaseQty = 31193
99
1010 let SecondFaseQty = 274500
1111
1212 let wvs = 100000000
1313
1414 let NONE = "none"
1515
16-let eurou = 101
16+let eurou = 102
1717
18-let usdnw = 577
18+let usdnw = 618
1919
2020 let bco2e = 10
2121
2222 let admN08GTSasoc11W90 = Address(base58'3NCiviLbsD1mM2RgQVDFoaEMYy15QbrHwB3')
2323
2424 let admN08ECGTSasoc11W10 = Address(base58'3Mtu59QLfHkJBqRRCuRL9K8KmErR1JQegcr')
2525
2626 let AdmN08GTSasoc11W90 = "3NCiviLbsD1mM2RgQVDFoaEMYy15QbrHwB3"
2727
2828 let AdmN08ECGTSasoc11W10 = "3Mtu59QLfHkJBqRRCuRL9K8KmErR1JQegcr"
2929
3030 let AsocPrestec01 = "3N86D2E7pSFD7fJBB1qkcGM8SoR6rZpFw9o"
3131
3232 let AsocPrestec02 = "3N2jHtgSVCtW6jddmQuerN7NSnXjR3KcEfg"
3333
3434 func getNumberByKey (key) = {
3535 let num = match getInteger(this, key) {
3636 case a: Int =>
3737 a
3838 case _ =>
3939 0
4040 }
4141 num
4242 }
4343
4444
4545 func getStrByKey (key) = {
4646 let str = match getString(this, key) {
4747 case a: String =>
4848 a
4949 case _ =>
5050 NONE
5151 }
5252 str
5353 }
5454
5555
5656 func getKeyProjectCategory (item) = "Categoría del Proyecto:"
5757
5858
5959 func getValueProjectCategory (item) = getStrByKey(getKeyProjectCategory(item))
6060
6161
6262 func getKeyItemSupplier (supplier) = (supplier + "Comunidad Achuar Kapawi del Ecuador")
6363
6464
6565 func getKeyProjectName (item) = "Nombre del Proyecto:"
6666
6767
6868 func getValueProjectName (item) = getStrByKey(getKeyProjectName(item))
6969
7070
7171 func getKeyProjectCountry (item) = "País | Ubicación:"
7272
7373
7474 func getValueProjectCountry (item) = getStrByKey(getKeyProjectCountry(item))
7575
7676
7777 func getKeyProjectCode (item) = "Código:"
7878
7979
8080 func getValueProjectCode (item) = getStrByKey(getKeyProjectCode(item))
8181
8282
8383 func getKeyProjectPropietary (item) = "Propietario | Beneficiario del Proyecto:"
8484
8585
8686 func getValueProjectPropietary (item) = getStrByKey(getKeyProjectPropietary(item))
8787
8888
8989 func getKeyProjectDev (supplier) = "Desarrollador | Responsable Legal:"
9090
9191
9292 func getValueProjectDev (supplier) = getStrByKey(getKeyProjectDev(supplier))
9393
9494
9595 func getKeyNomTokenPrice (item) = "Precio Nominal, 1 Bit-CO2:"
9696
9797
9898 func getKeyDescuento6TokPrice (item) = "Precio de 1 Bit-CO2 con dscto elejido:"
9999
100100
101101 func getValueDescuento6TokPrice (item) = getNumberByKey(getKeyDescuento6TokPrice(item))
102102
103103
104104 func getKeyFirstFaseQty (item) = "Cantidad de Tokens Ofertados en la F1 PreICO:"
105105
106106
107107 func getValueFirstFaseQty (item) = getStrByKey(getKeyFirstFaseQty(item))
108108
109109
110110 func getKeySaldoTokenQtyStartEtapa (item) = "Total de Tokens Realizados, PreICO"
111111
112112
113113 func getValueSaldoTokenQtyStartEtapa (item) = getNumberByKey(getKeySaldoTokenQtyStartEtapa(item))
114114
115115
116116 func getKeyBalanceSupplier (supplier) = "Fondos para Proyectos Verdes Naturales, Asociados Bit-CO2:"
117117
118118
119119 func getValueBalanceSupplier (supplier) = getNumberByKey(getKeyBalanceSupplier(supplier))
120120
121121
122122 func getKeyUserItemCounter (user,item) = "Order_№:"
123123
124124
125125 func getValueUserItemCounter (user,item) = getNumberByKey(getKeyUserItemCounter(user, item))
126126
127127
128128 func getKeyUserDocument (item) = "Documento Nacional de Identidad, DNI del Usuario:"
129129
130130
131131 func getValueUserDocument (item) = getStrByKey(getKeyUserDocument(item))
132132
133133
134134 func getKeyUserCountry (item) = "País de Residencia del Usuario:"
135135
136136
137137 func getValueUserCountry (item) = getStrByKey(getKeyUserCountry(item))
138138
139139
140140 func getKeyDiscount6User (item) = "Porcentaje de descuento elejido, %:"
141141
142142
143143 func getValueDiscount6User (item) = getNumberByKey(getKeyDiscount6User(item))
144144
145145
146146 func getKeyItemUserOrderQty (item) = "Cantidad de tokens adquiridos:"
147147
148148
149149 func getValueItemUserOrderQty (item) = getNumberByKey(getKeyItemUserOrderQty(item))
150150
151151
152152 @Callable(i)
153153 func purchaseAsoc11 (item,userDocument,userCountry,userDiscount,orderQty,totalAmount) = {
154154 let pmt = if ((size(i.payments) == 1))
155155 then i.payments[0]
156156 else throw("Se requiere pago adjunto.")
157157 if (isDefined(pmt.assetId))
158158 then throw("Ud. solo puede adquirir bit-co2 usando WavesKeeper y su token de pago 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, getKeySaldoTokenQtyStartEtapa(item)) {
167167 case a: Int =>
168168 a
169169 case _ =>
170170 0
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 if (if (if (if ((userAddress != AdmN08GTSasoc11W90))
180180 then (userAddress != AdmN08ECGTSasoc11W10)
181181 else false)
182182 then (userAddress != AsocPrestec01)
183183 else false)
184184 then (userAddress != AsocPrestec02)
185185 else false)
186186 then throw("Disculpe, Su cuenta no tiene derecho de Asociado Bit-CO2 a Proyectos")
187187 else {
188188 let currentTokenPrice = ((((((100 - userDiscount) * bco2e) * eurou) * wvs) / 100) / usdnw)
189189 let f1PjOfertaAsocGTS9X10 = (((9 * FirstFaseQty) / 10) + 1)
190190 let f1PjStartAdmFondsAsocGTS1X10 = ((1 * FirstFaseQty) / 10)
191191 if ((0 >= ((startTotalQty - preIcoQty) - orderQty)))
192192 then throw("Lo sentimos, por ahora no hay oferta de tokens para su transacción.")
193193 else if ((totalAmount > pmt.amount))
194194 then throw("El monto del pago no puede ser inferior a la orden de compra del artículo.")
195195 else if ((pmt.amount > totalAmount))
196196 then throw("El monto del pago no puede ser mayor que la orden de compra del artículo.")
197- else $Tuple2([StringEntry(getKeyProjectCategory(item), "Conservación Forestal"), StringEntry(getKeyProjectName(item), "Reserva Amazónica Achuar-Kapawi"), StringEntry(getKeyProjectCountry(item), "Ecuador"), StringEntry(getKeyProjectCode(item), "N08EC-01_ACH-KAPAWI_PREICOF1"), StringEntry(getKeyProjectPropietary(item), "Comunidad Achuar Kapawi"), StringEntry(getKeyProjectDev(supplier), "Fundación Alianza Ecológica NASEE 'FAEN'"), StringEntry(getKeyNomTokenPrice(item), "10.00 Euros"), IntegerEntry("tokens Bit-CO2 emitidos en F1/F2 PreICO, total ", startTotalQty), IntegerEntry("tokens Bit-CO2 en oferta F1 PreICO, unids ", FirstFaseQty), IntegerEntry("tokens Bit-CO2 en oferta/Intercambio, 90% F1 ", f1PjOfertaAsocGTS9X10), IntegerEntry("tokens Bit-CO2 de Apoyo Admin-Inicial, 10% F1 ", f1PjStartAdmFondsAsocGTS1X10), IntegerEntry("tokens Bit-CO2 en oferta F2 PreICO, unids ", SecondFaseQty), IntegerEntry(getKeyUserItemCounter(userAddress, item), (getValueUserItemCounter(userAddress, item) + 1)), StringEntry(getKeyUserCountry(item), userCountry), StringEntry(getKeyUserDocument(item), userDocument), IntegerEntry(getKeyDiscount6User(item), userDiscount), IntegerEntry(getKeyDescuento6TokPrice(item), currentTokenPrice), StringEntry("Estado de su pedido, tokens ", "¡Adquisición Confirmada!"), IntegerEntry(getKeyItemUserOrderQty(item), orderQty), IntegerEntry("Suma transmitida a la PreICO, wvs", totalAmount), IntegerEntry(getKeySaldoTokenQtyStartEtapa(item), (getValueSaldoTokenQtyStartEtapa(item) + orderQty)), IntegerEntry("Saldo de Bit-CO2 en oferta F1 PreICO ", ((FirstFaseQty - getValueSaldoTokenQtyStartEtapa(item)) - orderQty)), IntegerEntry("Saldo Total de Bit-CO2 en F1 PreICO ", ((startTotalQty - getValueSaldoTokenQtyStartEtapa(item)) - orderQty)), IntegerEntry("Saldo Total de Bit-CO2 en F2 PreICO ", SecondFaseQty), IntegerEntry(getKeyBalanceSupplier(supplier), (getValueBalanceSupplier(supplier) + pmt.amount)), ScriptTransfer(addressFromStringValue(userAddress), (10000 * orderQty), BitCO2), ScriptTransfer(admN08GTSasoc11W90, ((90 * pmt.amount) / 100), unit), ScriptTransfer(admN08ECGTSasoc11W10, ((10 * pmt.amount) / 100), unit)], unit)
197+ else $Tuple2([StringEntry(getKeyProjectCategory(item), "Conservación Forestal"), StringEntry(getKeyProjectName(item), "Reserva Amazónica Achuar-Kapawi"), StringEntry(getKeyProjectCountry(item), "Ecuador"), StringEntry(getKeyProjectCode(item), "N08EC-01_ACH-KAPAWI_PREICOF1"), StringEntry(getKeyProjectPropietary(item), "Comunidad Achuar Kapawi"), StringEntry(getKeyProjectDev(supplier), "Fundación Alianza Ecológica NASEE 'FAEN'"), StringEntry(getKeyNomTokenPrice(item), "10.00 Euros"), IntegerEntry("tokens Bit-CO2 emitidos en F1/F2 PreICO, total ", startTotalQty), IntegerEntry("tokens Bit-CO2 en oferta F1 PreICO, unids ", FirstFaseQty), IntegerEntry("tokens Bit-CO2 en oferta/Intercambio, 90% F1 ", f1PjOfertaAsocGTS9X10), IntegerEntry("tokens Bit-CO2 de Apoyo Admin-Inicial, 10% F1 ", f1PjStartAdmFondsAsocGTS1X10), IntegerEntry("tokens Bit-CO2 en oferta F2 PreICO, unids ", SecondFaseQty), IntegerEntry(getKeyUserItemCounter(userAddress, item), (getValueUserItemCounter(userAddress, item) + 1)), StringEntry(getKeyUserCountry(item), userCountry), StringEntry(getKeyUserDocument(item), userDocument), IntegerEntry(getKeyDiscount6User(item), userDiscount), IntegerEntry(getKeyDescuento6TokPrice(item), currentTokenPrice), StringEntry("Estado de su pedido, tokens ", "¡Adquisición Confirmada!"), IntegerEntry(getKeyItemUserOrderQty(item), orderQty), IntegerEntry("Suma transmitida a la PreICO, wvls", totalAmount), IntegerEntry(getKeySaldoTokenQtyStartEtapa(item), (getValueSaldoTokenQtyStartEtapa(item) + orderQty)), IntegerEntry("Saldo de Bit-CO2 en oferta F1 PreICO ", ((FirstFaseQty - getValueSaldoTokenQtyStartEtapa(item)) - orderQty)), IntegerEntry("Saldo Total de Bit-CO2 en F1 PreICO ", ((startTotalQty - getValueSaldoTokenQtyStartEtapa(item)) - orderQty)), IntegerEntry("Saldo Total de Bit-CO2 en F2 PreICO ", SecondFaseQty), IntegerEntry(getKeyBalanceSupplier(supplier), (getValueBalanceSupplier(supplier) + pmt.amount)), ScriptTransfer(addressFromStringValue(userAddress), (10000 * orderQty), BitCO2), ScriptTransfer(admN08GTSasoc11W90, ((90 * pmt.amount) / 100), unit), ScriptTransfer(admN08ECGTSasoc11W10, ((10 * pmt.amount) / 100), unit)], unit)
198198 }
199199 }
200200 }
201201
202202
203203 @Verifier(tx)
204204 func verify () = match tx {
205205 case t: SetScriptTransaction =>
206206 sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String("Fng6v4kqm1P6h6xF9hCvumcEKbjAKgpoiwaYa7VEkDoU"))
207207 case _ =>
208208 false
209209 }
210210

github/deemru/w8io/169f3d6 
53.48 ms