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