tx · FvQfm7tJw85rCfmSuSCcMqCZa1MezF315Wmi49Yr59B2

3NDDEoGVUcxRDpXiEu7xDW5qeX9wMazp5ja:  -0.01400000 Waves

2022.03.15 19:58 [1965341] smart account 3NDDEoGVUcxRDpXiEu7xDW5qeX9wMazp5ja > SELF 0.00000000 Waves

{ "type": 13, "id": "FvQfm7tJw85rCfmSuSCcMqCZa1MezF315Wmi49Yr59B2", "fee": 1400000, "feeAssetId": null, "timestamp": 1647363475322, "version": 2, "chainId": 84, "sender": "3NDDEoGVUcxRDpXiEu7xDW5qeX9wMazp5ja", "senderPublicKey": "GpwSePQvEor3GgJJdK8ae6n2kZbpasL2UMGTdHHSkWWK", "proofs": [ "5dVUUCWkXW2Cz3FdXVCQVDkZm6ZBaPHiTQuW1wsBRfGHrW5t6HenkwxaB5PmBR1CgMpL6nXTRuSR8LF215eNcgrF" ], "script": "base64:AAIDAAAAAAAAAAwIARIICgYICAgBAQEAAAAsAAAAAAd4Qml0Q08yAQAAACAgBGSmqgN7DW+mqvqXJVizlol6Uwz/77rGaIdsg1TcjQAAAAANc3RhcnRUb3RhbFF0eQAAAAAAAASqHQAAAAAMRmlyc3RGYXNlUXR5AAAAAAAAACu5AAAAAA1TZWNvbmRGYXNlUXR5AAAAAAAABDBEAAAAAAN3dnMAAAAAAAX14QAAAAAABE5PTkUCAAAABG5vbmUAAAAABWV1cm91AAAAAAAAAAB0AAAAAAV1c2RudwAAAAAAAAAJ6wAAAAAFYmNvMmUAAAAAAAAAAAoAAAAAC093bmVyUHViS2V5AQAAACDrJyjsQbO0PaxcY5E7zQFOybuP5YiL33M/DpTp+omfAAEAAAAOZ2V0TnVtYmVyQnlLZXkAAAABAAAAA2tleQQAAAADbnVtBAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAAAAAAAAAAAABQAAAANudW0BAAAA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AAAAEHRydXN0ZWRQcmVzdGVjMDIJAQAAABFhZGRyZXNzRnJvbVN0cmluZwAAAAECAAAAIzNNclNQak5hZXVpZFRoaGlvbUU2dVJwQVhVU2g0d0p0Y1ZvAwkAAAAAAAACCAUAAAABdAAAAAlyZWNpcGllbnQFAAAAEHRydXN0ZWRQcmVzdGVjMDEGCQAAAAAAAAIIBQAAAAF0AAAACXJlY2lwaWVudAUAAAAQdHJ1c3RlZFByZXN0ZWMwMgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATRXhjaGFuZ2VUcmFuc2FjdGlvbgQAAAACdHgFAAAAByRtYXRjaDAEAAAACXdpdGhXYXZlcwMJAQAAAAEhAAAAAQkBAAAACWlzRGVmaW5lZAAAAAEICAgFAAAAAnR4AAAACXNlbGxPcmRlcgAAAAlhc3NldFBhaXIAAAAKcHJpY2VBc3NldAYJAQAAAAEhAAAAAQkBAAAACWlzRGVmaW5lZAAAAAEICAgFAAAAAnR4AAAACXNlbGxPcmRlcgAAAAlhc3NldFBhaXIAAAALYW1vdW50QXNzZXQFAAAACXdpdGhXYXZlcwf+QkUE", "height": 1965341, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GJVXYSC63vwrLkJ6ahieTaHLLo3GuW5XC67Nfjx92j3e Next: 65gmkJJxNTsi5nvDbSxnSpkrKdqrjfcKsdzz1dmZQaMB Diff:
OldNewDifferences
1818 let usdnw = 2539
1919
2020 let bco2e = 10
21-
22-let Prestec01 = addressFromString("3N7JX4dYydTz297GMwVpQ8EnbxN4SjwxncE")
23-
24-let Prestec02 = addressFromString("3MrSPjNaeuidThhiomE6uRpAXUSh4wJtcVo")
2521
2622 let OwnerPubKey = base58'GpwSePQvEor3GgJJdK8ae6n2kZbpasL2UMGTdHHSkWWK'
2723
187183 case d: DataTransaction|ReissueTransaction =>
188184 true
189185 case t: TransferTransaction =>
190- if ((t.recipient == Prestec01))
186+ let trustedPrestec01 = addressFromString("3N7JX4dYydTz297GMwVpQ8EnbxN4SjwxncE")
187+ let trustedPrestec02 = addressFromString("3MrSPjNaeuidThhiomE6uRpAXUSh4wJtcVo")
188+ if ((t.recipient == trustedPrestec01))
191189 then true
192- else (t.recipient == Prestec02)
190+ else (t.recipient == trustedPrestec02)
193191 case tx: ExchangeTransaction =>
194192 let withWaves = if (!(isDefined(tx.sellOrder.assetPair.priceAsset)))
195193 then true
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
1818 let usdnw = 2539
1919
2020 let bco2e = 10
21-
22-let Prestec01 = addressFromString("3N7JX4dYydTz297GMwVpQ8EnbxN4SjwxncE")
23-
24-let Prestec02 = addressFromString("3MrSPjNaeuidThhiomE6uRpAXUSh4wJtcVo")
2521
2622 let OwnerPubKey = base58'GpwSePQvEor3GgJJdK8ae6n2kZbpasL2UMGTdHHSkWWK'
2723
2824 func getNumberByKey (key) = {
2925 let num = match getInteger(this, key) {
3026 case a: Int =>
3127 a
3228 case _ =>
3329 0
3430 }
3531 num
3632 }
3733
3834
3935 func getStrByKey (key) = {
4036 let str = match getString(this, key) {
4137 case a: String =>
4238 a
4339 case _ =>
4440 NONE
4541 }
4642 str
4743 }
4844
4945
5046 func getKeyProjectCategory (item) = "Categoría del Proyecto:"
5147
5248
5349 func getValueProjectCategory (item) = getStrByKey(getKeyProjectCategory(item))
5450
5551
5652 func getKeyItemSupplier (supplier) = (supplier + "Comunidad Achuar Kapawi del Ecuador")
5753
5854
5955 func getKeyProjectName (item) = "Nombre del Proyecto:"
6056
6157
6258 func getValueProjectName (item) = getStrByKey(getKeyProjectName(item))
6359
6460
6561 func getKeyProjectCountry (item) = "País | Ubicación:"
6662
6763
6864 func getValueProjectCountry (item) = getStrByKey(getKeyProjectCountry(item))
6965
7066
7167 func getKeyProjectCode (item) = "Código:"
7268
7369
7470 func getValueProjectCode (item) = getStrByKey(getKeyProjectCode(item))
7571
7672
7773 func getKeyProjectPropietary (item) = "Propietario | Beneficiario del Proyecto:"
7874
7975
8076 func getValueProjectPropietary (item) = getStrByKey(getKeyProjectPropietary(item))
8177
8278
8379 func getKeyProjectDev (supplier) = "Desarrollador | Responsable Legal:"
8480
8581
8682 func getValueProjectDev (supplier) = getStrByKey(getKeyProjectDev(supplier))
8783
8884
8985 func getKeyNomTokenPrice (item) = "Precio Nominal, 1 Bit-CO2:"
9086
9187
9288 func getKeyDescuento6TokPrice (item) = "Precio de 1 Bit-CO2 con dscto elejido:"
9389
9490
9591 func getValueDescuento6TokPrice (item) = getNumberByKey(getKeyDescuento6TokPrice(item))
9692
9793
9894 func getKeyFirstFaseQty (item) = "Cantidad de Tokens ofertados en F1 Pre-ICO:"
9995
10096
10197 func getValueFirstFaseQty (item) = getStrByKey(getKeyFirstFaseQty(item))
10298
10399
104100 func getKeySaldoTokenQtyStartEtapa (item) = "Total de tokens realizados, Pre-ICO"
105101
106102
107103 func getValueSaldoTokenQtyStartEtapa (item) = getNumberByKey(getKeySaldoTokenQtyStartEtapa(item))
108104
109105
110106 func getKeyBalanceSupplier (supplier) = "Fondos desde Participantes y Asociados, PreICO"
111107
112108
113109 func getValueBalanceSupplier (supplier) = getNumberByKey(getKeyBalanceSupplier(supplier))
114110
115111
116112 func getKeyUserItemCounter (user,item) = "Order_№:"
117113
118114
119115 func getValueUserItemCounter (user,item) = getNumberByKey(getKeyUserItemCounter(user, item))
120116
121117
122118 func getKeyUserDocument (item) = "Documento Nacional de Identidad, DNI del Usuario:"
123119
124120
125121 func getValueUserDocument (item) = getStrByKey(getKeyUserDocument(item))
126122
127123
128124 func getKeyUserCountry (item) = "País de Residencia del Usuario:"
129125
130126
131127 func getValueUserCountry (item) = getStrByKey(getKeyUserCountry(item))
132128
133129
134130 func getKeyDiscount6User (item) = "Porcentaje de descuento elejido, %:"
135131
136132
137133 func getValueDiscount6User (item) = getNumberByKey(getKeyDiscount6User(item))
138134
139135
140136 func getKeyItemUserOrderQty (item) = "Cantidad de tokens a adquirir:"
141137
142138
143139 func getValueItemUserOrderQty (item) = getNumberByKey(getKeyItemUserOrderQty(item))
144140
145141
146142 @Callable(i)
147143 func purchase (item,userDocument,userCountry,userDiscount,orderQty,totalAmount) = {
148144 let pmt = extract(i.payment)
149145 if (isDefined(pmt.assetId))
150146 then throw("Ud. puede adquirir tokens BitCO2 usando WavesKeeper y su token de pago Waves.")
151147 else {
152148 let supplier = match getString(this, getKeyItemSupplier(item)) {
153149 case a: String =>
154150 a
155151 case _ =>
156152 NONE
157153 }
158154 let preIcoQty = match getInteger(this, getKeySaldoTokenQtyStartEtapa(item)) {
159155 case a: Int =>
160156 a
161157 case _ =>
162158 0
163159 }
164160 let balanceSupplier = match getInteger(this, getKeyBalanceSupplier(supplier)) {
165161 case a: Int =>
166162 a
167163 case _ =>
168164 0
169165 }
170166 let userAddress = toBase58String(i.caller.bytes)
171167 let currentTokenPrice = ((((((100 - userDiscount) * bco2e) * eurou) * wvs) / 100) / usdnw)
172168 if ((0 >= ((FirstFaseQty - preIcoQty) - orderQty)))
173169 then throw("Lo sentimos, por ahora no hay oferta de tokens para su transacción")
174170 else if ((totalAmount > pmt.amount))
175171 then throw("Payment Amount can't be less than item Purchase Order")
176172 else if ((pmt.amount > totalAmount))
177173 then throw("Payment Amount can't be higher than item Purchase Order")
178174 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("Oferta de tokens utilizada:", "Programa-06 | Programa-11 | Otros"), DataEntry("Descuento máximo ofrecido:", " Según Programa"), DataEntry("Tokens Bit-CO2 a emitir en F1 y F2 Pre-ICO, unidades", startTotalQty), DataEntry(getKeyFirstFaseQty(item), FirstFaseQty), 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(getKeyItemUserOrderQty(item), orderQty), DataEntry("Suma transmitida a la PreICO, wvs", totalAmount), DataEntry("Estado de su pedido, tokens:", "¡Adquisición Confirmada!"), DataEntry(getKeySaldoTokenQtyStartEtapa(item), (getValueSaldoTokenQtyStartEtapa(item) + orderQty)), DataEntry("Saldo de Tokens Bit-CO2 para Participantes y Asociados", ((FirstFaseQty - getValueSaldoTokenQtyStartEtapa(item)) - orderQty)), DataEntry(getKeyBalanceSupplier(supplier), (getValueBalanceSupplier(supplier) + pmt.amount)), DataEntry("Dirección del proyecto en Waves-BlockChain:", "3NDDEoGVUcxRDpXiEu7xDW5qeX9wMazp5ja")]), TransferSet([ScriptTransfer(addressFromStringValue(userAddress), orderQty, xBitCO2)]))
179175 }
180176 }
181177
182178
183179 @Verifier(tx)
184180 func verify () = match tx {
185181 case t: SetScriptTransaction =>
186182 sigVerify(tx.bodyBytes, tx.proofs[0], OwnerPubKey)
187183 case d: DataTransaction|ReissueTransaction =>
188184 true
189185 case t: TransferTransaction =>
190- if ((t.recipient == Prestec01))
186+ let trustedPrestec01 = addressFromString("3N7JX4dYydTz297GMwVpQ8EnbxN4SjwxncE")
187+ let trustedPrestec02 = addressFromString("3MrSPjNaeuidThhiomE6uRpAXUSh4wJtcVo")
188+ if ((t.recipient == trustedPrestec01))
191189 then true
192- else (t.recipient == Prestec02)
190+ else (t.recipient == trustedPrestec02)
193191 case tx: ExchangeTransaction =>
194192 let withWaves = if (!(isDefined(tx.sellOrder.assetPair.priceAsset)))
195193 then true
196194 else !(isDefined(tx.sellOrder.assetPair.amountAsset))
197195 withWaves
198196 case _ =>
199197 false
200198 }
201199

github/deemru/w8io/fabc49c 
38.22 ms