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