tx · BvHGxmEntyJqk2S3kAZZ6GnJDLaXoBe7QYQKhY6PMCkq 3N8RGScPyKYySaXd5Z3VcpnttH2uBeMpSy4: -0.01400000 Waves 2020.03.18 10:00 [914401] smart account 3N8RGScPyKYySaXd5Z3VcpnttH2uBeMpSy4 > SELF 0.00000000 Waves
{ "type": 13, "id": "BvHGxmEntyJqk2S3kAZZ6GnJDLaXoBe7QYQKhY6PMCkq", "fee": 1400000, "feeAssetId": null, "timestamp": 1584514606360, "version": 1, "sender": "3N8RGScPyKYySaXd5Z3VcpnttH2uBeMpSy4", "senderPublicKey": "4AHsCbS9QYVdKNvxrPWwsMwwy3KqXaCMXeAscExJZk9L", "proofs": [ "2CWA2qQqtwmBKpxNMaDGVGMzW5Wt9xLRxuphokSgeij5bMaKr2M8B6DsLheT2tbZ7DAjfq2qrM41SJYCrwvktj4e" ], "script": "base64:AAIDAAAAAAAAAB4IARIDCgEBEgYKBAgBAQgSBwoFCAgIAQESBAoCCAEAAAAdAAAAAAdhQml0Q08yAQAAACDH+HoAnTdQnyoybLskiHPdWM4Tg4veh8IaLSgbZ8EolgAAAAAIc3RhcnRRdHkAAAAAAAAFFAAAAAAACG5vbVByaWNlAAAAAAAAAAABAAAAABBzdXBwbGllckRpc2NvdW50AAAAAAAAAAAMAAAAAA5Pd25lckVjb1B1YktleQEAAAAgLvRbo0AJGg7wNzBbRHjrN75s0YuvS2DdwCQ0/xY2QB8AAAAAA3d2cwAAAAAABfXhAAAAAAAETk9ORQIAAAAEbm9uZQAAAAAGaXNzdWVyCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUyvc7Pucv0VXiD634RbMs3vuN0A1Fa31vAQAAAA5nZXROdW1iZXJCeUtleQAAAAEAAAADa2V5BAAAAANudW0EAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAA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1eU9yZGVyAAAABnByb29mcwAAAAAAAAAAAAgIBQAAAAJ0eAAAAAhidXlPcmRlcgAAAA9zZW5kZXJQdWJsaWNLZXkEAAAAD3NlbGxPcmRlclNlbmRlcgkAAlgAAAABCAgIBQAAAAJ0eAAAAAlzZWxsT3JkZXIAAAAGc2VuZGVyAAAABWJ5dGVzBAAAAAltaW5BbW91bnQAAAAAAAAAAAEEAAAACW1heEFtb3VudAAAAAAAAAAABAQAAAAIbWF4UHJpY2UJAABoAAAAAgUAAAAJbWF4QW1vdW50BQAAAAhub21QcmljZQMDBQAAAANidXkDCQEAAAAJaXNEZWZpbmVkAAAAAQkAAGcAAAACBQAAAAhtYXhQcmljZQgIBQAAAAJ0eAAAAAhidXlPcmRlcgAAAAVwcmljZQYJAAACAAAAAQIAAAA6RWwgbW9udG8gYSBwYWdhciBubyBwdWVkZSBzZXIgbWVub3IgcXVlIGVsIHByZWNpbyBkZSB2ZW50YQcGAwUAAAAEc2VsbAMDAwkAAAAAAAACCAgFAAAAAnR4AAAACXNlbGxPcmRlcgAAAAZzZW5kZXIFAAAABmlzc3VlcgkAAGcAAAACCAUAAAACdHgAAAAGYW1vdW50BQAAAAltaW5BbW91bnQHCQAAZwAAAAIFAAAACW1heEFtb3VudAgFAAAAAnR4AAAABmFtb3VudAcGCQAAAgAAAAECAAAAU0Vycm9yOiBNaW5pbXVtIGFtb3VudDogMSBhQml0Q08yOyBNYXhpbXVtIGFtb3VudCBvZmZlcmVkOiA0IGFCaXRDTzIgYnkgVXNlciBBY2NvdW50BwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAXSW52b2tlU2NyaXB0VHJhbnNhY3Rpb24EAAAAAWMFAAAAByRtYXRjaDAGBxzYnqU=", "chainId": 84, "height": 914401, "spentComplexity": 0 } View: original | compacted Prev: 5kknR3Zvzxg6eoRVQQRxs6S1hcrXqRPLXzfeRhCyGVGH Next: CYwqft8NFsQKx2duRrPUMvWdsFpFwCSjpUs5myuPamb3 Diff:
Old | New | Differences | |
---|---|---|---|
5 | 5 | ||
6 | 6 | let b = 332800 | |
7 | 7 | ||
8 | - | let c = | |
8 | + | let c = 1 | |
9 | 9 | ||
10 | 10 | let d = 12 | |
11 | 11 | ||
131 | 131 | let t = p(q, r) | |
132 | 132 | if ((0 >= R)) | |
133 | 133 | then throw("Sorry, insufficient token offer") | |
134 | - | else WriteSet([DataEntry(("Ofertante:_" + s(t)), q), DataEntry(v(t), R), DataEntry(("Precio_Nominal:" + K(t)), c), DataEntry(("Max_Descuento_ofrecido:" + I(t)), d), DataEntry(x(t), S)]) | |
134 | + | else WriteSet([DataEntry(("Ofertante:_" + s(t)), q), DataEntry(v(t), R), DataEntry(("Precio_Nominal:" + K(t)), (c * f)), DataEntry(("Max_Descuento_ofrecido:" + I(t)), d), DataEntry(x(t), S)]) | |
135 | 135 | } | |
136 | 136 | ||
137 | 137 | ||
170 | 170 | else 0 | |
171 | 171 | } | |
172 | 172 | let Y = toBase58String(M.caller.bytes) | |
173 | - | let Z = (( | |
173 | + | let Z = ((((100 - V) * c) * f) / 100) | |
174 | 174 | let aa = (W * Z) | |
175 | 175 | if ((aa > O.amount)) | |
176 | 176 | then throw("Payment Amount cannot 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 a = base58'ETbtNp6MBuSM9EfjmLDwctrYEBBiq8CZ7ti7zbwTktry' | |
5 | 5 | ||
6 | 6 | let b = 332800 | |
7 | 7 | ||
8 | - | let c = | |
8 | + | let c = 1 | |
9 | 9 | ||
10 | 10 | let d = 12 | |
11 | 11 | ||
12 | 12 | let e = base58'4AHsCbS9QYVdKNvxrPWwsMwwy3KqXaCMXeAscExJZk9L' | |
13 | 13 | ||
14 | 14 | let f = 100000000 | |
15 | 15 | ||
16 | 16 | let g = "none" | |
17 | 17 | ||
18 | 18 | let h = Address(base58'3N8RGScPyKYySaXd5Z3VcpnttH2uBeMpSy4') | |
19 | 19 | ||
20 | 20 | func i (j) = { | |
21 | 21 | let k = { | |
22 | 22 | let l = getInteger(this, j) | |
23 | 23 | if ($isInstanceOf(l, "Int")) | |
24 | 24 | then { | |
25 | 25 | let m = l | |
26 | 26 | m | |
27 | 27 | } | |
28 | 28 | else 0 | |
29 | 29 | } | |
30 | 30 | k | |
31 | 31 | } | |
32 | 32 | ||
33 | 33 | ||
34 | 34 | func n (j) = { | |
35 | 35 | let o = { | |
36 | 36 | let l = getString(this, j) | |
37 | 37 | if ($isInstanceOf(l, "String")) | |
38 | 38 | then { | |
39 | 39 | let m = l | |
40 | 40 | m | |
41 | 41 | } | |
42 | 42 | else g | |
43 | 43 | } | |
44 | 44 | o | |
45 | 45 | } | |
46 | 46 | ||
47 | 47 | ||
48 | 48 | func p (q,r) = ("tokens_Bit-CO2:_" + toBase58String(sha256(toBytes((q + r))))) | |
49 | 49 | ||
50 | 50 | ||
51 | 51 | func s (t) = (t + "_to_Amazonian_Conservation") | |
52 | 52 | ||
53 | 53 | ||
54 | 54 | func u (t) = n(s(t)) | |
55 | 55 | ||
56 | 56 | ||
57 | 57 | func v (t) = "Tokens_ofertados,_Saldo" | |
58 | 58 | ||
59 | 59 | ||
60 | 60 | func w (t) = i(v(t)) | |
61 | 61 | ||
62 | 62 | ||
63 | 63 | func x (t) = (t + "_description") | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | func y (z,t) = (((t + "_") + z) + "_cnt") | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | func A (z,t) = i(y(z, t)) | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | func B (t) = "_userdata" | |
73 | 73 | ||
74 | 74 | ||
75 | 75 | func C (t) = "_tokens" | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | func D (t) = i(C(t)) | |
79 | 79 | ||
80 | 80 | ||
81 | 81 | func E (q) = "Seller_Balance:_waves" | |
82 | 82 | ||
83 | 83 | ||
84 | 84 | func F (q) = i(E(q)) | |
85 | 85 | ||
86 | 86 | ||
87 | 87 | func G (t) = "Project_name:" | |
88 | 88 | ||
89 | 89 | ||
90 | 90 | func H (t) = n(G(t)) | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | func I (t) = "_%" | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func J (t) = i(I(t)) | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | func K (t) = "_waves" | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | func L (t) = i(K(t)) | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | @Callable(M) | |
106 | 106 | func deposit (N) = { | |
107 | 107 | let O = extract(M.payment) | |
108 | 108 | if ((O.assetId != a)) | |
109 | 109 | then throw("Use cBitCO2 tokens only for the wallet deposit") | |
110 | 110 | else { | |
111 | 111 | let q = toBase58String(M.caller.bytes) | |
112 | 112 | let P = { | |
113 | 113 | let l = getInteger(this, q) | |
114 | 114 | if ($isInstanceOf(l, "Int")) | |
115 | 115 | then { | |
116 | 116 | let m = l | |
117 | 117 | m | |
118 | 118 | } | |
119 | 119 | else b | |
120 | 120 | } | |
121 | 121 | let Q = (P + O.amount) | |
122 | 122 | WriteSet([DataEntry(q, Q)]) | |
123 | 123 | } | |
124 | 124 | } | |
125 | 125 | ||
126 | 126 | ||
127 | 127 | ||
128 | 128 | @Callable(M) | |
129 | 129 | func AddSupplierToken (r,R,d,S) = { | |
130 | 130 | let q = toBase58String(M.caller.bytes) | |
131 | 131 | let t = p(q, r) | |
132 | 132 | if ((0 >= R)) | |
133 | 133 | then throw("Sorry, insufficient token offer") | |
134 | - | else WriteSet([DataEntry(("Ofertante:_" + s(t)), q), DataEntry(v(t), R), DataEntry(("Precio_Nominal:" + K(t)), c), DataEntry(("Max_Descuento_ofrecido:" + I(t)), d), DataEntry(x(t), S)]) | |
134 | + | else WriteSet([DataEntry(("Ofertante:_" + s(t)), q), DataEntry(v(t), R), DataEntry(("Precio_Nominal:" + K(t)), (c * f)), DataEntry(("Max_Descuento_ofrecido:" + I(t)), d), DataEntry(x(t), S)]) | |
135 | 135 | } | |
136 | 136 | ||
137 | 137 | ||
138 | 138 | ||
139 | 139 | @Callable(M) | |
140 | 140 | func purchase (t,T,U,V,W) = { | |
141 | 141 | let O = extract(M.payment) | |
142 | 142 | if (isDefined(O.assetId)) | |
143 | 143 | then throw("you can adquire cBitCO2 only by Waves tokens") | |
144 | 144 | else { | |
145 | 145 | let q = { | |
146 | 146 | let l = getString(this, s(t)) | |
147 | 147 | if ($isInstanceOf(l, "String")) | |
148 | 148 | then { | |
149 | 149 | let m = l | |
150 | 150 | m | |
151 | 151 | } | |
152 | 152 | else g | |
153 | 153 | } | |
154 | 154 | let R = { | |
155 | 155 | let l = getInteger(this, v(t)) | |
156 | 156 | if ($isInstanceOf(l, "Int")) | |
157 | 157 | then { | |
158 | 158 | let m = l | |
159 | 159 | m | |
160 | 160 | } | |
161 | 161 | else b | |
162 | 162 | } | |
163 | 163 | let X = { | |
164 | 164 | let l = getInteger(this, E(q)) | |
165 | 165 | if ($isInstanceOf(l, "Int")) | |
166 | 166 | then { | |
167 | 167 | let m = l | |
168 | 168 | m | |
169 | 169 | } | |
170 | 170 | else 0 | |
171 | 171 | } | |
172 | 172 | let Y = toBase58String(M.caller.bytes) | |
173 | - | let Z = (( | |
173 | + | let Z = ((((100 - V) * c) * f) / 100) | |
174 | 174 | let aa = (W * Z) | |
175 | 175 | if ((aa > O.amount)) | |
176 | 176 | then throw("Payment Amount cannot be less than item Purchase Order") | |
177 | 177 | else if ((O.amount > aa)) | |
178 | 178 | then throw("Payment Amount can't be higher than item Purchase Order") | |
179 | 179 | else ScriptResult(WriteSet([DataEntry(y(Y, t), (A(Y, t) + 1)), DataEntry(G(t), T), DataEntry(v(t), (R - W)), DataEntry(B(t), U), DataEntry((("Descuento solicitado:_" + Y) + "_%"), V), DataEntry(("Cantidad_solicitada:" + C(t)), W), DataEntry((("Precio_de_1_Token_con_dscto:_" + Y) + "_waves"), Z), DataEntry(("Request_Status:_" + Y), "confirmed"), DataEntry(E(q), (X + O.amount))]), TransferSet([ScriptTransfer(addressFromStringValue(Y), W, a)])) | |
180 | 180 | } | |
181 | 181 | } | |
182 | 182 | ||
183 | 183 | ||
184 | 184 | ||
185 | 185 | @Callable(M) | |
186 | 186 | func withdraw (r,N) = { | |
187 | 187 | let q = toBase58String(M.caller.bytes) | |
188 | 188 | let t = p(q, r) | |
189 | 189 | let R = { | |
190 | 190 | let l = getInteger(this, v(t)) | |
191 | 191 | if ($isInstanceOf(l, "Int")) | |
192 | 192 | then { | |
193 | 193 | let m = l | |
194 | 194 | m | |
195 | 195 | } | |
196 | 196 | else b | |
197 | 197 | } | |
198 | 198 | let Q = (R - N) | |
199 | 199 | if ((0 > N)) | |
200 | 200 | then throw("Can't withdraw negative amount") | |
201 | 201 | else if ((0 > Q)) | |
202 | 202 | then throw("Not enought /suficiente balance") | |
203 | 203 | else ScriptResult(WriteSet([DataEntry(t, Q)]), TransferSet([ScriptTransfer(M.caller, N, a)])) | |
204 | 204 | } | |
205 | 205 | ||
206 | 206 | ||
207 | 207 | @Verifier(ab) | |
208 | 208 | func ac () = { | |
209 | 209 | let l = ab | |
210 | 210 | if ($isInstanceOf(l, "SetScriptTransaction")) | |
211 | 211 | then { | |
212 | 212 | let ad = l | |
213 | 213 | sigVerify(ab.bodyBytes, ab.proofs[0], e) | |
214 | 214 | } | |
215 | 215 | else if ($isInstanceOf(l, "DataTransaction")) | |
216 | 216 | then { | |
217 | 217 | let ae = l | |
218 | 218 | true | |
219 | 219 | } | |
220 | 220 | else if ($isInstanceOf(l, "TransferTransaction")) | |
221 | 221 | then { | |
222 | 222 | let ab = l | |
223 | 223 | let af = toBase58String(addressFromRecipient(ab.recipient).bytes) | |
224 | 224 | if ((ab.sender == h)) | |
225 | 225 | then true | |
226 | 226 | else throw("You can't transferred this token") | |
227 | 227 | } | |
228 | 228 | else if ($isInstanceOf(l, "ExchangeTransaction")) | |
229 | 229 | then { | |
230 | 230 | let ab = l | |
231 | 231 | let ag = if (!(isDefined(ab.sellOrder.assetPair.priceAsset))) | |
232 | 232 | then true | |
233 | 233 | else !(isDefined(ab.sellOrder.assetPair.amountAsset)) | |
234 | 234 | ag | |
235 | 235 | } | |
236 | 236 | else if ($isInstanceOf(l, "ExchangeTransaction")) | |
237 | 237 | then { | |
238 | 238 | let ab = l | |
239 | 239 | let ah = ab.proofs[1] | |
240 | 240 | let ai = addressFromPublicKey(ah) | |
241 | 241 | let aj = 1400000 | |
242 | 242 | let ak = ((wavesBalance(ai) - aj) >= ab.buyOrder.price) | |
243 | 243 | let al = sigVerify(ab.sellOrder.bodyBytes, ab.sellOrder.proofs[0], ab.sellOrder.senderPublicKey) | |
244 | 244 | let am = sigVerify(ab.buyOrder.bodyBytes, ab.buyOrder.proofs[0], ab.buyOrder.senderPublicKey) | |
245 | 245 | let an = toBase58String(ab.sellOrder.sender.bytes) | |
246 | 246 | let ao = 1 | |
247 | 247 | let ap = 4 | |
248 | 248 | let aq = (ap * c) | |
249 | 249 | if (if (am) | |
250 | 250 | then if (isDefined((aq >= ab.buyOrder.price))) | |
251 | 251 | then true | |
252 | 252 | else throw("El monto a pagar no puede ser menor que el precio de venta") | |
253 | 253 | else false) | |
254 | 254 | then true | |
255 | 255 | else if (al) | |
256 | 256 | then if (if (if ((ab.sellOrder.sender == h)) | |
257 | 257 | then (ab.amount >= ao) | |
258 | 258 | else false) | |
259 | 259 | then (ap >= ab.amount) | |
260 | 260 | else false) | |
261 | 261 | then true | |
262 | 262 | else throw("Error: Minimum amount: 1 aBitCO2; Maximum amount offered: 4 aBitCO2 by User Account") | |
263 | 263 | else false | |
264 | 264 | } | |
265 | 265 | else if ($isInstanceOf(l, "InvokeScriptTransaction")) | |
266 | 266 | then { | |
267 | 267 | let ar = l | |
268 | 268 | true | |
269 | 269 | } | |
270 | 270 | else false | |
271 | 271 | } | |
272 | 272 |
github/deemru/w8io/169f3d6 37.53 ms ◑