tx · GrQ9RxP19rs1S8qPckF4cxV47wMka6QwN4o3qPmN9iuY 3Mw2biLQi5ygMk7zexboNGrnMYuaSfrziY8: -0.01000000 Waves 2022.03.25 12:20 [1979273] smart account 3Mw2biLQi5ygMk7zexboNGrnMYuaSfrziY8 > SELF 0.00000000 Waves
{ "type": 13, "id": "GrQ9RxP19rs1S8qPckF4cxV47wMka6QwN4o3qPmN9iuY", "fee": 1000000, "feeAssetId": null, "timestamp": 1648200046215, "version": 2, "chainId": 84, "sender": "3Mw2biLQi5ygMk7zexboNGrnMYuaSfrziY8", "senderPublicKey": "7KdKmjfPuTXGRNZv4VEz9mZiC2qb9JPzuji5z6jszZyo", "proofs": [ "5A3V3AFTY7d8P2yYWsdZ3Um14aVrkMqmEDtCXwATWsEYtLnpQr8QxgaTjXjYiqt3X5tVjAdWSh5gKo6EmVzgPjtD" ], "script": "base64:AAIFAAAAAAAAAAgIAhIECgIBCAAAAAoAAAAADGV4Y2hhbmdlUmF0ZQAAAAAAAAAACgAAAAAXZXhjaGFuZ2VSYXRlRGlmZlBlcmNlbnQAAAAAAAAAAAoAAAAAD1VTRE50b1dBVkVTcmF0ZQkAAGsAAAADBQAAAAxleGNoYW5nZVJhdGUJAABlAAAAAgAAAAAAAAAAZAUAAAAXZXhjaGFuZ2VSYXRlRGlmZlBlcmNlbnQAAAAAAAAAAGQAAAAABFVTRE4BAAAAICJkPx6+YEbpEWoTE9ymM/4Wfgf5d+mz8hX8mUkqMAo3AAAAAAVXQVZFUwEAAAAAAAAAAA9VU0ROdG9XQVZFU1JhdGUAAAAAAAAAAAoAAAAADmxvYW5GZWVQZXJjZW50AAAAAAAAAAABAQAAABNleGNoYW5nZVdBVkVTdG9VU0ROAAAAAwAAAAZhbW91bnQAAAAHYXNzZXRJZAAAAAZjYWxsZXIDCQAAAAAAAAIFAAAAB2Fzc2V0SWQFAAAABVdBVkVTCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMJAQAAAAdBZGRy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AtiYWxhbmNlRGlmZgkAAGUAAAACCQAD8AAAAAIFAAAABHRoaXMFAAAABFVTRE4FAAAADHN0YXJ0QmFsYW5jZQQAAAAGcHJvZml0CQAAawAAAAMFAAAABmFtb3VudAUAAAAObG9hbkZlZVBlcmNlbnQAAAAAAAAAAGQDCQAAZgAAAAIFAAAABnByb2ZpdAUAAAALYmFsYW5jZURpZmYJAAACAAAAAQkAASwAAAACCQABLAAAAAIJAAEsAAAAAgIAAAAeRGVidCBub3QgcGFpZCwgYmVjYXVzZSBkaWZmID0gCQABpAAAAAEFAAAAC2JhbGFuY2VEaWZmAgAAABIuIEV4cGVjdGVkIGRpZmYgPSAJAAGkAAAAAQUAAAAGcHJvZml0CQAETAAAAAIJAAACAAAAAQIAAAAEdGVzdAUAAAADbmlsCQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4AAAAAHMmPxQ==", "height": 1979273, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GVgjZRHKREutY2jtfQRpeqdz9fK2m61ky1xSRZKdBjmm Next: 3i1fr3EoLk84CEYiuzsPcVZmXsqpcwK28Wm5MLiv1jYj Diff:
Old | New | Differences | |
---|---|---|---|
68 | 68 | let u = fraction(i, g, 100) | |
69 | 69 | if ((u > z)) | |
70 | 70 | then throw(((("Debt not paid, because diff = " + toString(z)) + ". Expected diff = ") + toString(u))) | |
71 | - | else | |
71 | + | else [throw("test")] | |
72 | 72 | } | |
73 | 73 | else throw("Strict value is not equal to itself.") | |
74 | 74 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 10 | |
5 | 5 | ||
6 | 6 | let b = 10 | |
7 | 7 | ||
8 | 8 | let c = fraction(a, (100 - b), 100) | |
9 | 9 | ||
10 | 10 | let d = base58'3KFXBGGLCjA5Z2DuW4Dq9fDDrHjJJP1ZEkaoajSzuKsC' | |
11 | 11 | ||
12 | 12 | let e = base58'' | |
13 | 13 | ||
14 | 14 | let f = 10 | |
15 | 15 | ||
16 | 16 | let g = 1 | |
17 | 17 | ||
18 | 18 | func h (i,j,k) = if ((j == e)) | |
19 | 19 | then [ScriptTransfer(Address(k), (i / c), d)] | |
20 | 20 | else throw("Unexpected Token") | |
21 | 21 | ||
22 | 22 | ||
23 | 23 | func l (i,j,k) = if ((j == d)) | |
24 | 24 | then [ScriptTransfer(Address(k), (i * f), e)] | |
25 | 25 | else throw("Unexpected Token") | |
26 | 26 | ||
27 | 27 | ||
28 | 28 | func m (n,i,j) = { | |
29 | 29 | let o = if ((j == d)) | |
30 | 30 | then i | |
31 | 31 | else throw("Unexpected payment asset") | |
32 | 32 | let p = assetBalance(this, e) | |
33 | 33 | if ((p == p)) | |
34 | 34 | then { | |
35 | 35 | let q = l(i, j, n) | |
36 | 36 | if ((q == q)) | |
37 | 37 | then { | |
38 | 38 | let r = (assetBalance(this, e) - p) | |
39 | 39 | if ((r == r)) | |
40 | 40 | then { | |
41 | 41 | let s = h(i, e, n) | |
42 | 42 | if ((s == s)) | |
43 | 43 | then { | |
44 | 44 | let t = fraction(o, (100 + g), 100) | |
45 | 45 | let u = (assetBalance(this, d) - t) | |
46 | 46 | [ScriptTransfer(Address(n), u, d), ScriptTransfer(this, t, d)] | |
47 | 47 | } | |
48 | 48 | else throw("Strict value is not equal to itself.") | |
49 | 49 | } | |
50 | 50 | else throw("Strict value is not equal to itself.") | |
51 | 51 | } | |
52 | 52 | else throw("Strict value is not equal to itself.") | |
53 | 53 | } | |
54 | 54 | else throw("Strict value is not equal to itself.") | |
55 | 55 | } | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | @Callable(v) | |
59 | 59 | func flashloan (i,w) = { | |
60 | 60 | let x = assetBalance(this, d) | |
61 | 61 | if ((x == x)) | |
62 | 62 | then { | |
63 | 63 | let n = w | |
64 | 64 | let y = m(fromBase58String(w), i, d) | |
65 | 65 | if ((y == y)) | |
66 | 66 | then { | |
67 | 67 | let z = (assetBalance(this, d) - x) | |
68 | 68 | let u = fraction(i, g, 100) | |
69 | 69 | if ((u > z)) | |
70 | 70 | then throw(((("Debt not paid, because diff = " + toString(z)) + ". Expected diff = ") + toString(u))) | |
71 | - | else | |
71 | + | else [throw("test")] | |
72 | 72 | } | |
73 | 73 | else throw("Strict value is not equal to itself.") | |
74 | 74 | } | |
75 | 75 | else throw("Strict value is not equal to itself.") | |
76 | 76 | } | |
77 | 77 | ||
78 | 78 |
github/deemru/w8io/026f985 46.59 ms ◑