tx · 64f5zkJaF24yPCKzSHp1E3VQGNNzq32NcqAteVbLt1FA 3MqSv5qEvZKapkPQ6hPtUgbZfxdMQexnwqa: -0.01400000 Waves 2024.12.17 12:56 [3418411] smart account 3MqSv5qEvZKapkPQ6hPtUgbZfxdMQexnwqa > SELF 0.00000000 Waves
{ "type": 13, "id": "64f5zkJaF24yPCKzSHp1E3VQGNNzq32NcqAteVbLt1FA", "fee": 1400000, "feeAssetId": null, "timestamp": 1734429290915, "version": 2, "chainId": 84, "sender": "3MqSv5qEvZKapkPQ6hPtUgbZfxdMQexnwqa", "senderPublicKey": "tinwq3CCsobvKT9fhHjTjbxXQdTDmXW9KtgPvR94m1H", "proofs": [ "44FwMi6Zc8iefN8aYmNCVqDve5tdeevCeo1QmJhAgrTwtSrEFGUzkqF4onaqEpW1nvd99pf6KbPSqksuoUTvDNnx" ], "script": "base64:BwJFCAISBAoCCAgSBQoDCAgIEgcKBQgICAgIEgUKAwgICBIJCgcICAgICAgIEgUKAwgICBIGCgQICAgIEgUKAwgICBIDCgEIIQAJU0VQQVJBVE9SAgJfXwAMS0VZX01VTFRJU0lHAghNVUxUSVNJRwAKS0VZX1NUQVRVUwIGU1RBVFVTAAhLRVlfSU5JVAIESU5JVAAUS0VZX0dBVEVXQVlfQ09OVFJBQ1QCEEdBVEVXQVlfQ09OVFJBQ1QAFEtFWV9NQVRDSEVSX0NPTlRSQUNUAhBNQVRDSEVSX0NPTlRSQUNUABBLRVlfVVNFUl9CQUxBTkNFAgxVU0VSX0JBTEFOQ0UAEUtFWV9UT1RBTF9CQUxBTkNFAg1UT1RBTF9CQUxBTkNFAAtTUE9UX1dBTExFVAIEU1BPVAAVU1RBS0lOR19SRVdBUkRfV0FMTEVUAg5TVEFLSU5HX1JFV0FSRAALWkVST19CSUdJTlQJALYCAQAAARBfdmFsaWRhdGVBZGRyZXNzAghhZGRyZXNzXwRlcnJfBAckbWF0Y2gwCQCmCAEFCGFkZHJlc3NfAwkAAQIFByRtYXRjaDACB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IHCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V57unFRA==", "height": 3418411, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GvhZNZwcJLxtzaYbjVhyWXqoS27XNkDXay2gKpT7yPTv Next: none Diff:
Old | New | Differences | |
---|---|---|---|
292 | 292 | let ag = J(an, L, M) | |
293 | 293 | let ah = J(ao, L, M) | |
294 | 294 | let as = J(aq, L, M) | |
295 | - | let ai = ( | |
296 | - | let aj = (ah + ac) | |
295 | + | let ai = (ag - ac) | |
296 | + | let aj = ((ah + ac) - ar) | |
297 | 297 | let at = (as + ar) | |
298 | 298 | let ak = q(ai, k, "externalTransfer: insufficient amount") | |
299 | 299 | if ((ak == ak)) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 7 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "__" | |
5 | 5 | ||
6 | 6 | let b = "MULTISIG" | |
7 | 7 | ||
8 | 8 | let c = "STATUS" | |
9 | 9 | ||
10 | 10 | let d = "INIT" | |
11 | 11 | ||
12 | 12 | let e = "GATEWAY_CONTRACT" | |
13 | 13 | ||
14 | 14 | let f = "MATCHER_CONTRACT" | |
15 | 15 | ||
16 | 16 | let g = "USER_BALANCE" | |
17 | 17 | ||
18 | 18 | let h = "TOTAL_BALANCE" | |
19 | 19 | ||
20 | 20 | let i = "SPOT" | |
21 | 21 | ||
22 | 22 | let j = "STAKING_REWARD" | |
23 | 23 | ||
24 | 24 | let k = toBigInt(0) | |
25 | 25 | ||
26 | 26 | func l (m,n) = { | |
27 | 27 | let o = addressFromString(m) | |
28 | 28 | if ($isInstanceOf(o, "Address")) | |
29 | 29 | then { | |
30 | 30 | let p = o | |
31 | 31 | true | |
32 | 32 | } | |
33 | 33 | else throw(n) | |
34 | 34 | } | |
35 | 35 | ||
36 | 36 | ||
37 | 37 | func q (r,s,n) = if ((s > r)) | |
38 | 38 | then throw(n) | |
39 | 39 | else true | |
40 | 40 | ||
41 | 41 | ||
42 | 42 | func t (r,n) = if (if ((0 >= size(r))) | |
43 | 43 | then true | |
44 | 44 | else contains(r, a)) | |
45 | 45 | then throw(n) | |
46 | 46 | else true | |
47 | 47 | ||
48 | 48 | ||
49 | 49 | func u (v,w,n) = if ((v != w)) | |
50 | 50 | then throw(n) | |
51 | 51 | else true | |
52 | 52 | ||
53 | 53 | ||
54 | 54 | func x () = { | |
55 | 55 | let o = getBoolean(d) | |
56 | 56 | if ($isInstanceOf(o, "Boolean")) | |
57 | 57 | then { | |
58 | 58 | let p = o | |
59 | 59 | p | |
60 | 60 | } | |
61 | 61 | else false | |
62 | 62 | } | |
63 | 63 | ||
64 | 64 | ||
65 | 65 | func y (z) = [BooleanEntry(d, z)] | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | func A () = { | |
69 | 69 | let o = getString(b) | |
70 | 70 | if ($isInstanceOf(o, "String")) | |
71 | 71 | then { | |
72 | 72 | let p = o | |
73 | 73 | addressFromStringValue(p) | |
74 | 74 | } | |
75 | 75 | else Address(base58'') | |
76 | 76 | } | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | func B (C) = [StringEntry(b, toString(C))] | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | func D () = { | |
83 | 83 | let o = getString(e) | |
84 | 84 | if ($isInstanceOf(o, "String")) | |
85 | 85 | then { | |
86 | 86 | let p = o | |
87 | 87 | addressFromStringValue(p) | |
88 | 88 | } | |
89 | 89 | else Address(base58'') | |
90 | 90 | } | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | func E (F) = [StringEntry(e, toString(F))] | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func G () = { | |
97 | 97 | let o = getString(f) | |
98 | 98 | if ($isInstanceOf(o, "String")) | |
99 | 99 | then { | |
100 | 100 | let p = o | |
101 | 101 | addressFromStringValue(p) | |
102 | 102 | } | |
103 | 103 | else Address(base58'') | |
104 | 104 | } | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | func H (I) = [StringEntry(f, toString(I))] | |
108 | 108 | ||
109 | 109 | ||
110 | 110 | func J (K,L,M) = { | |
111 | 111 | let o = getString(makeString([g, K, L, M], a)) | |
112 | 112 | if ($isInstanceOf(o, "String")) | |
113 | 113 | then { | |
114 | 114 | let p = o | |
115 | 115 | parseBigIntValue(p) | |
116 | 116 | } | |
117 | 117 | else k | |
118 | 118 | } | |
119 | 119 | ||
120 | 120 | ||
121 | 121 | func N (K,L,M,O) = [StringEntry(makeString([g, K, L, M], a), toString(O))] | |
122 | 122 | ||
123 | 123 | ||
124 | 124 | func P (M) = { | |
125 | 125 | let o = getString(makeString([h, M], a)) | |
126 | 126 | if ($isInstanceOf(o, "String")) | |
127 | 127 | then { | |
128 | 128 | let p = o | |
129 | 129 | parseBigIntValue(p) | |
130 | 130 | } | |
131 | 131 | else k | |
132 | 132 | } | |
133 | 133 | ||
134 | 134 | ||
135 | 135 | func Q (M,O) = [StringEntry(makeString([h, M], a), toString(O))] | |
136 | 136 | ||
137 | 137 | ||
138 | 138 | func R (S) = if ((S != this)) | |
139 | 139 | then throw("_onlyThisContract: revert") | |
140 | 140 | else true | |
141 | 141 | ||
142 | 142 | ||
143 | 143 | func T () = if ((A() == Address(base58''))) | |
144 | 144 | then throw("_whenMultisigSet: revert") | |
145 | 145 | else true | |
146 | 146 | ||
147 | 147 | ||
148 | 148 | func U () = if (x()) | |
149 | 149 | then throw("_whenNotInitialized: revert") | |
150 | 150 | else true | |
151 | 151 | ||
152 | 152 | ||
153 | 153 | func V () = if (!(x())) | |
154 | 154 | then throw("_whenInitialized: revert") | |
155 | 155 | else true | |
156 | 156 | ||
157 | 157 | ||
158 | 158 | func W (X,n) = if ((D() != X)) | |
159 | 159 | then throw(n) | |
160 | 160 | else true | |
161 | 161 | ||
162 | 162 | ||
163 | 163 | func Y (X,n) = if ((G() != X)) | |
164 | 164 | then throw(n) | |
165 | 165 | else true | |
166 | 166 | ||
167 | 167 | ||
168 | 168 | @Callable(Z) | |
169 | 169 | func init (F,I) = { | |
170 | 170 | let aa = if (if (if (if (R(Z.caller)) | |
171 | 171 | then U() | |
172 | 172 | else false) | |
173 | 173 | then T() | |
174 | 174 | else false) | |
175 | 175 | then l(F, "init: invalid gatewayContract") | |
176 | 176 | else false) | |
177 | 177 | then l(I, "init: invalid matcherContract") | |
178 | 178 | else false | |
179 | 179 | if ((aa == aa)) | |
180 | 180 | then $Tuple2(((y(true) ++ E(addressFromStringValue(F))) ++ H(addressFromStringValue(I))), unit) | |
181 | 181 | else throw("Strict value is not equal to itself.") | |
182 | 182 | } | |
183 | 183 | ||
184 | 184 | ||
185 | 185 | ||
186 | 186 | @Callable(Z) | |
187 | 187 | func deposit (K,M,ab) = { | |
188 | 188 | let ac = valueOrErrorMessage(parseBigInt(ab), "deposit: amount not int") | |
189 | 189 | let aa = if (if (if (if (V()) | |
190 | 190 | then t(K, "deposit: invalid user") | |
191 | 191 | else false) | |
192 | 192 | then t(M, "deposit: invalid currency") | |
193 | 193 | else false) | |
194 | 194 | then q(ac, k, "deposit: invalid amount") | |
195 | 195 | else false) | |
196 | 196 | then W(Z.caller, "deposit: invalid caller") | |
197 | 197 | else false | |
198 | 198 | if ((aa == aa)) | |
199 | 199 | then { | |
200 | 200 | let ad = J(K, i, M) | |
201 | 201 | $Tuple2((N(K, i, M, (ad + ac)) ++ Q(M, (P(M) + ac))), unit) | |
202 | 202 | } | |
203 | 203 | else throw("Strict value is not equal to itself.") | |
204 | 204 | } | |
205 | 205 | ||
206 | 206 | ||
207 | 207 | ||
208 | 208 | @Callable(Z) | |
209 | 209 | func internalTransfer (K,ae,af,M,ab) = { | |
210 | 210 | let ac = valueOrErrorMessage(parseBigInt(ab), "internalTransfer: amount not int") | |
211 | 211 | let aa = if (if (if (if (if (if (V()) | |
212 | 212 | then t(K, "internalTransfer: invalid user") | |
213 | 213 | else false) | |
214 | 214 | then t(ae, "internalTransfer: invalid sourceWallet") | |
215 | 215 | else false) | |
216 | 216 | then t(af, "internalTransfer: invalid targetWallet") | |
217 | 217 | else false) | |
218 | 218 | then t(M, "internalTransfer: invalid currency") | |
219 | 219 | else false) | |
220 | 220 | then q(ac, k, "internalTransfer: invalid amount") | |
221 | 221 | else false) | |
222 | 222 | then Y(Z.caller, "internalTransfer: invalid matcher caller") | |
223 | 223 | else false | |
224 | 224 | if ((aa == aa)) | |
225 | 225 | then { | |
226 | 226 | let ag = J(K, ae, M) | |
227 | 227 | let ah = J(K, af, M) | |
228 | 228 | let ai = (ag - ac) | |
229 | 229 | let aj = (ah + ac) | |
230 | 230 | let ak = q(ai, k, "internalTransfer: insufficient amount") | |
231 | 231 | if ((ak == ak)) | |
232 | 232 | then $Tuple2((N(K, ae, M, ai) ++ N(K, af, M, aj)), unit) | |
233 | 233 | else throw("Strict value is not equal to itself.") | |
234 | 234 | } | |
235 | 235 | else throw("Strict value is not equal to itself.") | |
236 | 236 | } | |
237 | 237 | ||
238 | 238 | ||
239 | 239 | ||
240 | 240 | @Callable(Z) | |
241 | 241 | func withdraw (K,M,ab) = { | |
242 | 242 | let ac = valueOrErrorMessage(parseBigInt(ab), "withdraw: amount not int") | |
243 | 243 | let aa = if (if (if (if (V()) | |
244 | 244 | then t(K, "withdraw: invalid user") | |
245 | 245 | else false) | |
246 | 246 | then t(M, "withdraw: invalid currency") | |
247 | 247 | else false) | |
248 | 248 | then q(ac, k, "withdraw: invalid amount") | |
249 | 249 | else false) | |
250 | 250 | then W(Z.caller, "withdraw: invalid caller") | |
251 | 251 | else false | |
252 | 252 | if ((aa == aa)) | |
253 | 253 | then { | |
254 | 254 | let ad = J(K, i, M) | |
255 | 255 | let al = (ad - ac) | |
256 | 256 | let am = (P(M) - ac) | |
257 | 257 | let ak = if (q(al, k, "withdraw: insufficient amount")) | |
258 | 258 | then q(am, k, "withdraw: negative total balance") | |
259 | 259 | else false | |
260 | 260 | if ((ak == ak)) | |
261 | 261 | then $Tuple2((N(K, i, M, al) ++ Q(M, am)), unit) | |
262 | 262 | else throw("Strict value is not equal to itself.") | |
263 | 263 | } | |
264 | 264 | else throw("Strict value is not equal to itself.") | |
265 | 265 | } | |
266 | 266 | ||
267 | 267 | ||
268 | 268 | ||
269 | 269 | @Callable(Z) | |
270 | 270 | func externalTransfer (L,M,an,ao,ab,ap,aq) = { | |
271 | 271 | let ac = valueOrErrorMessage(parseBigInt(ab), "externalTransfer: amount not int") | |
272 | 272 | let ar = valueOrErrorMessage(parseBigInt(ap), "externalTransfer: fee not int") | |
273 | 273 | let aa = if (if (if (if (if (if (if (if (V()) | |
274 | 274 | then t(L, "externalTransfer: invalid wallet") | |
275 | 275 | else false) | |
276 | 276 | then t(M, "externalTransfer: invalid currency") | |
277 | 277 | else false) | |
278 | 278 | then t(an, "externalTransfer: invalid from") | |
279 | 279 | else false) | |
280 | 280 | then t(ao, "externalTransfer: invalid to") | |
281 | 281 | else false) | |
282 | 282 | then q(ac, k, "externalTransfer: invalid amount") | |
283 | 283 | else false) | |
284 | 284 | then q(ar, k, "externalTransfer: invalid fee") | |
285 | 285 | else false) | |
286 | 286 | then t(aq, "externalTransfer: invalid dex") | |
287 | 287 | else false) | |
288 | 288 | then Y(Z.caller, "externalTransfer: invalid matcher caller") | |
289 | 289 | else false | |
290 | 290 | if ((aa == aa)) | |
291 | 291 | then { | |
292 | 292 | let ag = J(an, L, M) | |
293 | 293 | let ah = J(ao, L, M) | |
294 | 294 | let as = J(aq, L, M) | |
295 | - | let ai = ( | |
296 | - | let aj = (ah + ac) | |
295 | + | let ai = (ag - ac) | |
296 | + | let aj = ((ah + ac) - ar) | |
297 | 297 | let at = (as + ar) | |
298 | 298 | let ak = q(ai, k, "externalTransfer: insufficient amount") | |
299 | 299 | if ((ak == ak)) | |
300 | 300 | then $Tuple2(((N(an, L, M, ai) ++ N(ao, L, M, aj)) ++ N(aq, L, M, at)), unit) | |
301 | 301 | else throw("Strict value is not equal to itself.") | |
302 | 302 | } | |
303 | 303 | else throw("Strict value is not equal to itself.") | |
304 | 304 | } | |
305 | 305 | ||
306 | 306 | ||
307 | 307 | ||
308 | 308 | @Callable(Z) | |
309 | 309 | func depositStakingReward (aq,M,ab) = { | |
310 | 310 | let ac = valueOrErrorMessage(parseBigInt(ab), "depositStakingReward: amount not int") | |
311 | 311 | let aa = if (if (if (if (V()) | |
312 | 312 | then t(aq, "depositStakingReward: invalid dex") | |
313 | 313 | else false) | |
314 | 314 | then t(M, "depositStakingReward: invalid currency") | |
315 | 315 | else false) | |
316 | 316 | then q(ac, k, "depositStakingReward: invalid amount") | |
317 | 317 | else false) | |
318 | 318 | then W(Z.caller, "depositStakingReward: invalid caller") | |
319 | 319 | else false | |
320 | 320 | if ((aa == aa)) | |
321 | 321 | then { | |
322 | 322 | let ad = J(aq, j, M) | |
323 | 323 | $Tuple2((N(aq, j, M, (ad + ac)) ++ Q(M, (P(M) + ac))), unit) | |
324 | 324 | } | |
325 | 325 | else throw("Strict value is not equal to itself.") | |
326 | 326 | } | |
327 | 327 | ||
328 | 328 | ||
329 | 329 | ||
330 | 330 | @Callable(Z) | |
331 | 331 | func claimReward (aq,K,M,ab) = { | |
332 | 332 | let ac = valueOrErrorMessage(parseBigInt(ab), "claimReward: amount not int") | |
333 | 333 | let aa = if (if (if (if (if (V()) | |
334 | 334 | then t(aq, "claimReward: invalid dex") | |
335 | 335 | else false) | |
336 | 336 | then t(K, "claimReward: invalid user") | |
337 | 337 | else false) | |
338 | 338 | then t(M, "claimReward: invalid currency") | |
339 | 339 | else false) | |
340 | 340 | then q(ac, k, "claimReward: invalid amount") | |
341 | 341 | else false) | |
342 | 342 | then Y(Z.caller, "claimReward: invalid matcher caller") | |
343 | 343 | else false | |
344 | 344 | if ((aa == aa)) | |
345 | 345 | then { | |
346 | 346 | let au = J(aq, j, M) | |
347 | 347 | let ah = J(K, i, M) | |
348 | 348 | let av = (au - ac) | |
349 | 349 | let aj = (ah + ac) | |
350 | 350 | let ak = q(av, k, "claimReward: insufficient amount") | |
351 | 351 | if ((ak == ak)) | |
352 | 352 | then $Tuple2((N(aq, j, M, av) ++ N(K, i, M, aj)), unit) | |
353 | 353 | else throw("Strict value is not equal to itself.") | |
354 | 354 | } | |
355 | 355 | else throw("Strict value is not equal to itself.") | |
356 | 356 | } | |
357 | 357 | ||
358 | 358 | ||
359 | 359 | ||
360 | 360 | @Callable(Z) | |
361 | 361 | func getUserBalance (K,L,M) = $Tuple2(nil, toString(J(K, L, M))) | |
362 | 362 | ||
363 | 363 | ||
364 | 364 | ||
365 | 365 | @Callable(Z) | |
366 | 366 | func setMultisig (C) = { | |
367 | 367 | let aa = if (R(Z.caller)) | |
368 | 368 | then l(C, "setMultisig: invalid multisig") | |
369 | 369 | else false | |
370 | 370 | if ((aa == aa)) | |
371 | 371 | then $Tuple2(B(addressFromStringValue(C)), unit) | |
372 | 372 | else throw("Strict value is not equal to itself.") | |
373 | 373 | } | |
374 | 374 | ||
375 | 375 | ||
376 | 376 | @Verifier(aw) | |
377 | 377 | func ax () = { | |
378 | 378 | let o = aw | |
379 | 379 | let ay = getString(b) | |
380 | 380 | if ($isInstanceOf(ay, "String")) | |
381 | 381 | then { | |
382 | 382 | let az = ay | |
383 | 383 | valueOrElse(getBoolean(addressFromStringValue(az), makeString([c, toString(this), toBase58String(aw.id)], a)), false) | |
384 | 384 | } | |
385 | 385 | else sigVerify(aw.bodyBytes, aw.proofs[0], aw.senderPublicKey) | |
386 | 386 | } | |
387 | 387 |
github/deemru/w8io/169f3d6 66.06 ms ◑