tx · 8A2L7GHpAbsyTw9EkDq5Ed2s5bCTPBNuc7nyiRxkDxZg 3MwMR1ZFfy712trHVLisizYmvRQwsg8z9Bn: -0.01400000 Waves 2020.03.27 17:06 [927939] smart account 3MwMR1ZFfy712trHVLisizYmvRQwsg8z9Bn > SELF 0.00000000 Waves
{ "type": 13, "id": "8A2L7GHpAbsyTw9EkDq5Ed2s5bCTPBNuc7nyiRxkDxZg", "fee": 1400000, "feeAssetId": null, "timestamp": 1585317991605, "version": 1, "sender": "3MwMR1ZFfy712trHVLisizYmvRQwsg8z9Bn", "senderPublicKey": "97T1f7qUWzkowGZkQrhKdK7mb6NMiCypcdgw9AJkb7Lx", "proofs": [ "5MRVV5KHSvMMdm6bZxG4HS9LJjyi8znSYUoqJHo4i9MuvZNAxUyftbAbKtF2hxDNhnC5pnDMh5t2h5H6BYTbJgyM" ], "script": "base64:AAIDAAAAAAAAABUIARIAEgASBAoCCAESABIDCgEIEgAAAABTAQAAAA5nZXROdW1iZXJCeUtleQAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAAAAAAAAAAAAAQAAAA5nZXRTdHJpbmdCeUtleQAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAgAAAAABAAAADGdldEJvb2xCeUtleQAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEGwAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAHQm9vbGVhbgQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQcBAAAAGGdldE51bWJlckJ5QWRkcmVzc0FuZEtleQAAAAIAAAAHY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AAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAAYbm9kZU9yYWNsZVByb3ZpZGVyUHViS2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABVTcG9uc29yRmVlVHJhbnNhY3Rpb24EAAAACXNwb25zb3JUeAUAAAAHJG1hdGNoMAkBAAAAG2NoZWNrSXNWYWxpZE1pblNwb25zb3JlZEZlZQAAAAEFAAAACXNwb25zb3JUeAa9GIXN", "chainId": 84, "height": 927939, "spentComplexity": 0 } View: original | compacted Prev: FRFWgxkNd5mPvEhWRkRjAdmrjSGmZ7ZNU4yW7gvsNHSt Next: 7spLeWW8fEZi1UQyyZuZmgKo4NB7SFzQtrKHyetjxEcY Diff:
Old | New | Differences | |
---|---|---|---|
235 | 235 | let aQ = (aO + fraction(aO, aP, 100)) | |
236 | 236 | let aR = toString(k(aM.minSponsoredAssetFee)) | |
237 | 237 | let aS = toString(aQ) | |
238 | - | throw(((((((("Correct fee: " + aR) + "; Exact: ") + aS) + "; Real USDN fee: ") + toString(aO)) + "; Medium percent: ") + toString(aP))) | |
238 | + | if ((k(aM.minSponsoredAssetFee) == aQ)) | |
239 | + | then true | |
240 | + | else throw(((((((("Input fee: " + aR) + "; Exact: ") + aS) + "; Real USDN fee: ") + toString(aO)) + "; Medium percent: ") + toString(aP))) | |
239 | 241 | } | |
240 | 242 | ||
241 | 243 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func a (b) = { | |
5 | 5 | let c = getInteger(this, b) | |
6 | 6 | if ($isInstanceOf(c, "Int")) | |
7 | 7 | then { | |
8 | 8 | let d = c | |
9 | 9 | d | |
10 | 10 | } | |
11 | 11 | else 0 | |
12 | 12 | } | |
13 | 13 | ||
14 | 14 | ||
15 | 15 | func e (b) = { | |
16 | 16 | let c = getString(this, b) | |
17 | 17 | if ($isInstanceOf(c, "String")) | |
18 | 18 | then { | |
19 | 19 | let d = c | |
20 | 20 | d | |
21 | 21 | } | |
22 | 22 | else "" | |
23 | 23 | } | |
24 | 24 | ||
25 | 25 | ||
26 | 26 | func f (b) = { | |
27 | 27 | let c = getBoolean(this, b) | |
28 | 28 | if ($isInstanceOf(c, "Boolean")) | |
29 | 29 | then { | |
30 | 30 | let d = c | |
31 | 31 | d | |
32 | 32 | } | |
33 | 33 | else false | |
34 | 34 | } | |
35 | 35 | ||
36 | 36 | ||
37 | 37 | func g (h,b) = { | |
38 | 38 | let c = getInteger(addressFromStringValue(h), b) | |
39 | 39 | if ($isInstanceOf(c, "Int")) | |
40 | 40 | then { | |
41 | 41 | let d = c | |
42 | 42 | d | |
43 | 43 | } | |
44 | 44 | else 0 | |
45 | 45 | } | |
46 | 46 | ||
47 | 47 | ||
48 | 48 | func i (h,b) = { | |
49 | 49 | let c = getString(addressFromStringValue(h), b) | |
50 | 50 | if ($isInstanceOf(c, "String")) | |
51 | 51 | then { | |
52 | 52 | let d = c | |
53 | 53 | d | |
54 | 54 | } | |
55 | 55 | else "" | |
56 | 56 | } | |
57 | 57 | ||
58 | 58 | ||
59 | 59 | func j (h,b) = { | |
60 | 60 | let c = getBoolean(addressFromStringValue(h), b) | |
61 | 61 | if ($isInstanceOf(c, "Boolean")) | |
62 | 62 | then { | |
63 | 63 | let d = c | |
64 | 64 | d | |
65 | 65 | } | |
66 | 66 | else false | |
67 | 67 | } | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | func k (l) = { | |
71 | 71 | let c = l | |
72 | 72 | if ($isInstanceOf(c, "Int")) | |
73 | 73 | then { | |
74 | 74 | let d = c | |
75 | 75 | d | |
76 | 76 | } | |
77 | 77 | else 0 | |
78 | 78 | } | |
79 | 79 | ||
80 | 80 | ||
81 | 81 | let m = 30 | |
82 | 82 | ||
83 | 83 | let n = "_" | |
84 | 84 | ||
85 | 85 | let o = "+" | |
86 | 86 | ||
87 | 87 | let p = 100000000 | |
88 | 88 | ||
89 | 89 | let q = 1000000 | |
90 | 90 | ||
91 | 91 | let r = 5 | |
92 | 92 | ||
93 | 93 | let s = "neutrino_asset_id" | |
94 | 94 | ||
95 | 95 | let t = "bond_asset_id" | |
96 | 96 | ||
97 | 97 | let u = "auction_contract" | |
98 | 98 | ||
99 | 99 | let v = "liquidation_contract" | |
100 | 100 | ||
101 | 101 | let w = "rpd_contract" | |
102 | 102 | ||
103 | 103 | let x = "control_contract" | |
104 | 104 | ||
105 | 105 | let y = "balance_waves_lock_interval" | |
106 | 106 | ||
107 | 107 | let z = "balance_neutrino_lock_interval" | |
108 | 108 | ||
109 | 109 | let A = "min_waves_swap_amount" | |
110 | 110 | ||
111 | 111 | let B = "min_neutrino_swap_amount" | |
112 | 112 | ||
113 | 113 | let C = "node_oracle_provider" | |
114 | 114 | ||
115 | 115 | let D = 50 | |
116 | 116 | ||
117 | 117 | let E = 100 | |
118 | 118 | ||
119 | 119 | let F = 100000 | |
120 | 120 | ||
121 | 121 | let G = "current_config_id" | |
122 | 122 | ||
123 | 123 | func H (I) = ("price_fee_" + I) | |
124 | 124 | ||
125 | 125 | ||
126 | 126 | func J (I) = ("minfee_fee_" + I) | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | func K (I) = ("fee_config_status_" + I) | |
130 | 130 | ||
131 | 131 | ||
132 | 132 | let L = "rpd_balance" | |
133 | 133 | ||
134 | 134 | func M (N) = ((L + "_") + toBase58String(N)) | |
135 | 135 | ||
136 | 136 | ||
137 | 137 | let O = "price" | |
138 | 138 | ||
139 | 139 | let P = "price_index" | |
140 | 140 | ||
141 | 141 | let Q = "is_blocked" | |
142 | 142 | ||
143 | 143 | func R (S) = ((O + "_") + toString(S)) | |
144 | 144 | ||
145 | 145 | ||
146 | 146 | func T (U) = ((P + "_") + toString(U)) | |
147 | 147 | ||
148 | 148 | ||
149 | 149 | let V = "balance_lock_" | |
150 | 150 | ||
151 | 151 | let W = (V + "waves") | |
152 | 152 | ||
153 | 153 | let X = (V + "neutrino") | |
154 | 154 | ||
155 | 155 | func Y (Z,N) = ((((L + "_") + toBase58String(N)) + "_") + toString(Z)) | |
156 | 156 | ||
157 | 157 | ||
158 | 158 | func aa (ab) = (("cancel_lease_tx_reserve_fee" + "_") + ab) | |
159 | 159 | ||
160 | 160 | ||
161 | 161 | func ac (ad) = ((W + "_") + ad) | |
162 | 162 | ||
163 | 163 | ||
164 | 164 | func ae (ad) = ((X + "_") + ad) | |
165 | 165 | ||
166 | 166 | ||
167 | 167 | func af (ad) = ("balance_unlock_block_" + ad) | |
168 | 168 | ||
169 | 169 | ||
170 | 170 | func ag (Z) = (("rpd_profit" + "_") + toString(Z)) | |
171 | 171 | ||
172 | 172 | ||
173 | 173 | func ah (ai,aj) = fraction(fraction(ai, 100, aj), p, q) | |
174 | 174 | ||
175 | 175 | ||
176 | 176 | func ak (ai,aj) = fraction(fraction(ai, aj, 100), q, p) | |
177 | 177 | ||
178 | 178 | ||
179 | 179 | func al (ai,aj) = ak(ai, aj) | |
180 | 180 | ||
181 | 181 | ||
182 | 182 | func am (an) = split(an, ",") | |
183 | 183 | ||
184 | 184 | ||
185 | 185 | let ao = e(v) | |
186 | 186 | ||
187 | 187 | let ap = e(s) | |
188 | 188 | ||
189 | 189 | let aq = fromBase58String(ap) | |
190 | 190 | ||
191 | 191 | let ar = e(u) | |
192 | 192 | ||
193 | 193 | let as = e(w) | |
194 | 194 | ||
195 | 195 | let at = e(x) | |
196 | 196 | ||
197 | 197 | let au = g(at, P) | |
198 | 198 | ||
199 | 199 | let av = j(at, Q) | |
200 | 200 | ||
201 | 201 | let aw = fromBase58String(e(C)) | |
202 | 202 | ||
203 | 203 | let ax = a(y) | |
204 | 204 | ||
205 | 205 | let ay = a(z) | |
206 | 206 | ||
207 | 207 | let az = a(A) | |
208 | 208 | ||
209 | 209 | let aA = a(B) | |
210 | 210 | ||
211 | 211 | let aB = fromBase58String("6nSpVyNH7yM69eg446wrQR94ipbbcmZMU1ENPwanC97g") | |
212 | 212 | ||
213 | 213 | let aC = fromBase58String("975akZBfnMj513U7MZaHKzQrmsEx5aE3wdWKTrHBhbjF") | |
214 | 214 | ||
215 | 215 | let aD = this | |
216 | 216 | ||
217 | 217 | let aE = g(at, O) | |
218 | 218 | ||
219 | 219 | let aF = a(X) | |
220 | 220 | ||
221 | 221 | let aG = a(W) | |
222 | 222 | ||
223 | 223 | let aH = (wavesBalance(aD) - aG) | |
224 | 224 | ||
225 | 225 | let aI = (((aF + extract(assetInfo(aq)).quantity) - assetBalance(aD, aq)) - assetBalance(addressFromStringValue(ao), aq)) | |
226 | 226 | ||
227 | 227 | let aJ = (ak(aH, aE) - aI) | |
228 | 228 | ||
229 | 229 | let aK = (aI - ak(aH, aE)) | |
230 | 230 | ||
231 | 231 | func aL (aM) = { | |
232 | 232 | let aN = 90 | |
233 | 233 | let aO = ak(F, aN) | |
234 | 234 | let aP = (D + fraction((E - D), 1, 2)) | |
235 | 235 | let aQ = (aO + fraction(aO, aP, 100)) | |
236 | 236 | let aR = toString(k(aM.minSponsoredAssetFee)) | |
237 | 237 | let aS = toString(aQ) | |
238 | - | throw(((((((("Correct fee: " + aR) + "; Exact: ") + aS) + "; Real USDN fee: ") + toString(aO)) + "; Medium percent: ") + toString(aP))) | |
238 | + | if ((k(aM.minSponsoredAssetFee) == aQ)) | |
239 | + | then true | |
240 | + | else throw(((((((("Input fee: " + aR) + "; Exact: ") + aS) + "; Real USDN fee: ") + toString(aO)) + "; Medium percent: ") + toString(aP))) | |
239 | 241 | } | |
240 | 242 | ||
241 | 243 | ||
242 | 244 | func aT (N) = g(as, M(N)) | |
243 | 245 | ||
244 | 246 | ||
245 | 247 | func aU (S) = g(at, R(S)) | |
246 | 248 | ||
247 | 249 | ||
248 | 250 | func aV (U) = g(at, T(U)) | |
249 | 251 | ||
250 | 252 | ||
251 | 253 | func aW (ab) = a(aa(ab)) | |
252 | 254 | ||
253 | 255 | ||
254 | 256 | func aX (ad) = a(ac(ad)) | |
255 | 257 | ||
256 | 258 | ||
257 | 259 | func aY (ad) = a(ae(ad)) | |
258 | 260 | ||
259 | 261 | ||
260 | 262 | func aZ (ad) = a(af(ad)) | |
261 | 263 | ||
262 | 264 | ||
263 | 265 | func ba (Z) = a(ag(Z)) | |
264 | 266 | ||
265 | 267 | ||
266 | 268 | @Callable(bb) | |
267 | 269 | func swapWavesToNeutrino () = { | |
268 | 270 | let bc = extract(bb.payment) | |
269 | 271 | let bd = toString(bb.caller) | |
270 | 272 | if ((az > bc.amount)) | |
271 | 273 | then throw((("The specified Waves amount is less than the required minimum of " + toString(az)) + " wavelets.")) | |
272 | 274 | else if (isDefined(bc.assetId)) | |
273 | 275 | then throw("Only Waves token is allowed for swapping.") | |
274 | 276 | else if (av) | |
275 | 277 | then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles") | |
276 | 278 | else if ((aZ(bd) > height)) | |
277 | 279 | then throw((("await " + toString((aZ(bd) - height))) + " blocks")) | |
278 | 280 | else if (if ((aY(bd) != 0)) | |
279 | 281 | then true | |
280 | 282 | else (aX(bd) != 0)) | |
281 | 283 | then throw("please withdraw locked funds first") | |
282 | 284 | else WriteSet([DataEntry(ac(bd), bc.amount), DataEntry(af(bd), (height + ax)), DataEntry(W, (aG + bc.amount))]) | |
283 | 285 | } | |
284 | 286 | ||
285 | 287 | ||
286 | 288 | ||
287 | 289 | @Callable(bb) | |
288 | 290 | func swapNeutrinoToWaves () = { | |
289 | 291 | let bc = extract(bb.payment) | |
290 | 292 | let bd = toString(bb.caller) | |
291 | 293 | if ((aA > bc.amount)) | |
292 | 294 | then throw((("The specified Neutrino amount is less than the required minimum of " + toString(aA)) + " Neutrino cents.")) | |
293 | 295 | else if (av) | |
294 | 296 | then throw("The contract is blocked by EMERGENCY SHUTDOWN. Please wait for reactivation by emergency oracles.") | |
295 | 297 | else if ((bc.assetId != aq)) | |
296 | 298 | then throw("Only appropriate Neutrino tokens are allowed for swapping.") | |
297 | 299 | else if ((aZ(bd) > height)) | |
298 | 300 | then throw((("await " + toString((aZ(bd) - height))) + " blocks")) | |
299 | 301 | else if (if ((aY(bd) != 0)) | |
300 | 302 | then true | |
301 | 303 | else (aX(bd) != 0)) | |
302 | 304 | then throw("please withdraw locked funds first") | |
303 | 305 | else WriteSet([DataEntry(ae(bd), bc.amount), DataEntry(af(bd), (height + ay)), DataEntry(X, (aF + bc.amount))]) | |
304 | 306 | } | |
305 | 307 | ||
306 | 308 | ||
307 | 309 | ||
308 | 310 | @Callable(bb) | |
309 | 311 | func withdraw (bd,U) = { | |
310 | 312 | let be = aZ(bd) | |
311 | 313 | let bf = aX(bd) | |
312 | 314 | let bg = aY(bd) | |
313 | 315 | let bh = aV(U) | |
314 | 316 | let bi = aV((U - 1)) | |
315 | 317 | let bj = aU(bh) | |
316 | 318 | let bk = ak(bf, bj) | |
317 | 319 | let bl = ah(bg, bj) | |
318 | 320 | if (av) | |
319 | 321 | then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles") | |
320 | 322 | else if ((be > height)) | |
321 | 323 | then throw((("please wait for: " + toString(be)) + " block height to withdraw WAVES funds")) | |
322 | 324 | else if (if (if ((U > au)) | |
323 | 325 | then true | |
324 | 326 | else (be > bh)) | |
325 | 327 | then true | |
326 | 328 | else if ((bi != 0)) | |
327 | 329 | then (bi >= be) | |
328 | 330 | else false) | |
329 | 331 | then throw(((((((((("invalid price history index: index=" + toString(U)) + " priceIndex=") + toString(au)) + " indexHeight=") + toString(bh)) + " unlockHeight=") + toString(be)) + " prevIndexHeight=") + toString(bi))) | |
330 | 332 | else if (if ((0 >= bk)) | |
331 | 333 | then (0 >= bl) | |
332 | 334 | else false) | |
333 | 335 | then throw("balance equals zero") | |
334 | 336 | else ScriptResult(WriteSet([DataEntry(ac(bd), 0), DataEntry(ae(bd), 0), DataEntry(W, (aG - bf)), DataEntry(X, (aF - bg))]), TransferSet([ScriptTransfer(addressFromStringValue(bd), bl, unit), ScriptTransfer(addressFromStringValue(bd), bk, aq)])) | |
335 | 337 | } | |
336 | 338 | ||
337 | 339 | ||
338 | 340 | ||
339 | 341 | @Callable(bb) | |
340 | 342 | func transferToAuction () = { | |
341 | 343 | let bm = (aK - assetBalance(addressFromStringValue(ar), aB)) | |
342 | 344 | let bn = fraction(aI, r, 100) | |
343 | 345 | let bo = (aJ - assetBalance(addressFromStringValue(ao), aq)) | |
344 | 346 | if (av) | |
345 | 347 | then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles") | |
346 | 348 | else if (if ((bm > bn)) | |
347 | 349 | then (bm > 0) | |
348 | 350 | else false) | |
349 | 351 | then TransferSet([ScriptTransfer(addressFromStringValue(ar), bm, aB)]) | |
350 | 352 | else if ((bo >= (1 * q))) | |
351 | 353 | then TransferSet([ScriptTransfer(addressFromStringValue(ao), bo, aq)]) | |
352 | 354 | else throw(((((((("bond were generated or do not need it. Deficit:" + toString(bm)) + "|") + toString(bn)) + ". Surplus:") + toString(bo)) + "|") + toString(aJ))) | |
353 | 355 | } | |
354 | 356 | ||
355 | 357 | ||
356 | 358 | ||
357 | 359 | @Callable(bb) | |
358 | 360 | func transfer (bd) = { | |
359 | 361 | let bc = extract(bb.payment) | |
360 | 362 | TransferSet([ScriptTransfer(addressFromStringValue(bd), bc.amount, bc.assetId)]) | |
361 | 363 | } | |
362 | 364 | ||
363 | 365 | ||
364 | 366 | ||
365 | 367 | @Callable(bb) | |
366 | 368 | func migrationUSDNB2NSBTSwap () = { | |
367 | 369 | let bc = extract(bb.payment) | |
368 | 370 | let bd = bb.caller | |
369 | 371 | if ((aC != bc.assetId)) | |
370 | 372 | then throw("error: attempt to swap not USDNB tokens") | |
371 | 373 | else TransferSet([ScriptTransfer(bd, (bc.amount * q), aB)]) | |
372 | 374 | } | |
373 | 375 | ||
374 | 376 | ||
375 | 377 | @Verifier(aM) | |
376 | 378 | func bp () = { | |
377 | 379 | let I = toBase58String(aM.id) | |
378 | 380 | let c = aM | |
379 | 381 | if (if ($isInstanceOf(c, "LeaseCancelTransaction")) | |
380 | 382 | then true | |
381 | 383 | else $isInstanceOf(c, "LeaseTransaction")) | |
382 | 384 | then { | |
383 | 385 | let bq = c | |
384 | 386 | sigVerify(aM.bodyBytes, aM.proofs[0], aw) | |
385 | 387 | } | |
386 | 388 | else if ($isInstanceOf(c, "SponsorFeeTransaction")) | |
387 | 389 | then { | |
388 | 390 | let br = c | |
389 | 391 | aL(br) | |
390 | 392 | } | |
391 | 393 | else true | |
392 | 394 | } | |
393 | 395 |
github/deemru/w8io/169f3d6 59.67 ms ◑