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/GGgesMAQAAAA5nZXROdW1iZXJCeUtleQAAAAEAAAADa2V5BAAAAANudW0EAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACB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llcgkAAGQAAAACCQEAAAAXZ2V0VmFsdWVCYWxhbmNlU3VwcGxpZXIAAAABBQAAAAhzdXBwbGllcggFAAAAA3BtdAAAAAZhbW91bnQJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQUAAAALdXNlckFkZHJlc3MJAABoAAAAAgAAAAAAAAAnEAUAAAAIb3JkZXJRdHkFAAAAA1NHVAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADBQAAAAphZG1OMDhTR1RXCQAAaQAAAAIJAABoAAAAAgAAAAAAAAAAWggFAAAAA3BtdAAAAAZhbW91bnQAAAAAAAAAAGQFAAAABHVuaXQJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwUAAAASYWRtTjA4RUNwakFtYXpTR1Q2CQAAaQAAAAIJAABoAAAAAgAAAAAAAAAACggFAAAAA3BtdAAAAAZhbW91bnQAAAAAAAAAAGQFAAAABHVuaXQFAAAAA25pbAUAAAAEdW5pdAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABRTZXRTY3JpcHRUcmFuc2FjdGlvbgQAAAABdAUAAAAHJG1hdGNoMAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAJAAJZAAAAAQIAAAAsQ3lmMzNkdVBIZUR1a05LWG5yZWtpcFBCZWl2dWk2QTNMclJnRnhMWHVRZTUHtpCuFA==", "height": 2175460, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EaU9Ghh7FkmEb4MptJKdTL8sfGpKQcsrAECmuLSFH11e Next: GWAr8zKmTgFEfHy9hUdz4KrouogNeMReBF37nwcArzfE Diff:
Old | New | Differences | |
---|---|---|---|
168 | 168 | 0 | |
169 | 169 | } | |
170 | 170 | let userAddress = toBase58String(i.caller.bytes) | |
171 | - | let currentTokenPrice = ((((( | |
171 | + | let currentTokenPrice = (((((100 - userDiscount) * bco2e) * eurou) / (100 * usdnw)) * wvs) | |
172 | 172 | let f1PjOfertaSGT9X10 = (((9 * FirstFaseQty) / 10) + 1) | |
173 | 173 | let f1PjStartAdmFondsSGT1X10 = ((1 * FirstFaseQty) / 10) | |
174 | 174 | if ((0 >= ((FirstFaseQty - preIcoQty) - orderQty))) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let SGT = base58'CxVXPje89EXJUtWEhGAG88t99cxaVWU6DrzniFfjYjig' | |
5 | 5 | ||
6 | 6 | let startTotalQty = 305693 | |
7 | 7 | ||
8 | 8 | let FirstFaseQty = 31193 | |
9 | 9 | ||
10 | 10 | let SecondFaseQty = 274500 | |
11 | 11 | ||
12 | 12 | let wvs = 100000000 | |
13 | 13 | ||
14 | 14 | let NONE = "none" | |
15 | 15 | ||
16 | 16 | let eurou = 101 | |
17 | 17 | ||
18 | 18 | let usdnw = 577 | |
19 | 19 | ||
20 | 20 | let bco2e = 10 | |
21 | 21 | ||
22 | 22 | let admN08SGTW = Address(base58'3Mu7Zd3UsSFicaf45vUFTpVsTZJWgTtvBhz') | |
23 | 23 | ||
24 | 24 | let admN08ECpjAmazSGT6 = Address(base58'3N935A2iWuGH3AmifpHVmQjoaA7KNX6E1fR') | |
25 | 25 | ||
26 | 26 | func getNumberByKey (key) = { | |
27 | 27 | let num = match getInteger(this, key) { | |
28 | 28 | case a: Int => | |
29 | 29 | a | |
30 | 30 | case _ => | |
31 | 31 | 0 | |
32 | 32 | } | |
33 | 33 | num | |
34 | 34 | } | |
35 | 35 | ||
36 | 36 | ||
37 | 37 | func getStrByKey (key) = { | |
38 | 38 | let str = match getString(this, key) { | |
39 | 39 | case a: String => | |
40 | 40 | a | |
41 | 41 | case _ => | |
42 | 42 | NONE | |
43 | 43 | } | |
44 | 44 | str | |
45 | 45 | } | |
46 | 46 | ||
47 | 47 | ||
48 | 48 | func getKeyProjectCategory (item) = "Categoría del Proyecto " | |
49 | 49 | ||
50 | 50 | ||
51 | 51 | func getValueProjectCategory (item) = getStrByKey(getKeyProjectCategory(item)) | |
52 | 52 | ||
53 | 53 | ||
54 | 54 | func getKeyItemSupplier (supplier) = (supplier + "Comunidad Achuar Kapawi del Ecuador") | |
55 | 55 | ||
56 | 56 | ||
57 | 57 | func getKeyProjectName (item) = "Nombre del Proyecto " | |
58 | 58 | ||
59 | 59 | ||
60 | 60 | func getValueProjectName (item) = getStrByKey(getKeyProjectName(item)) | |
61 | 61 | ||
62 | 62 | ||
63 | 63 | func getKeyProjectCountry (item) = "País | Ubicación " | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | func getValueProjectCountry (item) = getStrByKey(getKeyProjectCountry(item)) | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | func getKeyProjectCode (item) = "Código " | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | func getValueProjectCode (item) = getStrByKey(getKeyProjectCode(item)) | |
73 | 73 | ||
74 | 74 | ||
75 | 75 | func getKeyProjectPropietary (item) = "Propietario | Beneficiario del Proyecto " | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | func getValueProjectPropietary (item) = getStrByKey(getKeyProjectPropietary(item)) | |
79 | 79 | ||
80 | 80 | ||
81 | 81 | func getKeyProjectDev (supplier) = "Desarrollador | Responsable Legal " | |
82 | 82 | ||
83 | 83 | ||
84 | 84 | func getValueProjectDev (supplier) = getStrByKey(getKeyProjectDev(supplier)) | |
85 | 85 | ||
86 | 86 | ||
87 | 87 | func getKeyNomTokenPrice (item) = "Precio Nominal, 1 SGT " | |
88 | 88 | ||
89 | 89 | ||
90 | 90 | func getKeyDescuento6TokPrice (item) = "Precio de 1 SGT con dscto elegido " | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | func getValueDescuento6TokPrice (item) = getNumberByKey(getKeyDescuento6TokPrice(item)) | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func getKeyFirstFaseQty (item) = "Cantidad de Tokens ofertados, F1 Pre-ICO " | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | func getValueFirstFaseQty (item) = getStrByKey(getKeyFirstFaseQty(item)) | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | func getKeySaldoTokenQtyStartEtapa (item) = "Total de tokens realizados, Pre-ICO " | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func getValueSaldoTokenQtyStartEtapa (item) = getNumberByKey(getKeySaldoTokenQtyStartEtapa(item)) | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | func getKeyBalanceSupplier (supplier) = "Fondos desde Tokens SGT, PreICO " | |
109 | 109 | ||
110 | 110 | ||
111 | 111 | func getValueBalanceSupplier (supplier) = getNumberByKey(getKeyBalanceSupplier(supplier)) | |
112 | 112 | ||
113 | 113 | ||
114 | 114 | func getKeyUserItemCounter (user,item) = "Order_№ " | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | func getValueUserItemCounter (user,item) = getNumberByKey(getKeyUserItemCounter(user, item)) | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | func getKeyUserDocument (item) = "Documento Nacional de Identidad, DNI del Usuario " | |
121 | 121 | ||
122 | 122 | ||
123 | 123 | func getValueUserDocument (item) = getStrByKey(getKeyUserDocument(item)) | |
124 | 124 | ||
125 | 125 | ||
126 | 126 | func getKeyUserCountry (item) = "País de Residencia del Usuario " | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | func getValueUserCountry (item) = getStrByKey(getKeyUserCountry(item)) | |
130 | 130 | ||
131 | 131 | ||
132 | 132 | func getKeyDiscount6User (item) = "Porcentaje de descuento elegido, % " | |
133 | 133 | ||
134 | 134 | ||
135 | 135 | func getValueDiscount6User (item) = getNumberByKey(getKeyDiscount6User(item)) | |
136 | 136 | ||
137 | 137 | ||
138 | 138 | func getKeyItemUserOrderQty (item) = "Cantidad de tokens adquiridos " | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | func getValueItemUserOrderQty (item) = getNumberByKey(getKeyItemUserOrderQty(item)) | |
142 | 142 | ||
143 | 143 | ||
144 | 144 | @Callable(i) | |
145 | 145 | func purchaseSGT (item,userDocument,userCountry,userDiscount,orderQty,totalAmount) = { | |
146 | 146 | let pmt = if ((size(i.payments) == 1)) | |
147 | 147 | then i.payments[0] | |
148 | 148 | else throw("Se requiere pago adjunto.") | |
149 | 149 | if (isDefined(pmt.assetId)) | |
150 | 150 | then throw("Ud. solo puede adquirir SGT usando WavesKeeper y su token de pago Waves.") | |
151 | 151 | else { | |
152 | 152 | let supplier = match getString(this, getKeyItemSupplier(item)) { | |
153 | 153 | case a: String => | |
154 | 154 | a | |
155 | 155 | case _ => | |
156 | 156 | NONE | |
157 | 157 | } | |
158 | 158 | let preIcoQty = match getInteger(this, getKeySaldoTokenQtyStartEtapa(item)) { | |
159 | 159 | case a: Int => | |
160 | 160 | a | |
161 | 161 | case _ => | |
162 | 162 | 0 | |
163 | 163 | } | |
164 | 164 | let balanceSupplier = match getInteger(this, getKeyBalanceSupplier(supplier)) { | |
165 | 165 | case a: Int => | |
166 | 166 | a | |
167 | 167 | case _ => | |
168 | 168 | 0 | |
169 | 169 | } | |
170 | 170 | let userAddress = toBase58String(i.caller.bytes) | |
171 | - | let currentTokenPrice = ((((( | |
171 | + | let currentTokenPrice = (((((100 - userDiscount) * bco2e) * eurou) / (100 * usdnw)) * wvs) | |
172 | 172 | let f1PjOfertaSGT9X10 = (((9 * FirstFaseQty) / 10) + 1) | |
173 | 173 | let f1PjStartAdmFondsSGT1X10 = ((1 * FirstFaseQty) / 10) | |
174 | 174 | if ((0 >= ((FirstFaseQty - preIcoQty) - orderQty))) | |
175 | 175 | then throw("Lo sentimos, por ahora no hay oferta de tokens para su transacción.") | |
176 | 176 | else if ((totalAmount > pmt.amount)) | |
177 | 177 | then throw("El monto del pago no puede ser inferior a la orden de compra del artículo.") | |
178 | 178 | else if ((pmt.amount > totalAmount)) | |
179 | 179 | then throw("El monto del pago no puede ser mayor que la orden de compra del artículo.") | |
180 | 180 | 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) | |
181 | 181 | } | |
182 | 182 | } | |
183 | 183 | ||
184 | 184 | ||
185 | 185 | @Verifier(tx) | |
186 | 186 | func verify () = match tx { | |
187 | 187 | case t: SetScriptTransaction => | |
188 | 188 | sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String("Cyf33duPHeDukNKXnrekipPBeivui6A3LrRgFxLXuQe5")) | |
189 | 189 | case _ => | |
190 | 190 | false | |
191 | 191 | } | |
192 | 192 |
github/deemru/w8io/026f985 37.26 ms ◑