tx · CiDjp7Z5qoJtJ5XavpMGk1kM4rsrtrL7E54b7AktrfZB 3N7AyMYR2ovan7TNvPE9jMRTejZyXPcV9NP: -0.05000000 Waves 2021.08.23 19:15 [1671196] smart account 3N7AyMYR2ovan7TNvPE9jMRTejZyXPcV9NP > SELF 0.00000000 Waves
{ "type": 13, "id": "CiDjp7Z5qoJtJ5XavpMGk1kM4rsrtrL7E54b7AktrfZB", "fee": 5000000, "feeAssetId": null, "timestamp": 1629735345036, "version": 2, "chainId": 84, "sender": "3N7AyMYR2ovan7TNvPE9jMRTejZyXPcV9NP", "senderPublicKey": "Go3xxijfukFnawU9Jyy1yX4dSyxKT9SYT6Tp3g6iTAjt", "proofs": [ "p5UNtdjzTnWTZrrcEmzX56f7wZBENAika4eqBHATvZiPaDycLpB3Fw5py4zARH56PYFEyxSsvf9xSXGp1mzQLfM" ], "script": "base64:AAIFAAAAAAAAAfoIAhIECgIBARIECgIBARoICgJhMRICV1UaCAoCYTISAlNXGggKAmEzEgJTVRoHCgJhNBIBVxoHCgJhNRIBVRoHCgJhNhIBUxoLCgJhNxIFYWRtaW4aDAoCYTgSBnNjYWxlOBoeCgJhORIYY29tbWlzc2lvblNjYWxlRGVsaW1pdGVyGhAKAmIxEgpjb21taXNzaW9uGgoKAmIyEgRmZWVzGgoKAmIzEgRmcm9tGggKAmI0EgJ0bxoKCgJiNRIEYW1udBoWCgJiNhIQYW1vdW50V2l0aG91dEZlZRoTCgJiNxINYW1vdW50V2l0aEZlZRoHCgJiOBIBaRoJCgJiORIDbWluGgkKAmMxEgNlMWEaCQoCYzISA2UxYhoJCgJjMxIDZTJhGgkKAmM0EgNlMmIaCQoCYzUSA2UzYRoJCgJjNhIDZTNiGgkKAmM3EgNiYnUaCQoCYzgSA2JidxoJCgJjORIDYmJzGgoKAmQxEgRkaWZ1GgoKAmQyEgRkaWZzGgoKAmQzEgRkaWZ3GgsKAmQ0EgVzd2FwMRoLCgJkNRIFZGlmZnUaCwoCZDYSBXN3YXAy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3NlbmRlclB1YmxpY0tleTQ+tw0=", "height": 1671196, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DnBq9Q8gpE7Ume3vPDXSU3WHAhhJUrXF3DL7EHLusSY5 Next: 71sAFQK4iHoqYqzPGHyaNJUThHUo5UzTmhTU6Eduyn3r Diff:
Old | New | Differences | |
---|---|---|---|
24 | 24 | func k (l,m,n) = { | |
25 | 25 | let o = fraction(m, n, (n + l)) | |
26 | 26 | let p = fraction(o, (i - j), i) | |
27 | - | p | |
27 | + | (p - 1) | |
28 | 28 | } | |
29 | 29 | ||
30 | 30 | ||
101 | 101 | } | |
102 | 102 | else throw("Strict value is not equal to itself.") | |
103 | 103 | } | |
104 | - | else throw(("difw" + toString(D))) | |
104 | + | else throw(((((("difu= " + toString(B)) + " / difs= ") + toString(C)) + " / difw= ") + toString(D))) | |
105 | 105 | else throw("Strict value is not equal to itself.") | |
106 | 106 | } | |
107 | 107 | else throw("Strict value is not equal to itself.") |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = addressFromStringValue(value("3NDD3ifAC17cLzxuYqsgXDRY9DTQ5BqmvwL")) | |
5 | 5 | ||
6 | 6 | let b = addressFromStringValue(value("3NAzES7pSjfoHsKNumP5HRtSt3qadbqnHip")) | |
7 | 7 | ||
8 | 8 | let c = addressFromStringValue(value("3MrBtdped4oUFs1BvLNu53Dm1AMGiTHkT9B")) | |
9 | 9 | ||
10 | 10 | let d = base58'3Tg4GRpKeek5wWAQRJKH1ucjMuKNom3f2h67WNNu6xVS' | |
11 | 11 | ||
12 | 12 | let e = base58'gAAmMoquySsX6q5EmzciFfB8RecAhZR9W1HKNntNekL' | |
13 | 13 | ||
14 | 14 | let f = base58'89G3XEYzMSztS6RPN5h2da7j43r4zgKufReZWn1MqX7g' | |
15 | 15 | ||
16 | 16 | let g = addressFromStringValue("3N97G98bPF5ghnZ1iMmQ7tMH6MBsNZnS272") | |
17 | 17 | ||
18 | 18 | let h = 100000000 | |
19 | 19 | ||
20 | 20 | let i = 1000000 | |
21 | 21 | ||
22 | 22 | let j = 3000 | |
23 | 23 | ||
24 | 24 | func k (l,m,n) = { | |
25 | 25 | let o = fraction(m, n, (n + l)) | |
26 | 26 | let p = fraction(o, (i - j), i) | |
27 | - | p | |
27 | + | (p - 1) | |
28 | 28 | } | |
29 | 29 | ||
30 | 30 | ||
31 | 31 | @Callable(q) | |
32 | 32 | func call1 (n,r) = if ((q.caller != g)) | |
33 | 33 | then throw("only admin") | |
34 | 34 | else { | |
35 | 35 | let s = getIntegerValue(a, "A_asset_balance") | |
36 | 36 | if ((s == s)) | |
37 | 37 | then { | |
38 | 38 | let t = getIntegerValue(a, "B_asset_balance") | |
39 | 39 | if ((t == t)) | |
40 | 40 | then { | |
41 | 41 | let u = getIntegerValue(c, "A_asset_balance") | |
42 | 42 | if ((u == u)) | |
43 | 43 | then { | |
44 | 44 | let v = getIntegerValue(c, "B_asset_balance") | |
45 | 45 | if ((v == v)) | |
46 | 46 | then { | |
47 | 47 | let w = getIntegerValue(b, "A_asset_balance") | |
48 | 48 | if ((w == w)) | |
49 | 49 | then { | |
50 | 50 | let x = getIntegerValue(b, "B_asset_balance") | |
51 | 51 | if ((x == x)) | |
52 | 52 | then { | |
53 | 53 | let y = assetBalance(this, e) | |
54 | 54 | if ((y == y)) | |
55 | 55 | then { | |
56 | 56 | let z = assetBalance(this, d) | |
57 | 57 | if ((z == z)) | |
58 | 58 | then { | |
59 | 59 | let A = assetBalance(this, f) | |
60 | 60 | if ((A == A)) | |
61 | 61 | then { | |
62 | 62 | let B = k(s, t, (n * h)) | |
63 | 63 | if ((B == B)) | |
64 | 64 | then { | |
65 | 65 | let C = k(v, u, B) | |
66 | 66 | if ((C == C)) | |
67 | 67 | then { | |
68 | 68 | let D = k(w, x, C) | |
69 | 69 | if ((D == D)) | |
70 | 70 | then if ((D > ((n * h) + r))) | |
71 | 71 | then { | |
72 | 72 | let E = invoke(a, "exchange", [1], [AttachedPayment(d, (n * h))]) | |
73 | 73 | if ((E == E)) | |
74 | 74 | then { | |
75 | 75 | let F = (assetBalance(this, e) - y) | |
76 | 76 | if ((F == F)) | |
77 | 77 | then { | |
78 | 78 | let G = invoke(c, "exchange", [1], [AttachedPayment(e, F)]) | |
79 | 79 | if ((G == G)) | |
80 | 80 | then { | |
81 | 81 | let H = (assetBalance(this, f) - A) | |
82 | 82 | if ((H == H)) | |
83 | 83 | then { | |
84 | 84 | let I = invoke(b, "exchange", [1], [AttachedPayment(f, H)]) | |
85 | 85 | if ((I == I)) | |
86 | 86 | then { | |
87 | 87 | let J = (assetBalance(this, d) - z) | |
88 | 88 | if ((J == J)) | |
89 | 89 | then if ((J > r)) | |
90 | 90 | then [IntegerEntry("debug", J)] | |
91 | 91 | else throw(("diffw" + toString(J))) | |
92 | 92 | else throw("Strict value is not equal to itself.") | |
93 | 93 | } | |
94 | 94 | else throw("Strict value is not equal to itself.") | |
95 | 95 | } | |
96 | 96 | else throw("Strict value is not equal to itself.") | |
97 | 97 | } | |
98 | 98 | else throw("Strict value is not equal to itself.") | |
99 | 99 | } | |
100 | 100 | else throw("Strict value is not equal to itself.") | |
101 | 101 | } | |
102 | 102 | else throw("Strict value is not equal to itself.") | |
103 | 103 | } | |
104 | - | else throw(("difw" + toString(D))) | |
104 | + | else throw(((((("difu= " + toString(B)) + " / difs= ") + toString(C)) + " / difw= ") + toString(D))) | |
105 | 105 | else throw("Strict value is not equal to itself.") | |
106 | 106 | } | |
107 | 107 | else throw("Strict value is not equal to itself.") | |
108 | 108 | } | |
109 | 109 | else throw("Strict value is not equal to itself.") | |
110 | 110 | } | |
111 | 111 | else throw("Strict value is not equal to itself.") | |
112 | 112 | } | |
113 | 113 | else throw("Strict value is not equal to itself.") | |
114 | 114 | } | |
115 | 115 | else throw("Strict value is not equal to itself.") | |
116 | 116 | } | |
117 | 117 | else throw("Strict value is not equal to itself.") | |
118 | 118 | } | |
119 | 119 | else throw("Strict value is not equal to itself.") | |
120 | 120 | } | |
121 | 121 | else throw("Strict value is not equal to itself.") | |
122 | 122 | } | |
123 | 123 | else throw("Strict value is not equal to itself.") | |
124 | 124 | } | |
125 | 125 | else throw("Strict value is not equal to itself.") | |
126 | 126 | } | |
127 | 127 | else throw("Strict value is not equal to itself.") | |
128 | 128 | } | |
129 | 129 | ||
130 | 130 | ||
131 | 131 | ||
132 | 132 | @Callable(q) | |
133 | 133 | func call2 (n,r) = if ((q.caller != g)) | |
134 | 134 | then throw("only admin") | |
135 | 135 | else { | |
136 | 136 | let y = assetBalance(this, e) | |
137 | 137 | let z = assetBalance(this, d) | |
138 | 138 | let A = assetBalance(this, f) | |
139 | 139 | if (if (if ((y == y)) | |
140 | 140 | then (z == z) | |
141 | 141 | else false) | |
142 | 142 | then (A == A) | |
143 | 143 | else false) | |
144 | 144 | then { | |
145 | 145 | let E = invoke(b, "exchange", [1], [AttachedPayment(d, (n * h))]) | |
146 | 146 | if ((E == E)) | |
147 | 147 | then { | |
148 | 148 | let H = (assetBalance(this, f) - A) | |
149 | 149 | if ((H == H)) | |
150 | 150 | then { | |
151 | 151 | let G = invoke(c, "exchange", [1], [AttachedPayment(f, H)]) | |
152 | 152 | if ((G == G)) | |
153 | 153 | then { | |
154 | 154 | let F = (assetBalance(this, e) - y) | |
155 | 155 | if ((F == F)) | |
156 | 156 | then { | |
157 | 157 | let I = invoke(a, "exchange", [1], [AttachedPayment(e, F)]) | |
158 | 158 | if ((I == I)) | |
159 | 159 | then { | |
160 | 160 | let J = (assetBalance(this, d) - z) | |
161 | 161 | if ((J == J)) | |
162 | 162 | then if ((J > r)) | |
163 | 163 | then { | |
164 | 164 | let K = "ok" | |
165 | 165 | [IntegerEntry("debug", J)] | |
166 | 166 | } | |
167 | 167 | else throw(toString(J)) | |
168 | 168 | else throw("strict") | |
169 | 169 | } | |
170 | 170 | else throw("strict") | |
171 | 171 | } | |
172 | 172 | else throw("strict") | |
173 | 173 | } | |
174 | 174 | else throw("strict") | |
175 | 175 | } | |
176 | 176 | else throw("strict") | |
177 | 177 | } | |
178 | 178 | else throw("strict") | |
179 | 179 | } | |
180 | 180 | else throw("Strict") | |
181 | 181 | } | |
182 | 182 | ||
183 | 183 | ||
184 | 184 | @Verifier(L) | |
185 | 185 | func M () = sigVerify(L.bodyBytes, L.proofs[0], L.senderPublicKey) | |
186 | 186 |
github/deemru/w8io/169f3d6 45.37 ms ◑