tx · Aqver24RtXVrvKypF82S5FFnz1kLhHdAft5UkK2sxvXp

3N5xYa3t8rCyBcQvxebBM7Qg9Hjix7PzASV:  -0.01300000 Waves

2022.08.08 15:07 [2175460] smart account 3N5xYa3t8rCyBcQvxebBM7Qg9Hjix7PzASV > SELF 0.00000000 Waves

{ "type": 13, "id": "Aqver24RtXVrvKypF82S5FFnz1kLhHdAft5UkK2sxvXp", "fee": 1300000, "feeAssetId": null, "timestamp": 1659960436401, "version": 2, "chainId": 84, "sender": "3N5xYa3t8rCyBcQvxebBM7Qg9Hjix7PzASV", "senderPublicKey": "Cyf33duPHeDukNKXnrekipPBeivui6A3LrRgFxLXuQe5", "proofs": [ "4o9PTZPoQmAFoeuTwbXyewB5HatqnopX95STmRVSsqqF2jRexgR1UMZVc7cTsKbBQESnd7ghEmVwFDho2peP6pq6" ], "script": "base64:AAIFAAAAAAAAAAwIAhIICgYICAgBAQEAAAAtAAAAAANTR1QBAAAAILGnwLyipxS3/m8T50CfSy0hX8wn1do2IfMjm00T1WeRAAAAAA1zdGFydFRvdGFsUXR5AAAAAAAABKodAAAAAAxGaXJzdEZhc2VRdHkAAAAAAAAAedkAAAAADVNlY29uZEZhc2VRdHkAAAAAAAAEMEQAAAAAA3d2cwAAAAAABfXhAAAAAAAETk9ORQIAAAAEbm9uZQAAAAAFZXVyb3UAAAAAAAAAAGUAAAAABXVzZG53AAAAAAAAAAJBAAAAAAViY28yZQAAAAAAAAAACgAAAAAKYWRtTjA4U0dUVwkBAAAAB0FkZHJlc3MAAAABAQAAABoBVDkEczCkU/Iu9CUnDhaZyqXscP0ID3xwqQAAAAASYWRtTjA4RUNwakFtYXpTR1Q2CQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFU0bzI+v0BWU54+fpfjqWsDHFy0/GGgesMAQAAAA5nZXROdW1iZXJCeUtleQAAAAEAAAADa2V5BAAAAANudW0EAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAAC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GllcgkAAGQAAAACCQEAAAAXZ2V0VmFsdWVCYWxhbmNlU3VwcGxpZXIAAAABBQAAAAhzdXBwbGllcggFAAAAA3BtdAAAAAZhbW91bnQJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQUAAAALdXNlckFkZHJlc3MJAABoAAAAAgAAAAAAAAAnEAUAAAAIb3JkZXJRdHkFAAAAA1NHVAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADBQAAAAphZG1OMDhTR1RXCQAAaQAAAAIJAABoAAAAAgAAAAAAAAAAWggFAAAAA3BtdAAAAAZhbW91bnQAAAAAAAAAAGQFAAAABHVuaXQJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwUAAAASYWRtTjA4RUNwakFtYXpTR1Q2CQAAaQAAAAIJAABoAAAAAgAAAAAAAAAACggFAAAAA3BtdAAAAAZhbW91bnQAAAAAAAAAAGQFAAAABHVuaXQFAAAAA25pbAUAAAAEdW5pdAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABRTZXRTY3JpcHRUcmFuc2FjdGlvbgQAAAABdAUAAAAHJG1hdGNoMAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAJAAJZAAAAAQIAAAAsQ3lmMzNkdVBIZUR1a05LWG5yZWtpcFBCZWl2dWk2QTNMclJnRnhMWHVRZTUHtpCuFA==", "height": 2175460, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EaU9Ghh7FkmEb4MptJKdTL8sfGpKQcsrAECmuLSFH11e Next: GWAr8zKmTgFEfHy9hUdz4KrouogNeMReBF37nwcArzfE Diff:
OldNewDifferences
168168 0
169169 }
170170 let userAddress = toBase58String(i.caller.bytes)
171- let currentTokenPrice = ((((((100 - userDiscount) * bco2e) * eurou) * wvs) / 100) / usdnw)
171+ let currentTokenPrice = (((((100 - userDiscount) * bco2e) * eurou) / (100 * usdnw)) * wvs)
172172 let f1PjOfertaSGT9X10 = (((9 * FirstFaseQty) / 10) + 1)
173173 let f1PjStartAdmFondsSGT1X10 = ((1 * FirstFaseQty) / 10)
174174 if ((0 >= ((FirstFaseQty - preIcoQty) - orderQty)))
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let SGT = base58'CxVXPje89EXJUtWEhGAG88t99cxaVWU6DrzniFfjYjig'
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
1616 let eurou = 101
1717
1818 let usdnw = 577
1919
2020 let bco2e = 10
2121
2222 let admN08SGTW = Address(base58'3Mu7Zd3UsSFicaf45vUFTpVsTZJWgTtvBhz')
2323
2424 let admN08ECpjAmazSGT6 = Address(base58'3N935A2iWuGH3AmifpHVmQjoaA7KNX6E1fR')
2525
2626 func getNumberByKey (key) = {
2727 let num = match getInteger(this, key) {
2828 case a: Int =>
2929 a
3030 case _ =>
3131 0
3232 }
3333 num
3434 }
3535
3636
3737 func getStrByKey (key) = {
3838 let str = match getString(this, key) {
3939 case a: String =>
4040 a
4141 case _ =>
4242 NONE
4343 }
4444 str
4545 }
4646
4747
4848 func getKeyProjectCategory (item) = "Categoría del Proyecto "
4949
5050
5151 func getValueProjectCategory (item) = getStrByKey(getKeyProjectCategory(item))
5252
5353
5454 func getKeyItemSupplier (supplier) = (supplier + "Comunidad Achuar Kapawi del Ecuador")
5555
5656
5757 func getKeyProjectName (item) = "Nombre del Proyecto "
5858
5959
6060 func getValueProjectName (item) = getStrByKey(getKeyProjectName(item))
6161
6262
6363 func getKeyProjectCountry (item) = "País | Ubicación "
6464
6565
6666 func getValueProjectCountry (item) = getStrByKey(getKeyProjectCountry(item))
6767
6868
6969 func getKeyProjectCode (item) = "Código "
7070
7171
7272 func getValueProjectCode (item) = getStrByKey(getKeyProjectCode(item))
7373
7474
7575 func getKeyProjectPropietary (item) = "Propietario | Beneficiario del Proyecto "
7676
7777
7878 func getValueProjectPropietary (item) = getStrByKey(getKeyProjectPropietary(item))
7979
8080
8181 func getKeyProjectDev (supplier) = "Desarrollador | Responsable Legal "
8282
8383
8484 func getValueProjectDev (supplier) = getStrByKey(getKeyProjectDev(supplier))
8585
8686
8787 func getKeyNomTokenPrice (item) = "Precio Nominal, 1 SGT "
8888
8989
9090 func getKeyDescuento6TokPrice (item) = "Precio de 1 SGT con dscto elegido "
9191
9292
9393 func getValueDescuento6TokPrice (item) = getNumberByKey(getKeyDescuento6TokPrice(item))
9494
9595
9696 func getKeyFirstFaseQty (item) = "Cantidad de Tokens ofertados, F1 Pre-ICO "
9797
9898
9999 func getValueFirstFaseQty (item) = getStrByKey(getKeyFirstFaseQty(item))
100100
101101
102102 func getKeySaldoTokenQtyStartEtapa (item) = "Total de tokens realizados, Pre-ICO "
103103
104104
105105 func getValueSaldoTokenQtyStartEtapa (item) = getNumberByKey(getKeySaldoTokenQtyStartEtapa(item))
106106
107107
108108 func getKeyBalanceSupplier (supplier) = "Fondos desde Tokens SGT, PreICO "
109109
110110
111111 func getValueBalanceSupplier (supplier) = getNumberByKey(getKeyBalanceSupplier(supplier))
112112
113113
114114 func getKeyUserItemCounter (user,item) = "Order_№ "
115115
116116
117117 func getValueUserItemCounter (user,item) = getNumberByKey(getKeyUserItemCounter(user, item))
118118
119119
120120 func getKeyUserDocument (item) = "Documento Nacional de Identidad, DNI del Usuario "
121121
122122
123123 func getValueUserDocument (item) = getStrByKey(getKeyUserDocument(item))
124124
125125
126126 func getKeyUserCountry (item) = "País de Residencia del Usuario "
127127
128128
129129 func getValueUserCountry (item) = getStrByKey(getKeyUserCountry(item))
130130
131131
132132 func getKeyDiscount6User (item) = "Porcentaje de descuento elegido, % "
133133
134134
135135 func getValueDiscount6User (item) = getNumberByKey(getKeyDiscount6User(item))
136136
137137
138138 func getKeyItemUserOrderQty (item) = "Cantidad de tokens adquiridos "
139139
140140
141141 func getValueItemUserOrderQty (item) = getNumberByKey(getKeyItemUserOrderQty(item))
142142
143143
144144 @Callable(i)
145145 func purchaseSGT (item,userDocument,userCountry,userDiscount,orderQty,totalAmount) = {
146146 let pmt = if ((size(i.payments) == 1))
147147 then i.payments[0]
148148 else throw("Se requiere pago adjunto.")
149149 if (isDefined(pmt.assetId))
150150 then throw("Ud. solo puede adquirir SGT usando WavesKeeper y su token de pago Waves.")
151151 else {
152152 let supplier = match getString(this, getKeyItemSupplier(item)) {
153153 case a: String =>
154154 a
155155 case _ =>
156156 NONE
157157 }
158158 let preIcoQty = match getInteger(this, getKeySaldoTokenQtyStartEtapa(item)) {
159159 case a: Int =>
160160 a
161161 case _ =>
162162 0
163163 }
164164 let balanceSupplier = match getInteger(this, getKeyBalanceSupplier(supplier)) {
165165 case a: Int =>
166166 a
167167 case _ =>
168168 0
169169 }
170170 let userAddress = toBase58String(i.caller.bytes)
171- let currentTokenPrice = ((((((100 - userDiscount) * bco2e) * eurou) * wvs) / 100) / usdnw)
171+ let currentTokenPrice = (((((100 - userDiscount) * bco2e) * eurou) / (100 * usdnw)) * wvs)
172172 let f1PjOfertaSGT9X10 = (((9 * FirstFaseQty) / 10) + 1)
173173 let f1PjStartAdmFondsSGT1X10 = ((1 * FirstFaseQty) / 10)
174174 if ((0 >= ((FirstFaseQty - preIcoQty) - orderQty)))
175175 then throw("Lo sentimos, por ahora no hay oferta de tokens para su transacción.")
176176 else if ((totalAmount > pmt.amount))
177177 then throw("El monto del pago no puede ser inferior a la orden de compra del artículo.")
178178 else if ((pmt.amount > totalAmount))
179179 then throw("El monto del pago no puede ser mayor que la orden de compra del artículo.")
180180 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 SGT a emitir en F1/F2 PreICO, total ", startTotalQty), IntegerEntry("tokens SGT en oferta F1 PreICO, unids ", FirstFaseQty), IntegerEntry("tokens SGT en oferta/Intercambio (90% F1), unids ", f1PjOfertaSGT9X10), IntegerEntry("tokens SGT de Apoyo Admin-Inicial (10% F1), unids ", f1PjStartAdmFondsSGT1X10), IntegerEntry("tokens SGT 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 tokens SGT en oferta F1 PreICO ", ((FirstFaseQty - getValueSaldoTokenQtyStartEtapa(item)) - orderQty)), IntegerEntry("Saldo Total de Tokens SGT en F1 PreICO Achuar-Kapawi ", ((startTotalQty - getValueSaldoTokenQtyStartEtapa(item)) - orderQty)), IntegerEntry("Saldo Total de Tokens SGT en F2 PreICO Achuar-Kapawi ", SecondFaseQty), IntegerEntry(getKeyBalanceSupplier(supplier), (getValueBalanceSupplier(supplier) + pmt.amount)), ScriptTransfer(addressFromStringValue(userAddress), (10000 * orderQty), SGT), ScriptTransfer(admN08SGTW, ((90 * pmt.amount) / 100), unit), ScriptTransfer(admN08ECpjAmazSGT6, ((10 * pmt.amount) / 100), unit)], unit)
181181 }
182182 }
183183
184184
185185 @Verifier(tx)
186186 func verify () = match tx {
187187 case t: SetScriptTransaction =>
188188 sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String("Cyf33duPHeDukNKXnrekipPBeivui6A3LrRgFxLXuQe5"))
189189 case _ =>
190190 false
191191 }
192192

github/deemru/w8io/026f985 
37.26 ms