tx · 7G1AZqKYvvbGPzCaSmSpawCCNuhmfkYoiD3qPr8VU4T6 3N61Cvq5XcnPk9rxpy2Rnp3bSr4syNGUJph: -0.01400000 Waves 2021.11.08 21:20 [1782383] smart account 3N61Cvq5XcnPk9rxpy2Rnp3bSr4syNGUJph > SELF 0.00000000 Waves
{ "type": 13, "id": "7G1AZqKYvvbGPzCaSmSpawCCNuhmfkYoiD3qPr8VU4T6", "fee": 1400000, "feeAssetId": null, "timestamp": 1636395624986, "version": 2, "chainId": 84, "sender": "3N61Cvq5XcnPk9rxpy2Rnp3bSr4syNGUJph", "senderPublicKey": "G7cNXePvAHUHmZfXa1eHnvFeH6DuykPC5wm9v9djTKgD", "proofs": [ "3LMEA4pRpDTQsC5rkyAWXGtjEmRWn8nJdbrPbSk2EEkTonmqzFSBurcbxVYWoAyd9WBmiZG6YzwagSK9vqmteJ6A" ], "script": "base64:AAIFAAAAAAAAACEIAhIAEgYKBBgYGBESBgoECAgBARIAEgMKAQgSBAoCCAEAAAAGAAAAAApkZXBvc2l0RmVlAAAAAAAAAAPoAAAAAA1jb250cm9sbGVyRmVlAAAAAAAAACcQAAAAAAtwbGF0Zm9ybUZlZQAAAAAAAAAnEAAAAAAMYWRtaW5QdWJLZXkxAQAAACDgkMh3M2mpU305XK7y5b9J+9C9m7ycRhB7Y2h8D+QzGgAAAAAMYWRtaW5QdWJLZXkyAQAAACDgkMh3M2mpU305XK7y5b9J+9C9m7ycRhB7Y2h8D+QzGgAAAAAMYWRtaW5QdWJLZXkzAQAAACDgkMh3M2mpU305XK7y5b9J+9C9m7ycRhB7Y2h8D+QzGgAAAAYAAAACYTgBAAAABGluaXQAAAAACQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACAgAAADEzUFBIN3g3aXFvYlc1eml5aVJDaWMxOXJRcUtyNm5QWWFLMV9hc3NldF9iYWxhbmNlAAAAAAAAbdStBQAAAANuaWwAAAABaQEAAAAIYWRkUG9vbHMAAAAEAAAABXBvb2xzAA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AAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAAQYW1vdW50V2l0aG91dEZlZQkAAlkAAAABBQAAABVsaXF1aWR1dHlBc3NldEFkZHJlc3MJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIFAAAADXBvb2xBbW91bnRLZXkFAAAADW5ld1Bvb2xBbW91bnQJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIFAAAAEXVzZXJQb29sQW1vdW50S2V5BQAAABFuZXdVc2VyUG9vbEFtb3VudAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgUAAAARdXNlclBvb2xFYXJuZWRLZXkFAAAAD3VzZXJFYXJuZWRUb3RhbAUAAAADbmlsCQAAAgAAAAECAAAAJllvdSBoYXZlIG5vdCBzdWNoIGJhbGFuY2UgZm9yIHdpdGhkcmF3AAAAAQAAAAJiNgEAAAACYjcAAAAACQAB9AAAAAMIBQAAAAJiNgAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAmI2AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAmI2AAAAD3NlbmRlclB1YmxpY0tleXoKjd4=", "height": 1782383, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BReKKxAw7ZFM7mK6Bo5EWhf6xiTMxXvtBjvvYznWyxwt Next: 7UzCmEuo1vb2Y9oB5t1qBigPreAN8YpNZzPGPWf8jjBt Diff:
Old | New | Differences | |
---|---|---|---|
129 | 129 | @Callable(g) | |
130 | 130 | func call () = { | |
131 | 131 | let L = 99999180 | |
132 | - | let M = | |
132 | + | let M = 605030 | |
133 | 133 | let N = 8 | |
134 | 134 | let O = 6 | |
135 | 135 | let P = ((N + O) / 2) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 1000 | |
5 | 5 | ||
6 | 6 | let b = 10000 | |
7 | 7 | ||
8 | 8 | let c = 10000 | |
9 | 9 | ||
10 | 10 | let d = base58'G7cNXePvAHUHmZfXa1eHnvFeH6DuykPC5wm9v9djTKgD' | |
11 | 11 | ||
12 | 12 | let e = base58'G7cNXePvAHUHmZfXa1eHnvFeH6DuykPC5wm9v9djTKgD' | |
13 | 13 | ||
14 | 14 | let f = base58'G7cNXePvAHUHmZfXa1eHnvFeH6DuykPC5wm9v9djTKgD' | |
15 | 15 | ||
16 | 16 | @Callable(g) | |
17 | 17 | func init () = [IntegerEntry("3PPH7x7iqobW5ziyiRCic19rQqKr6nPYaK1_asset_balance", 7197869)] | |
18 | 18 | ||
19 | 19 | ||
20 | 20 | ||
21 | 21 | @Callable(h) | |
22 | 22 | func addPools (i,j,k,l) = if (containsElement([d, e, f], h.callerPublicKey)) | |
23 | 23 | then { | |
24 | 24 | func m (n,o) = IntegerEntry((o + "_asset_balance"), 0) :: n | |
25 | 25 | ||
26 | 26 | func p (n,o) = { | |
27 | 27 | let q = value(indexOf(i, o)) | |
28 | 28 | let r = j[q] | |
29 | 29 | StringEntry((o + "_liquidity_token"), r) :: n | |
30 | 30 | } | |
31 | 31 | ||
32 | 32 | func s (n,o) = { | |
33 | 33 | let q = value(indexOf(i, o)) | |
34 | 34 | let r = k[q] | |
35 | 35 | StringEntry((o + "_service_token"), r) :: n | |
36 | 36 | } | |
37 | 37 | ||
38 | 38 | func t (n,o) = { | |
39 | 39 | let q = value(indexOf(i, o)) | |
40 | 40 | let r = l[q] | |
41 | 41 | IntegerEntry((o + "_service_token"), r) :: n | |
42 | 42 | } | |
43 | 43 | ||
44 | 44 | func u (n,o) = BooleanEntry((o + "_active"), true) :: n | |
45 | 45 | ||
46 | 46 | let v = { | |
47 | 47 | let w = i | |
48 | 48 | let x = size(w) | |
49 | 49 | let y = nil | |
50 | 50 | func z (A,B) = if ((B >= x)) | |
51 | 51 | then A | |
52 | 52 | else m(A, w[B]) | |
53 | 53 | ||
54 | 54 | func C (A,B) = if ((B >= x)) | |
55 | 55 | then A | |
56 | 56 | else throw("List size exceeds 20") | |
57 | 57 | ||
58 | 58 | C(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(y, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
59 | 59 | } | |
60 | 60 | let D = { | |
61 | 61 | let w = i | |
62 | 62 | let x = size(w) | |
63 | 63 | let y = nil | |
64 | 64 | func z (A,B) = if ((B >= x)) | |
65 | 65 | then A | |
66 | 66 | else p(A, w[B]) | |
67 | 67 | ||
68 | 68 | func C (A,B) = if ((B >= x)) | |
69 | 69 | then A | |
70 | 70 | else throw("List size exceeds 20") | |
71 | 71 | ||
72 | 72 | C(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(y, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
73 | 73 | } | |
74 | 74 | let E = { | |
75 | 75 | let w = i | |
76 | 76 | let x = size(w) | |
77 | 77 | let y = nil | |
78 | 78 | func z (A,B) = if ((B >= x)) | |
79 | 79 | then A | |
80 | 80 | else s(A, w[B]) | |
81 | 81 | ||
82 | 82 | func C (A,B) = if ((B >= x)) | |
83 | 83 | then A | |
84 | 84 | else throw("List size exceeds 20") | |
85 | 85 | ||
86 | 86 | C(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(y, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
87 | 87 | } | |
88 | 88 | let F = { | |
89 | 89 | let w = i | |
90 | 90 | let x = size(w) | |
91 | 91 | let y = nil | |
92 | 92 | func z (A,B) = if ((B >= x)) | |
93 | 93 | then A | |
94 | 94 | else t(A, w[B]) | |
95 | 95 | ||
96 | 96 | func C (A,B) = if ((B >= x)) | |
97 | 97 | then A | |
98 | 98 | else throw("List size exceeds 20") | |
99 | 99 | ||
100 | 100 | C(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(y, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
101 | 101 | } | |
102 | 102 | let G = { | |
103 | 103 | let w = i | |
104 | 104 | let x = size(w) | |
105 | 105 | let y = nil | |
106 | 106 | func z (A,B) = if ((B >= x)) | |
107 | 107 | then A | |
108 | 108 | else u(A, w[B]) | |
109 | 109 | ||
110 | 110 | func C (A,B) = if ((B >= x)) | |
111 | 111 | then A | |
112 | 112 | else throw("List size exceeds 20") | |
113 | 113 | ||
114 | 114 | C(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(y, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
115 | 115 | } | |
116 | 116 | ((((v ++ D) ++ E) ++ F) ++ G) | |
117 | 117 | } | |
118 | 118 | else throw("Only admin can call this function") | |
119 | 119 | ||
120 | 120 | ||
121 | 121 | ||
122 | 122 | @Callable(h) | |
123 | 123 | func issueToken (H,I,J,K) = if (containsElement([d, e, f], h.callerPublicKey)) | |
124 | 124 | then [Issue(H, I, J, K, true, unit, 0)] | |
125 | 125 | else throw("Only admin can call this function") | |
126 | 126 | ||
127 | 127 | ||
128 | 128 | ||
129 | 129 | @Callable(g) | |
130 | 130 | func call () = { | |
131 | 131 | let L = 99999180 | |
132 | - | let M = | |
132 | + | let M = 605030 | |
133 | 133 | let N = 8 | |
134 | 134 | let O = 6 | |
135 | 135 | let P = ((N + O) / 2) | |
136 | 136 | let Q = pow(L, N, 5, 1, N, DOWN) | |
137 | 137 | let R = pow(M, O, 5, 1, O, DOWN) | |
138 | 138 | let S = pow(10, 0, P, 0, 0, DOWN) | |
139 | 139 | let T = fraction(Q, R, S) | |
140 | 140 | [IntegerEntry("fisrt", Q), IntegerEntry("second", R), IntegerEntry("third", S), IntegerEntry("fouth", T)] | |
141 | 141 | } | |
142 | 142 | ||
143 | 143 | ||
144 | 144 | ||
145 | 145 | @Callable(h) | |
146 | 146 | func deposit (o) = { | |
147 | 147 | let U = h.payments[0].amount | |
148 | 148 | let V = h.payments[0].assetId | |
149 | 149 | let W = { | |
150 | 150 | let X = V | |
151 | 151 | if ($isInstanceOf(X, "ByteVector")) | |
152 | 152 | then { | |
153 | 153 | let Y = X | |
154 | 154 | toBase58String(Y) | |
155 | 155 | } | |
156 | 156 | else throw("Match error") | |
157 | 157 | } | |
158 | 158 | if ((size(h.payments) != 1)) | |
159 | 159 | then throw("One attached payment expected") | |
160 | 160 | else if ((0 >= U)) | |
161 | 161 | then throw(("Deposit amount must be positive. Actual: " + toString(U))) | |
162 | 162 | else { | |
163 | 163 | let Z = (o + "_asset_balance") | |
164 | 164 | let aa = toString(h.caller) | |
165 | 165 | let ab = (((o + "_") + aa) + "_asset_balance") | |
166 | 166 | let ac = { | |
167 | 167 | let X = getString((o + "_service_token")) | |
168 | 168 | if ($isInstanceOf(X, "String")) | |
169 | 169 | then { | |
170 | 170 | let ad = X | |
171 | 171 | ad | |
172 | 172 | } | |
173 | 173 | else { | |
174 | 174 | let ae = X | |
175 | 175 | throw("You try to deposit on unsupported pool") | |
176 | 176 | } | |
177 | 177 | } | |
178 | 178 | let af = getStringValue(this, (o + "_liquidity_token")) | |
179 | 179 | let ag = { | |
180 | 180 | let X = assetInfo(fromBase58String(af)) | |
181 | 181 | if ($isInstanceOf(X, "Asset")) | |
182 | 182 | then { | |
183 | 183 | let ah = X | |
184 | 184 | ah.decimals | |
185 | 185 | } | |
186 | 186 | else throw("Can't find asset") | |
187 | 187 | } | |
188 | 188 | if ((af != W)) | |
189 | 189 | then throw("You attached wrong liquidity token from Swop.fi") | |
190 | 190 | else { | |
191 | 191 | let ai = getIntegerValue(this, Z) | |
192 | 192 | let aj = { | |
193 | 193 | let X = getInteger(ab) | |
194 | 194 | if ($isInstanceOf(X, "Int")) | |
195 | 195 | then { | |
196 | 196 | let ak = X | |
197 | 197 | ak | |
198 | 198 | } | |
199 | 199 | else { | |
200 | 200 | let ae = X | |
201 | 201 | 0 | |
202 | 202 | } | |
203 | 203 | } | |
204 | 204 | let al = (ai + U) | |
205 | 205 | let am = ((U - fraction(U, 1, a, HALFUP)) - fraction(U, 1, b, HALFUP)) | |
206 | 206 | let an = (aj + am) | |
207 | 207 | [Reissue(fromBase58String(ac), am, true), ScriptTransfer(h.caller, am, fromBase58String(ac)), IntegerEntry(Z, al), IntegerEntry(ab, an)] | |
208 | 208 | } | |
209 | 209 | } | |
210 | 210 | } | |
211 | 211 | ||
212 | 212 | ||
213 | 213 | ||
214 | 214 | @Callable(h) | |
215 | 215 | func withdraw (o,ao) = { | |
216 | 216 | let U = h.payments[0].amount | |
217 | 217 | let V = h.payments[0].assetId | |
218 | 218 | let W = { | |
219 | 219 | let X = V | |
220 | 220 | if ($isInstanceOf(X, "ByteVector")) | |
221 | 221 | then { | |
222 | 222 | let Y = X | |
223 | 223 | toBase58String(Y) | |
224 | 224 | } | |
225 | 225 | else throw("Match error") | |
226 | 226 | } | |
227 | 227 | if ((size(h.payments) != 1)) | |
228 | 228 | then throw("One attached payment expected") | |
229 | 229 | else if ((0 >= U)) | |
230 | 230 | then throw(("Withdraw amount must be positive. Actual: " + toString(U))) | |
231 | 231 | else { | |
232 | 232 | let Z = (o + "_asset_balance") | |
233 | 233 | let aa = toString(h.caller) | |
234 | 234 | let ab = (((o + "_") + aa) + "_asset_balance") | |
235 | 235 | let ap = (((o + "_") + aa) + "_earned") | |
236 | 236 | let ac = { | |
237 | 237 | let X = getString((o + "_service_token")) | |
238 | 238 | if ($isInstanceOf(X, "String")) | |
239 | 239 | then { | |
240 | 240 | let ad = X | |
241 | 241 | ad | |
242 | 242 | } | |
243 | 243 | else { | |
244 | 244 | let ae = X | |
245 | 245 | throw("You try to withdraw from unsupported pool") | |
246 | 246 | } | |
247 | 247 | } | |
248 | 248 | if ((ac != W)) | |
249 | 249 | then throw("You attached an wrong token") | |
250 | 250 | else { | |
251 | 251 | let ai = getIntegerValue(this, Z) | |
252 | 252 | let aj = { | |
253 | 253 | let X = getInteger(ab) | |
254 | 254 | if ($isInstanceOf(X, "Int")) | |
255 | 255 | then { | |
256 | 256 | let ak = X | |
257 | 257 | ak | |
258 | 258 | } | |
259 | 259 | else { | |
260 | 260 | let ae = X | |
261 | 261 | 0 | |
262 | 262 | } | |
263 | 263 | } | |
264 | 264 | let aq = { | |
265 | 265 | let X = getInteger(ap) | |
266 | 266 | if ($isInstanceOf(X, "Int")) | |
267 | 267 | then { | |
268 | 268 | let ak = X | |
269 | 269 | ak | |
270 | 270 | } | |
271 | 271 | else { | |
272 | 272 | let ae = X | |
273 | 273 | 0 | |
274 | 274 | } | |
275 | 275 | } | |
276 | 276 | let af = getStringValue(this, (o + "_liquidity_token")) | |
277 | 277 | let ag = { | |
278 | 278 | let X = assetInfo(fromBase58String(af)) | |
279 | 279 | if ($isInstanceOf(X, "Asset")) | |
280 | 280 | then { | |
281 | 281 | let ah = X | |
282 | 282 | ah.decimals | |
283 | 283 | } | |
284 | 284 | else throw("Can't find asset") | |
285 | 285 | } | |
286 | 286 | let ar = (ao + aq) | |
287 | 287 | let as = ((U - fraction(U, 1, c, HALFUP)) - fraction(U, 1, b, HALFUP)) | |
288 | 288 | let al = (ai - as) | |
289 | 289 | if ((aj >= U)) | |
290 | 290 | then { | |
291 | 291 | let an = (aj - as) | |
292 | 292 | [Burn(fromBase58String(ac), as), ScriptTransfer(h.caller, as, fromBase58String(af)), IntegerEntry(Z, al), IntegerEntry(ab, an), IntegerEntry(ap, ar)] | |
293 | 293 | } | |
294 | 294 | else throw("You have not such balance for withdraw") | |
295 | 295 | } | |
296 | 296 | } | |
297 | 297 | } | |
298 | 298 | ||
299 | 299 | ||
300 | 300 | @Verifier(at) | |
301 | 301 | func au () = sigVerify(at.bodyBytes, at.proofs[0], at.senderPublicKey) | |
302 | 302 |
github/deemru/w8io/169f3d6 39.48 ms ◑