tx · 7kApSDUeDfacUiKrBFh6BKf7mQzGc7b4eYMZbNkPdPn8 3Mzep1R5kHeC1ecKFkWjuhU3Gw4LAdCib9N: -0.01500000 Waves 2024.02.02 15:53 [2958682] smart account 3Mzep1R5kHeC1ecKFkWjuhU3Gw4LAdCib9N > SELF 0.00000000 Waves
{ "type": 13, "id": "7kApSDUeDfacUiKrBFh6BKf7mQzGc7b4eYMZbNkPdPn8", "fee": 1500000, "feeAssetId": null, "timestamp": 1706878424483, "version": 2, "chainId": 84, "sender": "3Mzep1R5kHeC1ecKFkWjuhU3Gw4LAdCib9N", "senderPublicKey": "41THq9VrFxHEvVGJyz2oMpJQErnSkkqJXpBypSDxa5Mv", "proofs": [ "4jkjikVaE3BJ9ApSxPT9DuSpuDd7dzZdNgNSX1ZCYfPR6wYZvaVCAXjLHorT7x6skr1J7JtMuLBhpBSnzPBH1q1D" ], "script": "base64:BwIkCAISAwoBGBIDCgEYEgQKAgIYEgQKAgIYEgQKAgIYEgQKAgIYJgAHY2hhaW5JZAkAyQECCQDKAQIIBQR0aGlzBWJ5dGVzAAEAAQAIY2hhaW5JZFQBAVQACGNoYWluSWRXAQFXAANTRVACAl9fAAVXQVZFUwIFV0FWRVMAEGNvbnRyYWN0RmlsZW5hbWUCFXd4ZGFvX2NhbGN1bGF0b3IucmlkZQAFbXVsdDgAgMLXLwAGbXVsdDE4CQC2AgEAgICQu7rWrfANAA13YXZlc0RlY2ltYWxzAAgADHVzZHREZWNpbWFscwAGAQV0b1gxOAIHb3JpZ1ZhbA1vcmlnU2NhbGVNdWx0CQC8AgMJALYCAQUHb3JpZ1ZhbAUGbXVsdDE4CQC2AgEFDW9yaWdTY2FsZU11bHQBB2Zyb21YMTgCA3ZhbA9yZXN1bHRTY2FsZU11bHQJAKADAQkAvAIDBQN2YWwJALYCAQUPcmVzdWx0U2NhbGVNdWx0BQZtdWx0MTgBB3dyYXBFcnIBAXMJAKwCAgkArAICBRBjb250cmFjdEZpbGVuYW1lAgI6IAUB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hc3VyeVZhbHVlRGlmZgkAzAgCAAAFA25pbAACCQBoAgDoBwUJcHdyQW1vdW50CQCUCgIFA25pbAkAzAgCBQVwcmljZQkAzAgCBQhwd3JQcmljZQkAzAgCBRdmYWN0b3J5QWRkcmVzc1d4QmFsYW5jZQkAzAgCBQd3eFByaWNlCQDMCAIFDXd4ZGFvUXVhbnRpdHkJAMwIAgURdHJlYXN1cnlWYWx1ZURpZmYJAMwIAgUJcHdyQW1vdW50BQNuaWwBaQEQZ2V0VHJlYXN1cnlWYWx1ZQIPY2FsbGVyUHVibGljS2V5BGFyZ3MEDmZhY3RvcnlBZGRyZXNzCAUBaQZjYWxsZXIEDXRyZWFzdXJ5VmFsdWUJAQdmcm9tWDE4AgkBEWNhbGNUcmVhc3VyeVZhbHVlAQUOZmFjdG9yeUFkZHJlc3MJAGwGAAoAAAUMdXNkdERlY2ltYWxzAAAAAAUERE9XTgkAlAoCBQNuaWwFDXRyZWFzdXJ5VmFsdWUBAnR4AQZ2ZXJpZnkACQAAAgUHY2hhaW5JZAUIY2hhaW5JZFRYde35", "height": 2958682, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9Baxx6DZuzk5XtHq4M33gUa7AX4drJS94JuNxzdoP9ew Next: 3iP4L2rBh2y71LUyNFvSW5QSsy2rqEaX6Z7MhRfWvkYS Diff:
Old | New | Differences | |
---|---|---|---|
467 | 467 | let bp = valueOrElse(getInteger(I(D), z(A)), 0) | |
468 | 468 | let bq = (R(Q(D)).quantity / 100) | |
469 | 469 | let be = (bp + bq) | |
470 | - | let br = T(D, [toBase58String( | |
470 | + | let br = T(D, [toBase58String(t)])[0] | |
471 | 471 | let bs = if ((br > toBigInt(0))) | |
472 | 472 | then n(br, pow(10, 0, j, 0, 0, DOWN)) | |
473 | 473 | else s("invalid factory wx balance") | |
499 | 499 | let bp = valueOrElse(getInteger(I(D), z(A)), 0) | |
500 | 500 | let bq = (R(Q(D)).quantity / 100) | |
501 | 501 | let be = (bp + bq) | |
502 | - | let br = T(D, [toBase58String( | |
502 | + | let br = T(D, [toBase58String(t)])[0] | |
503 | 503 | let bs = if ((br > toBigInt(0))) | |
504 | 504 | then n(br, pow(10, 0, j, 0, 0, DOWN)) | |
505 | 505 | else s("invalid factory wx balance") |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 7 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = take(drop(this.bytes, 1), 1) | |
5 | 5 | ||
6 | 6 | let b = base58'2T' | |
7 | 7 | ||
8 | 8 | let c = base58'2W' | |
9 | 9 | ||
10 | 10 | let d = "__" | |
11 | 11 | ||
12 | 12 | let e = "WAVES" | |
13 | 13 | ||
14 | 14 | let f = "wxdao_calculator.ride" | |
15 | 15 | ||
16 | 16 | let g = 100000000 | |
17 | 17 | ||
18 | 18 | let h = toBigInt(1000000000000000000) | |
19 | 19 | ||
20 | 20 | let i = 8 | |
21 | 21 | ||
22 | 22 | let j = 6 | |
23 | 23 | ||
24 | 24 | func k (l,m) = fraction(toBigInt(l), h, toBigInt(m)) | |
25 | 25 | ||
26 | 26 | ||
27 | 27 | func n (o,p) = toInt(fraction(o, toBigInt(p), h)) | |
28 | 28 | ||
29 | 29 | ||
30 | 30 | func q (r) = ((f + ": ") + r) | |
31 | 31 | ||
32 | 32 | ||
33 | 33 | func s (r) = throw(q(r)) | |
34 | 34 | ||
35 | 35 | ||
36 | 36 | let t = if ((a == c)) | |
37 | 37 | then base58'Atqv59EYzjFGuitKVnMRk6H8FukjoV3ktPorbEys25on' | |
38 | 38 | else if ((a == b)) | |
39 | 39 | then base58'EMAMLxDnv3xiz8RXg8Btj33jcEw3wLczL3JKYYmuubpc' | |
40 | 40 | else s("invalid chain id") | |
41 | 41 | ||
42 | 42 | func u () = makeString(["%s", "currentPeriod"], d) | |
43 | 43 | ||
44 | 44 | ||
45 | 45 | func v (w) = makeString(["%s%d", "startHeight", toString(w)], d) | |
46 | 46 | ||
47 | 47 | ||
48 | 48 | func x () = makeString(["%s", "periodLength"], d) | |
49 | 49 | ||
50 | 50 | ||
51 | 51 | func y (w) = makeString(["%s%d", "treasuryValue", toString(w)], d) | |
52 | 52 | ||
53 | 53 | ||
54 | 54 | func z (A) = ("skin_total_" + toString(A)) | |
55 | 55 | ||
56 | 56 | ||
57 | 57 | func B () = "%s__powerConfigAddress" | |
58 | 58 | ||
59 | 59 | ||
60 | 60 | func C (D) = valueOrErrorMessage({ | |
61 | 61 | let E = getString(D, B()) | |
62 | 62 | if ($isInstanceOf(E, "String")) | |
63 | 63 | then { | |
64 | 64 | let r = E | |
65 | 65 | addressFromString(r) | |
66 | 66 | } | |
67 | 67 | else if ($isInstanceOf(E, "Unit")) | |
68 | 68 | then unit | |
69 | 69 | else throw("Match error") | |
70 | 70 | }, q("invalid power config address")) | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | func F () = "powerAssetId" | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | func G (D) = fromBase58String(valueOrErrorMessage(getString(C(D), F()), q("invalid power asset id"))) | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | func H () = "%s__powerContractAddress" | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | func I (D) = valueOrErrorMessage({ | |
83 | 83 | let E = getString(D, H()) | |
84 | 84 | if ($isInstanceOf(E, "String")) | |
85 | 85 | then { | |
86 | 86 | let r = E | |
87 | 87 | addressFromString(r) | |
88 | 88 | } | |
89 | 89 | else if ($isInstanceOf(E, "Unit")) | |
90 | 90 | then unit | |
91 | 91 | else throw("Match error") | |
92 | 92 | }, q("invalid power contract address")) | |
93 | 93 | ||
94 | 94 | ||
95 | 95 | func J () = "%s__poolsFactoryAddress" | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | func K (D) = valueOrErrorMessage({ | |
99 | 99 | let E = getString(D, J()) | |
100 | 100 | if ($isInstanceOf(E, "String")) | |
101 | 101 | then { | |
102 | 102 | let r = E | |
103 | 103 | addressFromString(r) | |
104 | 104 | } | |
105 | 105 | else if ($isInstanceOf(E, "Unit")) | |
106 | 106 | then unit | |
107 | 107 | else throw("Match error") | |
108 | 108 | }, q("invalid pools factory address")) | |
109 | 109 | ||
110 | 110 | ||
111 | 111 | func L () = "%s__treasuryAddress" | |
112 | 112 | ||
113 | 113 | ||
114 | 114 | func M (D) = valueOrErrorMessage({ | |
115 | 115 | let E = getString(D, L()) | |
116 | 116 | if ($isInstanceOf(E, "String")) | |
117 | 117 | then { | |
118 | 118 | let r = E | |
119 | 119 | addressFromString(r) | |
120 | 120 | } | |
121 | 121 | else if ($isInstanceOf(E, "Unit")) | |
122 | 122 | then unit | |
123 | 123 | else throw("Match error") | |
124 | 124 | }, q("invalid treasury address")) | |
125 | 125 | ||
126 | 126 | ||
127 | 127 | func N () = "%s__assets" | |
128 | 128 | ||
129 | 129 | ||
130 | 130 | func O (D) = valueOrErrorMessage(getString(D, N()), q("invalid assets")) | |
131 | 131 | ||
132 | 132 | ||
133 | 133 | func P () = "%s__lpAssetId" | |
134 | 134 | ||
135 | 135 | ||
136 | 136 | func Q (D) = fromBase58String(valueOrErrorMessage(getString(D, P()), q("invalid lp asset id"))) | |
137 | 137 | ||
138 | 138 | ||
139 | 139 | func R (S) = valueOrErrorMessage(assetInfo(S), q("invalid asset info")) | |
140 | 140 | ||
141 | 141 | ||
142 | 142 | func T (U,V) = { | |
143 | 143 | func W (X,Y) = { | |
144 | 144 | let Z = if ((Y == e)) | |
145 | 145 | then k(wavesBalance(U).available, pow(10, 0, i, 0, 0, DOWN)) | |
146 | 146 | else { | |
147 | 147 | let S = fromBase58String(Y) | |
148 | 148 | let aa = R(S).decimals | |
149 | 149 | k(assetBalance(U, S), pow(10, 0, aa, 0, 0, DOWN)) | |
150 | 150 | } | |
151 | 151 | (X :+ Z) | |
152 | 152 | } | |
153 | 153 | ||
154 | 154 | let ab = V | |
155 | 155 | let ac = size(ab) | |
156 | 156 | let ad = nil | |
157 | 157 | func ae (af,ag) = if ((ag >= ac)) | |
158 | 158 | then af | |
159 | 159 | else W(af, ab[ag]) | |
160 | 160 | ||
161 | 161 | func ah (af,ag) = if ((ag >= ac)) | |
162 | 162 | then af | |
163 | 163 | else throw("List size exceeds 10") | |
164 | 164 | ||
165 | 165 | ah(ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(ad, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
166 | 166 | } | |
167 | 167 | ||
168 | 168 | ||
169 | 169 | func ai (aj,V) = if ((a == c)) | |
170 | 170 | then { | |
171 | 171 | let ak = "3PKfrupEydU2nZAghVjZAfvCwMBkzuR1F52" | |
172 | 172 | let al = parseBigIntValue({ | |
173 | 173 | let am = invoke(aj, "getPrice", [ak], nil) | |
174 | 174 | if ($isInstanceOf(am, "String")) | |
175 | 175 | then am | |
176 | 176 | else throw(($getType(am) + " couldn't be cast to String")) | |
177 | 177 | }) | |
178 | 178 | let an = "3PPZWgFNRKHLvM51pwS934C8VZ7d2F4Z58g" | |
179 | 179 | let ao = parseBigIntValue({ | |
180 | 180 | let am = invoke(aj, "getPrice", [an], nil) | |
181 | 181 | if ($isInstanceOf(am, "String")) | |
182 | 182 | then am | |
183 | 183 | else throw(($getType(am) + " couldn't be cast to String")) | |
184 | 184 | }) | |
185 | 185 | let ap = fraction(al, h, ao) | |
186 | 186 | func W (X,aq) = { | |
187 | 187 | let ar = { | |
188 | 188 | let E = aq | |
189 | 189 | if (("2thsACuHmzDMuNezPM32wg9a3BwUzBWDeSKakgz3cw21" == E)) | |
190 | 190 | then { | |
191 | 191 | let as = "3PDi7Qq8pLQYvtKyTfQuqqPUWyhoYbU957t" | |
192 | 192 | let at = parseBigIntValue({ | |
193 | 193 | let am = invoke(aj, "getPrice", [as], nil) | |
194 | 194 | if ($isInstanceOf(am, "String")) | |
195 | 195 | then am | |
196 | 196 | else throw(($getType(am) + " couldn't be cast to String")) | |
197 | 197 | }) | |
198 | 198 | fraction(at, al, h) | |
199 | 199 | } | |
200 | 200 | else if (("Atqv59EYzjFGuitKVnMRk6H8FukjoV3ktPorbEys25on" == E)) | |
201 | 201 | then { | |
202 | 202 | let au = "3PFzaH2ghpwANHFgjeva83N1yxzErELx2eh" | |
203 | 203 | let av = parseBigIntValue({ | |
204 | 204 | let am = invoke(aj, "getPrice", [au], nil) | |
205 | 205 | if ($isInstanceOf(am, "String")) | |
206 | 206 | then am | |
207 | 207 | else throw(($getType(am) + " couldn't be cast to String")) | |
208 | 208 | }) | |
209 | 209 | fraction(av, al, h) | |
210 | 210 | } | |
211 | 211 | else if (("34N9YcEETLWn93qYQ64EsP1x89tSruJU44RrEMSXXEPJ" == E)) | |
212 | 212 | then { | |
213 | 213 | let aw = "3PKMVZ7kQeaREajYi8Yc25Ro6mcNw5D6QSa" | |
214 | 214 | let ax = parseBigIntValue({ | |
215 | 215 | let am = invoke(aj, "getPrice", [aw], nil) | |
216 | 216 | if ($isInstanceOf(am, "String")) | |
217 | 217 | then am | |
218 | 218 | else throw(($getType(am) + " couldn't be cast to String")) | |
219 | 219 | }) | |
220 | 220 | fraction(al, h, ax) | |
221 | 221 | } | |
222 | 222 | else if (("6XtHjpXbs9RRJP2Sr9GUyVqzACcby9TkThHXnjVC5CDJ" == E)) | |
223 | 223 | then { | |
224 | 224 | let ay = "3P3g3eipfG2NZKKQE8DZXt2E9tRJqii9jcX" | |
225 | 225 | let az = parseBigIntValue({ | |
226 | 226 | let am = invoke(aj, "getPrice", [ay], nil) | |
227 | 227 | if ($isInstanceOf(am, "String")) | |
228 | 228 | then am | |
229 | 229 | else throw(($getType(am) + " couldn't be cast to String")) | |
230 | 230 | }) | |
231 | 231 | fraction(al, h, az) | |
232 | 232 | } | |
233 | 233 | else if (("HZk1mbfuJpmxU1Fs4AX5MWLVYtctsNcg6e2C6VKqK8zk" == E)) | |
234 | 234 | then { | |
235 | 235 | let aA = "3P94wvu5gA7VhjPgAB3twaeqdwHCwNK2vsn" | |
236 | 236 | let aB = parseBigIntValue({ | |
237 | 237 | let am = invoke(aj, "getPrice", [aA], nil) | |
238 | 238 | if ($isInstanceOf(am, "String")) | |
239 | 239 | then am | |
240 | 240 | else throw(($getType(am) + " couldn't be cast to String")) | |
241 | 241 | }) | |
242 | 242 | fraction(aB, ap, h) | |
243 | 243 | } | |
244 | 244 | else if (("474jTeYx2r2Va35794tCScAXWJG9hU2HcgxzMowaZUnu" == E)) | |
245 | 245 | then { | |
246 | 246 | let aC = "3P3XGTN6s292g9iwYhs3TEqJqHiffQYojuE" | |
247 | 247 | let aD = parseBigIntValue({ | |
248 | 248 | let am = invoke(aj, "getPrice", [aC], nil) | |
249 | 249 | if ($isInstanceOf(am, "String")) | |
250 | 250 | then am | |
251 | 251 | else throw(($getType(am) + " couldn't be cast to String")) | |
252 | 252 | }) | |
253 | 253 | fraction(aD, al, h) | |
254 | 254 | } | |
255 | 255 | else if (("8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS" == E)) | |
256 | 256 | then { | |
257 | 257 | let aE = "3PCBWDTA6jrFswd7gQgaE3Xk7gLM5RKofvp" | |
258 | 258 | let aF = parseBigIntValue({ | |
259 | 259 | let am = invoke(aj, "getPrice", [aE], nil) | |
260 | 260 | if ($isInstanceOf(am, "String")) | |
261 | 261 | then am | |
262 | 262 | else throw(($getType(am) + " couldn't be cast to String")) | |
263 | 263 | }) | |
264 | 264 | fraction(aF, ap, h) | |
265 | 265 | } | |
266 | 266 | else s("invalid asset id") | |
267 | 267 | } | |
268 | 268 | (X :+ ar) | |
269 | 269 | } | |
270 | 270 | ||
271 | 271 | let ab = V | |
272 | 272 | let ac = size(ab) | |
273 | 273 | let ad = nil | |
274 | 274 | func ae (af,ag) = if ((ag >= ac)) | |
275 | 275 | then af | |
276 | 276 | else W(af, ab[ag]) | |
277 | 277 | ||
278 | 278 | func ah (af,ag) = if ((ag >= ac)) | |
279 | 279 | then af | |
280 | 280 | else throw("List size exceeds 10") | |
281 | 281 | ||
282 | 282 | ah(ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(ad, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
283 | 283 | } | |
284 | 284 | else if ((a == b)) | |
285 | 285 | then { | |
286 | 286 | func W (X,aq) = { | |
287 | 287 | let ar = { | |
288 | 288 | let E = aq | |
289 | 289 | if (("EMAMLxDnv3xiz8RXg8Btj33jcEw3wLczL3JKYYmuubpc" == E)) | |
290 | 290 | then { | |
291 | 291 | let aG = "3MrULQRLc52GWrJF1tMcAm4M78fPe57o9Kt" | |
292 | 292 | let aH = parseBigIntValue({ | |
293 | 293 | let am = invoke(aj, "getPrice", [aG], nil) | |
294 | 294 | if ($isInstanceOf(am, "String")) | |
295 | 295 | then am | |
296 | 296 | else throw(($getType(am) + " couldn't be cast to String")) | |
297 | 297 | }) | |
298 | 298 | aH | |
299 | 299 | } | |
300 | 300 | else if (("A7Ksh7fXyqm1KhKAiK3bAB2aiPSitQQF6v1pyu9SS3FR" == E)) | |
301 | 301 | then { | |
302 | 302 | let aI = "3MzKSdTH2jFbypLsoNfrH7QgkzSbx3EYwCA" | |
303 | 303 | let aJ = parseBigIntValue({ | |
304 | 304 | let am = invoke(aj, "getPrice", [aI], nil) | |
305 | 305 | if ($isInstanceOf(am, "String")) | |
306 | 306 | then am | |
307 | 307 | else throw(($getType(am) + " couldn't be cast to String")) | |
308 | 308 | }) | |
309 | 309 | aJ | |
310 | 310 | } | |
311 | 311 | else if (("8Q6SE2ANebufw8JuPjJVRjZD6drD8ihjNjM8xaGUSfdR" == E)) | |
312 | 312 | then { | |
313 | 313 | let ar = toBigInt(100000000) | |
314 | 314 | ar | |
315 | 315 | } | |
316 | 316 | else s("invalid asset id") | |
317 | 317 | } | |
318 | 318 | (X :+ ar) | |
319 | 319 | } | |
320 | 320 | ||
321 | 321 | let ab = V | |
322 | 322 | let ac = size(ab) | |
323 | 323 | let ad = nil | |
324 | 324 | func ae (af,ag) = if ((ag >= ac)) | |
325 | 325 | then af | |
326 | 326 | else W(af, ab[ag]) | |
327 | 327 | ||
328 | 328 | func ah (af,ag) = if ((ag >= ac)) | |
329 | 329 | then af | |
330 | 330 | else throw("List size exceeds 10") | |
331 | 331 | ||
332 | 332 | ah(ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(ad, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
333 | 333 | } | |
334 | 334 | else s("invalid chain id") | |
335 | 335 | ||
336 | 336 | ||
337 | 337 | func aK (D) = { | |
338 | 338 | let A = M(D) | |
339 | 339 | let aj = K(D) | |
340 | 340 | let aL = split(O(D), d) | |
341 | 341 | let aM = T(A, aL) | |
342 | 342 | let aN = ai(aj, aL) | |
343 | 343 | func aO (X,Y) = { | |
344 | 344 | let S = fromBase58String(Y) | |
345 | 345 | let aP = valueOrErrorMessage(indexOf(aL, Y), q("invalid asset id")) | |
346 | 346 | let Z = aM[aP] | |
347 | 347 | let ar = aN[aP] | |
348 | 348 | let aQ = fraction(Z, ar, h) | |
349 | 349 | (X + aQ) | |
350 | 350 | } | |
351 | 351 | ||
352 | 352 | let aR = { | |
353 | 353 | let ab = aL | |
354 | 354 | let ac = size(ab) | |
355 | 355 | let ad = toBigInt(0) | |
356 | 356 | func ae (af,ag) = if ((ag >= ac)) | |
357 | 357 | then af | |
358 | 358 | else aO(af, ab[ag]) | |
359 | 359 | ||
360 | 360 | func ah (af,ag) = if ((ag >= ac)) | |
361 | 361 | then af | |
362 | 362 | else throw("List size exceeds 10") | |
363 | 363 | ||
364 | 364 | ah(ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(ad, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
365 | 365 | } | |
366 | 366 | aR | |
367 | 367 | } | |
368 | 368 | ||
369 | 369 | ||
370 | 370 | @Callable(aS) | |
371 | 371 | func withdraw (aT) = { | |
372 | 372 | let aU = addressFromStringValue(aT[0]) | |
373 | 373 | let aV = parseIntValue(aT[1]) | |
374 | 374 | let aW = invoke(aS.caller, "transferWaves", [aU.bytes, aV], nil) | |
375 | 375 | $Tuple2(nil, aW) | |
376 | 376 | } | |
377 | 377 | ||
378 | 378 | ||
379 | 379 | ||
380 | 380 | @Callable(aS) | |
381 | 381 | func setIntParam (aT) = { | |
382 | 382 | let aX = aT[0] | |
383 | 383 | let o = parseIntValue(aT[1]) | |
384 | 384 | let aW = invoke(aS.caller, "integerEntry", [aX, o], nil) | |
385 | 385 | $Tuple2(nil, aW) | |
386 | 386 | } | |
387 | 387 | ||
388 | 388 | ||
389 | 389 | ||
390 | 390 | @Callable(aS) | |
391 | 391 | func swap (aY,aT) = { | |
392 | 392 | let D = aS.caller | |
393 | 393 | let aZ = addressFromPublicKey(aY) | |
394 | 394 | let ba = if ((size(aS.payments) == 1)) | |
395 | 395 | then aS.payments[0] | |
396 | 396 | else s("1 payment is required") | |
397 | 397 | let bb = q("invalid payment asset id") | |
398 | 398 | let bc = if ((valueOrErrorMessage(ba.assetId, bb) == Q(D))) | |
399 | 399 | then value(ba.assetId) | |
400 | 400 | else s(bb) | |
401 | 401 | let bd = 100 | |
402 | 402 | let be = (ba.amount / bd) | |
403 | 403 | let aL = split(O(D), d) | |
404 | 404 | let bf = assetBalance(D, G(D)) | |
405 | 405 | if ((bf == bf)) | |
406 | 406 | then { | |
407 | 407 | let bg = R(Q(D)).quantity | |
408 | 408 | if ((bg == bg)) | |
409 | 409 | then { | |
410 | 410 | let aM = T(D, aL) | |
411 | 411 | func W (X,Y) = { | |
412 | 412 | let S = fromBase58String(Y) | |
413 | 413 | let aP = valueOrErrorMessage(indexOf(aL, Y), q("invalid asset balance")) | |
414 | 414 | let aa = R(S).decimals | |
415 | 415 | let Z = n(aM[aP], pow(10, 0, aa, 0, 0, DOWN)) | |
416 | 416 | let aV = fraction(Z, ba.amount, bg) | |
417 | 417 | if ((aV > 0)) | |
418 | 418 | then $Tuple2((X._1 :+ S), (X._2 :+ aV)) | |
419 | 419 | else X | |
420 | 420 | } | |
421 | 421 | ||
422 | 422 | let bh = { | |
423 | 423 | let ab = aL | |
424 | 424 | let ac = size(ab) | |
425 | 425 | let ad = $Tuple2(nil, nil) | |
426 | 426 | func ae (af,ag) = if ((ag >= ac)) | |
427 | 427 | then af | |
428 | 428 | else W(af, ab[ag]) | |
429 | 429 | ||
430 | 430 | func ah (af,ag) = if ((ag >= ac)) | |
431 | 431 | then af | |
432 | 432 | else throw("List size exceeds 6") | |
433 | 433 | ||
434 | 434 | ah(ae(ae(ae(ae(ae(ae(ad, 0), 1), 2), 3), 4), 5), 6) | |
435 | 435 | } | |
436 | 436 | if ((bh == bh)) | |
437 | 437 | then { | |
438 | 438 | let bi = 0 | |
439 | 439 | let bj = ([invoke(D, "commitAfterStartWithLockRoundFor", [toString(I(D)), toString(D), toString(aZ), bi, G(D), be], nil)] ++ (if ((size(bh._1) == 0)) | |
440 | 440 | then nil | |
441 | 441 | else [invoke(D, "transferAssets", [aZ.bytes, bh._1, bh._2], nil)])) | |
442 | 442 | $Tuple2([Burn(bc, ba.amount)], bj) | |
443 | 443 | } | |
444 | 444 | else throw("Strict value is not equal to itself.") | |
445 | 445 | } | |
446 | 446 | else throw("Strict value is not equal to itself.") | |
447 | 447 | } | |
448 | 448 | else throw("Strict value is not equal to itself.") | |
449 | 449 | } | |
450 | 450 | ||
451 | 451 | ||
452 | 452 | ||
453 | 453 | @Callable(aS) | |
454 | 454 | func price (aY,aT) = { | |
455 | 455 | let D = aS.caller | |
456 | 456 | let aj = K(D) | |
457 | 457 | let bk = valueOrErrorMessage(getInteger(D, u()), q("invalid current period")) | |
458 | 458 | let bl = valueOrErrorMessage(getInteger(D, y(bk)), q(("invalid treasury value for period " + toString(bk)))) | |
459 | 459 | let aR = n(aK(D), pow(10, 0, j, 0, 0, DOWN)) | |
460 | 460 | let bm = (aR - bl) | |
461 | 461 | let bn = G(D) | |
462 | 462 | let bo = ai(aj, [toBase58String(bn)])[0] | |
463 | 463 | let bd = if ((bo > toBigInt(0))) | |
464 | 464 | then n(bo, pow(10, 0, j, 0, 0, DOWN)) | |
465 | 465 | else s("invalid PWR price") | |
466 | 466 | let A = M(D) | |
467 | 467 | let bp = valueOrElse(getInteger(I(D), z(A)), 0) | |
468 | 468 | let bq = (R(Q(D)).quantity / 100) | |
469 | 469 | let be = (bp + bq) | |
470 | - | let br = T(D, [toBase58String( | |
470 | + | let br = T(D, [toBase58String(t)])[0] | |
471 | 471 | let bs = if ((br > toBigInt(0))) | |
472 | 472 | then n(br, pow(10, 0, j, 0, 0, DOWN)) | |
473 | 473 | else s("invalid factory wx balance") | |
474 | 474 | let bt = ai(aj, [toBase58String(t)])[0] | |
475 | 475 | let bu = if ((bt > toBigInt(0))) | |
476 | 476 | then n(bt, pow(10, 0, j, 0, 0, DOWN)) | |
477 | 477 | else s("invalid wx price") | |
478 | 478 | let bg = R(Q(D)).quantity | |
479 | 479 | let ar = (((bd / 100) + fraction(bs, bu, bg)) + fraction(max([bm, 0]), 2, (1000 * be))) | |
480 | 480 | $Tuple2(nil, ar) | |
481 | 481 | } | |
482 | 482 | ||
483 | 483 | ||
484 | 484 | ||
485 | 485 | @Callable(aS) | |
486 | 486 | func priceDebug (aY,aT) = { | |
487 | 487 | let D = aS.caller | |
488 | 488 | let aj = K(D) | |
489 | 489 | let bk = valueOrErrorMessage(getInteger(D, u()), q("invalid current period")) | |
490 | 490 | let bl = valueOrErrorMessage(getInteger(D, y(bk)), q(("invalid treasury value for period " + toString(bk)))) | |
491 | 491 | let aR = n(aK(D), pow(10, 0, j, 0, 0, DOWN)) | |
492 | 492 | let bm = (aR - bl) | |
493 | 493 | let bn = G(D) | |
494 | 494 | let bo = ai(aj, [toBase58String(bn)])[0] | |
495 | 495 | let bd = if ((bo > toBigInt(0))) | |
496 | 496 | then n(bo, pow(10, 0, j, 0, 0, DOWN)) | |
497 | 497 | else s("invalid PWR price") | |
498 | 498 | let A = M(D) | |
499 | 499 | let bp = valueOrElse(getInteger(I(D), z(A)), 0) | |
500 | 500 | let bq = (R(Q(D)).quantity / 100) | |
501 | 501 | let be = (bp + bq) | |
502 | - | let br = T(D, [toBase58String( | |
502 | + | let br = T(D, [toBase58String(t)])[0] | |
503 | 503 | let bs = if ((br > toBigInt(0))) | |
504 | 504 | then n(br, pow(10, 0, j, 0, 0, DOWN)) | |
505 | 505 | else s("invalid factory wx balance") | |
506 | 506 | let bt = ai(aj, [toBase58String(t)])[0] | |
507 | 507 | let bu = if ((bt > toBigInt(0))) | |
508 | 508 | then n(bt, pow(10, 0, j, 0, 0, DOWN)) | |
509 | 509 | else s("invalid wx price") | |
510 | 510 | let bg = R(Q(D)).quantity | |
511 | 511 | let ar = (((bd / 100) + fraction(bs, bu, bg)) + fraction(max([bm, 0]), 2, (1000 * be))) | |
512 | 512 | $Tuple2(nil, [ar, bd, bs, bu, bg, bm, be]) | |
513 | 513 | } | |
514 | 514 | ||
515 | 515 | ||
516 | 516 | ||
517 | 517 | @Callable(aS) | |
518 | 518 | func getTreasuryValue (aY,aT) = { | |
519 | 519 | let D = aS.caller | |
520 | 520 | let aR = n(aK(D), pow(10, 0, j, 0, 0, DOWN)) | |
521 | 521 | $Tuple2(nil, aR) | |
522 | 522 | } | |
523 | 523 | ||
524 | 524 | ||
525 | 525 | @Verifier(bv) | |
526 | 526 | func bw () = (a == b) | |
527 | 527 |
github/deemru/w8io/026f985 56.18 ms ◑