tx · 4t2d9aoAxcV8X1YzDdVFqZ11qvHYim5kxAXQHKnZnWWU

3N5f7Ska4GcuV6PvCvJsrF7EnCm9eQF5ngW:  -0.01000000 Waves

2022.04.01 22:27 [1989943] smart account 3N5f7Ska4GcuV6PvCvJsrF7EnCm9eQF5ngW > SELF 0.00000000 Waves

{ "type": 13, "id": "4t2d9aoAxcV8X1YzDdVFqZ11qvHYim5kxAXQHKnZnWWU", "fee": 1000000, "feeAssetId": null, "timestamp": 1648841239910, "version": 2, "chainId": 84, "sender": "3N5f7Ska4GcuV6PvCvJsrF7EnCm9eQF5ngW", "senderPublicKey": "GrTqxkB7og5QEbkV5fS1vY29qoAVKe5uVbuMXFwNh9Uo", "proofs": [ "4ANbELhZBdtwfrvpJioUV3mW78K7s8tWEDiQHBMtWTvvxn3qjNJDejUZdWwgFZqNBUNH2jBF9JfiiMmj4ZripRtD" ], "script": "base64:AAIDAAAAAAAAAAwIARIICgYICAgBAQEAAAAsAAAAAANTR1QBAAAAICAEZKaqA3sNb6aq+pclWLOWiXpTDP/vusZoh2yDVNyNAAAAAA1zdGFydFRvdGFsUXR5AAAAAAAABKodAAAAAAxGaXJzdEZhc2VRdHkAAAAAAAAAedkAAAAADVNlY29uZEZhc2VRdHkAAAAAAAAEMEQAAAAAA3d2cwAAAAAABfXhAAAAAAAETk9ORQIAAAAEbm9uZQAAAAAFZXVyb3UAAAAAAAAAAHQAAAAABXVzZG53AAAAAAAAAAnrAAAAAAViY28yZQAAAAAAAAAACgAAAAALT3duZXJQdWJLZXkBAAAAIOuLHcd70SFfjW8gXe6YyV4vefnY6qGFRS9Bp3VZ0p48AQAAAA5nZXROdW1iZXJCeUtleQAAAAEAAAADa2V5BAAAAANudW0EAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAAFAAAAA251bQEAAAAL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aDAEAAAACXdpdGhXYXZlcwMJAQAAAAEhAAAAAQkBAAAACWlzRGVmaW5lZAAAAAEICAgFAAAAAnR4AAAACXNlbGxPcmRlcgAAAAlhc3NldFBhaXIAAAAKcHJpY2VBc3NldAYJAQAAAAEhAAAAAQkBAAAACWlzRGVmaW5lZAAAAAEICAgFAAAAAnR4AAAACXNlbGxPcmRlcgAAAAlhc3NldFBhaXIAAAALYW1vdW50QXNzZXQFAAAACXdpdGhXYXZlcwfe3Iyn", "height": 1989943, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4MuMBJTA6u7EuuNVmfe9qj34fLMbUBQxUKEEixNjFdhG Next: AGoTYGkMHMz5TKWrTYjoYMr39kBGsLFczQ1Dn8YzzD6z Diff:
OldNewDifferences
165165 }
166166 let userAddress = toBase58String(i.caller.bytes)
167167 let currentTokenPrice = ((((((100 - userDiscount) * bco2e) * eurou) * wvs) / 100) / usdnw)
168- if ((0 >= ((startTotalQty - preIcoQty) - orderQty)))
168+ if ((0 >= ((FirstFaseQty - preIcoQty) - orderQty)))
169169 then throw("Lo sentimos, por ahora no hay oferta de tokens para su transacción")
170170 else if ((totalAmount > pmt.amount))
171171 then throw("Payment Amount can't be less than item Purchase Order")
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let SGT = base58'39yw38hm342hiK43SqELTaZRkTWJoBc22XpxmsSiBrsN'
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 = 116
1717
1818 let usdnw = 2539
1919
2020 let bco2e = 10
2121
2222 let OwnerPubKey = base58'GrTqxkB7og5QEbkV5fS1vY29qoAVKe5uVbuMXFwNh9Uo'
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 del Proyecto:"
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 getKeyNomTokenPrice (item) = "Precio Nominal, 1 SGT:"
8686
8787
8888 func getKeyDescuento6TokPrice (item) = "Precio de 1 SGT con dscto elejido:"
8989
9090
9191 func getValueDescuento6TokPrice (item) = getNumberByKey(getKeyDescuento6TokPrice(item))
9292
9393
9494 func getKeyFirstFaseQty (item) = "Cantidad de Tokens ofertados en F1 Pre-ICO:"
9595
9696
9797 func getValueFirstFaseQty (item) = getStrByKey(getKeyFirstFaseQty(item))
9898
9999
100100 func getKeySaldoTokenQtyStartEtapa (item) = "Total de tokens realizados, Pre-ICO"
101101
102102
103103 func getValueSaldoTokenQtyStartEtapa (item) = getNumberByKey(getKeySaldoTokenQtyStartEtapa(item))
104104
105105
106106 func getKeyBalanceSupplier (supplier) = "Fondos desde Tokens SGT, PreICO"
107107
108108
109109 func getValueBalanceSupplier (supplier) = getNumberByKey(getKeyBalanceSupplier(supplier))
110110
111111
112112 func getKeyUserItemCounter (user,item) = "Order_№:"
113113
114114
115115 func getValueUserItemCounter (user,item) = getNumberByKey(getKeyUserItemCounter(user, item))
116116
117117
118118 func getKeyUserDocument (item) = "Documento Nacional de Identidad, DNI del Usuario:"
119119
120120
121121 func getValueUserDocument (item) = getStrByKey(getKeyUserDocument(item))
122122
123123
124124 func getKeyUserCountry (item) = "País de Residencia del Usuario:"
125125
126126
127127 func getValueUserCountry (item) = getStrByKey(getKeyUserCountry(item))
128128
129129
130130 func getKeyDiscount6User (item) = "Porcentaje de descuento elejido, %:"
131131
132132
133133 func getValueDiscount6User (item) = getNumberByKey(getKeyDiscount6User(item))
134134
135135
136136 func getKeyItemUserOrderQty (item) = "Cantidad de tokens adquiridos:"
137137
138138
139139 func getValueItemUserOrderQty (item) = getNumberByKey(getKeyItemUserOrderQty(item))
140140
141141
142142 @Callable(i)
143143 func purchaseSGT (item,userDocument,userCountry,userDiscount,orderQty,totalAmount) = {
144144 let pmt = extract(i.payment)
145145 if (isDefined(pmt.assetId))
146146 then throw("Ud. puede adquirir tokens SGT 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 currentTokenPrice = ((((((100 - userDiscount) * bco2e) * eurou) * wvs) / 100) / usdnw)
168- if ((0 >= ((startTotalQty - preIcoQty) - orderQty)))
168+ if ((0 >= ((FirstFaseQty - preIcoQty) - orderQty)))
169169 then throw("Lo sentimos, por ahora no hay oferta de tokens para su transacción")
170170 else if ((totalAmount > pmt.amount))
171171 then throw("Payment Amount can't be less than item Purchase Order")
172172 else if ((pmt.amount > totalAmount))
173173 then throw("Payment Amount can't be higher than item Purchase Order")
174174 else ScriptResult(WriteSet([DataEntry(getKeyProjectCategory(item), "Conservación Forestal"), DataEntry(getKeyProjectName(item), "Reserva Amazónica Achuar-Kapawi"), DataEntry(getKeyProjectCountry(item), "Ecuador"), DataEntry(getKeyProjectCode(item), "N08EC-01_ACH-KAPAWI_PREICOF1"), DataEntry(getKeyProjectPropietary(item), "Comunidad Achuar Kapawi"), DataEntry(getKeyProjectDev(supplier), "Fundación Alianza Ecológica NASEE 'FAEN'"), DataEntry(getKeyNomTokenPrice(item), "10.00 Euros"), DataEntry("Tokens SGT a emitir en F1 y F2 Pre-ICO, unidades", startTotalQty), DataEntry(getKeyFirstFaseQty(item), FirstFaseQty), DataEntry("Descuento máximo ofrecido:", " 6 %"), DataEntry(getKeyUserItemCounter(userAddress, item), (getValueUserItemCounter(userAddress, item) + 1)), DataEntry(getKeyUserDocument(item), userDocument), DataEntry(getKeyUserCountry(item), userCountry), DataEntry(getKeyDiscount6User(item), userDiscount), DataEntry(getKeyDescuento6TokPrice(item), currentTokenPrice), DataEntry("Estado de su pedido, tokens:", "¡Adquisición Confirmada!"), DataEntry(getKeyItemUserOrderQty(item), orderQty), DataEntry("Suma transmitida a la PreICO, wvs", totalAmount), DataEntry(getKeySaldoTokenQtyStartEtapa(item), (getValueSaldoTokenQtyStartEtapa(item) + orderQty)), DataEntry("Saldo de tokens SGT en oferta, F1 PreICO", ((FirstFaseQty - getValueSaldoTokenQtyStartEtapa(item)) - orderQty)), DataEntry("Saldo de tokens SGT, PreICO Achuar-Kapawi:", (startTotalQty - ((FirstFaseQty - getValueSaldoTokenQtyStartEtapa(item)) - orderQty))), DataEntry(getKeyBalanceSupplier(supplier), (getValueBalanceSupplier(supplier) + pmt.amount)), DataEntry("Dirección del proyecto en Waves-BlockChain:", "3N5f7Ska4GcuV6PvCvJsrF7EnCm9eQF5ngW")]), TransferSet([ScriptTransfer(addressFromStringValue(userAddress), (1 * orderQty), SGT)]))
175175 }
176176 }
177177
178178
179179 @Verifier(tx)
180180 func verify () = match tx {
181181 case t: SetScriptTransaction =>
182182 sigVerify(tx.bodyBytes, tx.proofs[0], OwnerPubKey)
183183 case d: DataTransaction =>
184184 true
185185 case tx: TransferTransaction =>
186186 true
187187 case tx: ExchangeTransaction =>
188188 let withWaves = if (!(isDefined(tx.sellOrder.assetPair.priceAsset)))
189189 then true
190190 else !(isDefined(tx.sellOrder.assetPair.amountAsset))
191191 withWaves
192192 case _ =>
193193 false
194194 }
195195

github/deemru/w8io/169f3d6 
66.58 ms