tx · 4HpvvGtqvaRVPasnj8MMLd2DP4KwQNzXM2iwctLJUWgM 3N3kKNoJohjVQYNLTrYTGTesr3nq3PZNh37: -0.02300000 Waves 2024.05.16 14:34 [3108524] smart account 3N3kKNoJohjVQYNLTrYTGTesr3nq3PZNh37 > SELF 0.00000000 Waves
{ "type": 13, "id": "4HpvvGtqvaRVPasnj8MMLd2DP4KwQNzXM2iwctLJUWgM", "fee": 2300000, "feeAssetId": null, "timestamp": 1715859328343, "version": 2, "chainId": 84, "sender": "3N3kKNoJohjVQYNLTrYTGTesr3nq3PZNh37", "senderPublicKey": "vmMXxwQAMUAoisvL193ptPiTtaWQqL5YNu2zs1ouTbY", "proofs": [ "4epCos7E9RfsFqcTZkPeiW7MoyhSRwC1hNo4rpEFSe4rgPW4fAhaqtgd5vdXp8A9Kfm4swKzUKMfsRwAT8xusJp" ], "script": "base64:BwI9CAISAwoBCBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGFYACXNlcGFyYXRvcgICX18AB2NoYWluSWQJAMkBAgkAygECCAUEdGhpcwVieXRlcwABAAEACGNoYWluSWRXAQFXABBjb250cmFjdEZpbGVuYW1lAhdmdXR1cmVzX2NhbGN1bGF0b3IucmlkZQAFbXVsdDgAgMLXLwAMbXVsdDE4QmlnSW50CQC2AgEAgICQu7rWrfANAA13YXZlc0RlY2ltYWxzAAgADHVzZHREZWNpbWFscwAGAAt3YXZlc1N0cmluZwIFV0FWRVMADXF1ZXVlSXRlbVNpemUAIAAEYmlnMAkAtgIBAAAACWtNdWx0aXNpZwIMJXNfX211bHRpc2lnAQdrU3RhdHVzAgRkYXBwBHR4SWQJALkJAgkAzAgCAgolc19fc3RhdHVzCQDMCAIFBGRhcHAJAMwIAgUEdHhJZAUDbmlsBQlzZXBhcmF0b3IACWtTaHV0ZG93bgIMJXNfX3NodXRkb3duAAtrUHVibGljS2V5cwIOJXNfX3B1YmxpY0tleXMAEWtNYXRjaGVyUHVibGljS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0aW9uCQEJaXNEZWZpbmVkAQkAnQgCBQ5mYWN0b3J5QWRkcmVzcwUJa011bHRpc2lnBwQHJG1hdGNoMAkAnQgCBQ5mYWN0b3J5QWRkcmVzcwUJa011bHRpc2lnAwkAAQIFByRtYXRjaDACBlN0cmluZwQIbXVsdGlzaWcFByRtYXRjaDAECXN0YXR1c0tleQkBB2tTdGF0dXMCCQClCAEFBHRoaXMJANgEAQgFAnR4AmlkBAZzdGF0dXMJAQt2YWx1ZU9yRWxzZQIJAJsIAgkBEUBleHRyTmF0aXZlKDEwNjIpAQUIbXVsdGlzaWcFCXN0YXR1c0tleQcFBnN0YXR1cwcJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXlEhI1n", "height": 3108524, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: arz6AmuQYw7BPXmUcnzegecHsm2hKftLYeV1VpLu4qD Next: FhPupu9dM9Ji8BuNPnHRUqyhJyUeybwSfyqvoxskUjNq Diff:
Old | New | Differences | |
---|---|---|---|
530 | 530 | ||
531 | 531 | @Callable(bH) | |
532 | 532 | func addSyntheticAsset (ac,bK) = { | |
533 | - | let cm = bK[0] | |
534 | - | let at = F(cm) | |
535 | - | let av = bH.payments[0].assetId | |
533 | + | let at = F(bK[0]) | |
534 | + | let av = F(bK[1]) | |
536 | 535 | let bL = [if (!(W)) | |
537 | 536 | then true | |
538 | 537 | else C("not allowed"), aa(bH.caller), ab(ac), if ((getString(R, as(at)) == unit)) | |
539 | 538 | then true | |
540 | - | else C("invalid base asset"), if ((size(bH.payments) == 1)) | |
541 | - | then true | |
542 | - | else C("invalid payments"), if ((getString(R, au(av)) == unit)) | |
539 | + | else C("invalid base asset"), if ((getString(R, au(av)) == unit)) | |
543 | 540 | then true | |
544 | 541 | else C("invalid synthetic asset")] | |
545 | 542 | if ((bL == bL)) | |
564 | 561 | } | |
565 | 562 | ||
566 | 563 | ||
567 | - | @Verifier( | |
568 | - | func | |
564 | + | @Verifier(cm) | |
565 | + | func cn () = if (if (isDefined(Q)) | |
569 | 566 | then isDefined(getString(R, l)) | |
570 | 567 | else false) | |
571 | 568 | then { | |
573 | 570 | if ($isInstanceOf(L, "String")) | |
574 | 571 | then { | |
575 | 572 | let ad = L | |
576 | - | let | |
577 | - | let | |
578 | - | | |
573 | + | let co = m(toString(this), toBase58String(cm.id)) | |
574 | + | let cp = valueOrElse(getBoolean(addressFromStringValue(ad), co), false) | |
575 | + | cp | |
579 | 576 | } | |
580 | 577 | else false | |
581 | 578 | } | |
582 | - | else sigVerify( | |
579 | + | else sigVerify(cm.bodyBytes, cm.proofs[0], cm.senderPublicKey) | |
583 | 580 |
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 = take(drop(this.bytes, 1), 1) | |
7 | 7 | ||
8 | 8 | let c = base58'2W' | |
9 | 9 | ||
10 | 10 | let d = "futures_calculator.ride" | |
11 | 11 | ||
12 | 12 | let e = 100000000 | |
13 | 13 | ||
14 | 14 | let f = toBigInt(1000000000000000000) | |
15 | 15 | ||
16 | 16 | let g = 8 | |
17 | 17 | ||
18 | 18 | let h = 6 | |
19 | 19 | ||
20 | 20 | let i = "WAVES" | |
21 | 21 | ||
22 | 22 | let j = 32 | |
23 | 23 | ||
24 | 24 | let k = toBigInt(0) | |
25 | 25 | ||
26 | 26 | let l = "%s__multisig" | |
27 | 27 | ||
28 | 28 | func m (n,o) = makeString(["%s__status", n, o], a) | |
29 | 29 | ||
30 | 30 | ||
31 | 31 | let p = "%s__shutdown" | |
32 | 32 | ||
33 | 33 | let q = "%s__publicKeys" | |
34 | 34 | ||
35 | 35 | let r = "%s__matcherPublicKey" | |
36 | 36 | ||
37 | 37 | func s (t,u) = fraction(toBigInt(t), f, toBigInt(u)) | |
38 | 38 | ||
39 | 39 | ||
40 | 40 | func v (w,x) = toInt(fraction(w, toBigInt(x), f)) | |
41 | 41 | ||
42 | 42 | ||
43 | 43 | func y (z) = isDefined(addressFromString(z)) | |
44 | 44 | ||
45 | 45 | ||
46 | 46 | func A (B) = ((d + ": ") + B) | |
47 | 47 | ||
48 | 48 | ||
49 | 49 | func C (B) = throw(A(B)) | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | func D (E,B) = if ((E >= 0)) | |
53 | 53 | then E | |
54 | 54 | else C((B + " value should be positive")) | |
55 | 55 | ||
56 | 56 | ||
57 | 57 | func F (G) = if ((G == i)) | |
58 | 58 | then unit | |
59 | 59 | else fromBase58String(G) | |
60 | 60 | ||
61 | 61 | ||
62 | 62 | func H (G) = if ((G == unit)) | |
63 | 63 | then i | |
64 | 64 | else toBase58String(value(G)) | |
65 | 65 | ||
66 | 66 | ||
67 | 67 | func I (J) = valueOrErrorMessage(assetInfo(J), A("invalid asset info")) | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | func K (J) = { | |
71 | 71 | let L = J | |
72 | 72 | if ($isInstanceOf(L, "Unit")) | |
73 | 73 | then g | |
74 | 74 | else if ($isInstanceOf(L, "ByteVector")) | |
75 | 75 | then { | |
76 | 76 | let J = L | |
77 | 77 | I(J).decimals | |
78 | 78 | } | |
79 | 79 | else throw("Match error") | |
80 | 80 | } | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func M (N) = pow(10, 0, N, 0, 0, DOWN) | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func O (J) = M(K(J)) | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | let P = "%s__factoryAddress" | |
90 | 90 | ||
91 | 91 | let Q = { | |
92 | 92 | let L = getString(this, P) | |
93 | 93 | if ($isInstanceOf(L, "String")) | |
94 | 94 | then { | |
95 | 95 | let B = L | |
96 | 96 | addressFromString(B) | |
97 | 97 | } | |
98 | 98 | else if ($isInstanceOf(L, "Unit")) | |
99 | 99 | then unit | |
100 | 100 | else throw("Match error") | |
101 | 101 | } | |
102 | 102 | ||
103 | 103 | let R = valueOrErrorMessage(Q, A("invalid factory address")) | |
104 | 104 | ||
105 | 105 | let S = "%s__usdtAssetId" | |
106 | 106 | ||
107 | 107 | let T = { | |
108 | 108 | let L = getString(R, S) | |
109 | 109 | if ($isInstanceOf(L, "String")) | |
110 | 110 | then { | |
111 | 111 | let B = L | |
112 | 112 | F(B) | |
113 | 113 | } | |
114 | 114 | else if ($isInstanceOf(L, "Unit")) | |
115 | 115 | then unit | |
116 | 116 | else throw("Match error") | |
117 | 117 | } | |
118 | 118 | ||
119 | 119 | let U = valueOrErrorMessage(T, A("invalid usdt asset id")) | |
120 | 120 | ||
121 | 121 | let V = "%s__calculatorAddress" | |
122 | 122 | ||
123 | 123 | let W = valueOrElse(getBoolean(R, p), false) | |
124 | 124 | ||
125 | 125 | func X (Y,z) = if ((Y == z)) | |
126 | 126 | then true | |
127 | 127 | else C("permission denied") | |
128 | 128 | ||
129 | 129 | ||
130 | 130 | func Z (Y) = X(Y, this) | |
131 | 131 | ||
132 | 132 | ||
133 | 133 | func aa (Y) = X(Y, R) | |
134 | 134 | ||
135 | 135 | ||
136 | 136 | func ab (ac) = { | |
137 | 137 | let L = getString(R, l) | |
138 | 138 | if ($isInstanceOf(L, "String")) | |
139 | 139 | then { | |
140 | 140 | let ad = L | |
141 | 141 | let ae = split(getStringValue(addressFromStringValue(ad), q), a) | |
142 | 142 | if (containsElement(ae, toBase58String(ac))) | |
143 | 143 | then true | |
144 | 144 | else C("should be called by admin") | |
145 | 145 | } | |
146 | 146 | else if ($isInstanceOf(L, "Unit")) | |
147 | 147 | then if ((addressFromPublicKey(ac) == R)) | |
148 | 148 | then true | |
149 | 149 | else C("should be called by factory or admin") | |
150 | 150 | else throw("Match error") | |
151 | 151 | } | |
152 | 152 | ||
153 | 153 | ||
154 | 154 | let af = "%s__accountScript" | |
155 | 155 | ||
156 | 156 | func ag () = valueOrErrorMessage(getBinary(R, af), A("account script is not set")) | |
157 | 157 | ||
158 | 158 | ||
159 | 159 | let ah = "%s__rewardAmount" | |
160 | 160 | ||
161 | 161 | func ai () = valueOrErrorMessage(getInteger(R, ah), A("reward amount is not set")) | |
162 | 162 | ||
163 | 163 | ||
164 | 164 | let aj = "%s__accountsLimit" | |
165 | 165 | ||
166 | 166 | let ak = 20 | |
167 | 167 | ||
168 | 168 | func al () = valueOrElse(getInteger(R, aj), ak) | |
169 | 169 | ||
170 | 170 | ||
171 | 171 | func am (an) = makeString(["%s%s", "deposited", toString(an)], a) | |
172 | 172 | ||
173 | 173 | ||
174 | 174 | func ao (an) = getInteger(R, am(an)) | |
175 | 175 | ||
176 | 176 | ||
177 | 177 | func ap (an,J) = makeString(["%s%s%s", "credit", toString(an), H(J)], a) | |
178 | 178 | ||
179 | 179 | ||
180 | 180 | func aq (an,J) = getInteger(R, ap(an, J)) | |
181 | 181 | ||
182 | 182 | ||
183 | 183 | func ar (an) = makeString(["%s%s", "leverage", toString(an)], a) | |
184 | 184 | ||
185 | 185 | ||
186 | 186 | func as (at) = makeString(["%s%s", "syntheticAssetId", H(at)], a) | |
187 | 187 | ||
188 | 188 | ||
189 | 189 | func au (av) = makeString(["%s%s", "baseAssetId", H(av)], a) | |
190 | 190 | ||
191 | 191 | ||
192 | 192 | let aw = 0 | |
193 | 193 | ||
194 | 194 | let ax = 1 | |
195 | 195 | ||
196 | 196 | func ay (az) = makeString(["%s%s", toBase58String(az), "status"], a) | |
197 | 197 | ||
198 | 198 | ||
199 | 199 | func aA (an) = makeString(["%s%s", toString(an), "creatorPublicKey"], a) | |
200 | 200 | ||
201 | 201 | ||
202 | 202 | func aB (az) = makeString(["%s%s", toBase58String(az), "ownerPublicKey"], a) | |
203 | 203 | ||
204 | 204 | ||
205 | 205 | func aC (az) = makeString(["%s%s", toBase58String(az), "amountAssetId"], a) | |
206 | 206 | ||
207 | 207 | ||
208 | 208 | func aD (az) = makeString(["%s%s", toBase58String(az), "priceAssetId"], a) | |
209 | 209 | ||
210 | 210 | ||
211 | 211 | func aE (az) = makeString(["%s%s", toBase58String(az), "requestIdToAccountPublicKey"], a) | |
212 | 212 | ||
213 | 213 | ||
214 | 214 | func aF (an) = makeString(["%s%s", toString(an), "accountAddressToRequestId"], a) | |
215 | 215 | ||
216 | 216 | ||
217 | 217 | func aG () = makeString(["%s", "requestsQueue"], a) | |
218 | 218 | ||
219 | 219 | ||
220 | 220 | func aH () = valueOrElse(getBinary(R, aG()), base58'') | |
221 | 221 | ||
222 | 222 | ||
223 | 223 | func aI () = makeString(["%s", "accountsQueue"], a) | |
224 | 224 | ||
225 | 225 | ||
226 | 226 | func aJ () = valueOrElse(getBinary(R, aI()), base58'') | |
227 | 227 | ||
228 | 228 | ||
229 | 229 | func aK (aL) = makeString(["%s%s", "requests", toString(aL)], a) | |
230 | 230 | ||
231 | 231 | ||
232 | 232 | func aM (aL) = valueOrElse(getBinary(R, aK(aL)), base58'') | |
233 | 233 | ||
234 | 234 | ||
235 | 235 | func aN (aO,aP) = makeString(["%s%s%s", H(aO), H(aP), "pairAllowed"], a) | |
236 | 236 | ||
237 | 237 | ||
238 | 238 | func aQ (aO,aP) = valueOrElse(getBoolean(R, aN(aO, aP)), false) | |
239 | 239 | ||
240 | 240 | ||
241 | 241 | func aR (J) = makeString(["%s", H(J)], a) | |
242 | 242 | ||
243 | 243 | ||
244 | 244 | func aS (J) = { | |
245 | 245 | let aT = fromBase58String(valueOrErrorMessage(getString(R, r), A("invalid matcher public key"))) | |
246 | 246 | let aU = addressFromPublicKey(aT) | |
247 | 247 | let aV = valueOrErrorMessage(getInteger(aU, aR(J)), A(("invalid price, assetId = " + H(J)))) | |
248 | 248 | aV | |
249 | 249 | } | |
250 | 250 | ||
251 | 251 | ||
252 | 252 | func aW (aX,aY,aZ) = (fraction(aX, aZ, f) + aY) | |
253 | 253 | ||
254 | 254 | ||
255 | 255 | func ba (bb,bc,aZ) = (fraction(bb, aZ, f) + bc) | |
256 | 256 | ||
257 | 257 | ||
258 | 258 | func bd (be,bf) = (be - bf) | |
259 | 259 | ||
260 | 260 | ||
261 | 261 | func bg (bh,bi,bf) = (fraction(bh, bi, f) - bf) | |
262 | 262 | ||
263 | 263 | ||
264 | 264 | func bj (bk,bl) = if ((bk > k)) | |
265 | 265 | then (bk - bl) | |
266 | 266 | else k | |
267 | 267 | ||
268 | 268 | ||
269 | 269 | func bm (bk,bl) = if ((bk > k)) | |
270 | 270 | then (bl - bk) | |
271 | 271 | else k | |
272 | 272 | ||
273 | 273 | ||
274 | 274 | func bn (bo,bp) = if ((bp > k)) | |
275 | 275 | then max([k, fraction(bo, f, bp)]) | |
276 | 276 | else k | |
277 | 277 | ||
278 | 278 | ||
279 | 279 | func bq (bo,bp) = if ((bp > k)) | |
280 | 280 | then max([k, fraction(bp, f, bo)]) | |
281 | 281 | else k | |
282 | 282 | ||
283 | 283 | ||
284 | 284 | func br (bs,bt,aZ,bu) = fraction((fraction(bs, aZ, f) + bt), bu, f) | |
285 | 285 | ||
286 | 286 | ||
287 | 287 | func bv (bw,bu,bx) = fraction(bw, bx, bu) | |
288 | 288 | ||
289 | 289 | ||
290 | 290 | func by (bh,bz,bs,bt,bA,bB) = { | |
291 | 291 | let bC = if ((bs > k)) | |
292 | 292 | then (((bh - bz) / bs) + bA) | |
293 | 293 | else k | |
294 | 294 | let bD = if ((bt > k)) | |
295 | 295 | then (bB - ((bh - bz) / (bs / bB))) | |
296 | 296 | else k | |
297 | 297 | (bC + bD) | |
298 | 298 | } | |
299 | 299 | ||
300 | 300 | ||
301 | 301 | func bE (an) = { | |
302 | 302 | let az = fromBase58String(valueOrErrorMessage(getString(R, aF(an)), A("invalid account address: request id is undefined"))) | |
303 | 303 | let aO = F(valueOrErrorMessage(getString(R, aC(az)), A("invalid amount asset id"))) | |
304 | 304 | let aP = F(valueOrErrorMessage(getString(R, aD(az)), A("invalid amount price id"))) | |
305 | 305 | $Tuple2(aO, aP) | |
306 | 306 | } | |
307 | 307 | ||
308 | 308 | ||
309 | 309 | func bF (an) = { | |
310 | 310 | let az = fromBase58String(valueOrErrorMessage(getString(R, aF(an)), A("invalid account address: request id is undefined"))) | |
311 | 311 | let bG = valueOrErrorMessage(getBinary(R, aB(az)), A("invalid amount asset id")) | |
312 | 312 | bG | |
313 | 313 | } | |
314 | 314 | ||
315 | 315 | ||
316 | 316 | @Callable(bH) | |
317 | 317 | func init (bI) = { | |
318 | 318 | let bJ = Z(bH.caller) | |
319 | 319 | if ((bJ == bJ)) | |
320 | 320 | then $Tuple2([StringEntry(P, bI)], unit) | |
321 | 321 | else throw("Strict value is not equal to itself.") | |
322 | 322 | } | |
323 | 323 | ||
324 | 324 | ||
325 | 325 | ||
326 | 326 | @Callable(bH) | |
327 | 327 | func requestAccount (ac,bK) = { | |
328 | 328 | let bL = [if (!(W)) | |
329 | 329 | then true | |
330 | 330 | else C("not allowed"), aa(bH.caller)] | |
331 | 331 | if ((bL == bL)) | |
332 | 332 | then { | |
333 | 333 | let bM = bK[0] | |
334 | 334 | let bN = bK[1] | |
335 | 335 | let bO = addressFromPublicKey(ac) | |
336 | 336 | let az = sha256(((bO.bytes + fromBase58String(bM)) + fromBase58String(bN))) | |
337 | 337 | let aO = F(bM) | |
338 | 338 | let aP = F(bN) | |
339 | 339 | let bP = (size(aK(bO)) / j) | |
340 | 340 | let bQ = [if ((size(bH.payments) == 1)) | |
341 | 341 | then true | |
342 | 342 | else C("1 payment is required"), if ((bH.payments[0].assetId == unit)) | |
343 | 343 | then true | |
344 | 344 | else C("invalid asset"), if ((bH.payments[0].amount == ai())) | |
345 | 345 | then true | |
346 | 346 | else C("invalid amount"), if (aQ(aO, aP)) | |
347 | 347 | then true | |
348 | 348 | else C("pair is not allowed"), if ((getInteger(R, ay(az)) == unit)) | |
349 | 349 | then true | |
350 | 350 | else C("account is already exists"), if ((al() > bP)) | |
351 | 351 | then true | |
352 | 352 | else C(("accounts limit is " + toString(al())))] | |
353 | 353 | if ((bQ == bQ)) | |
354 | 354 | then { | |
355 | 355 | let bR = if ((size(aJ()) == 0)) | |
356 | 356 | then $Tuple2([ScriptTransfer(R, ai(), unit)], [invoke(R, "integerEntry", [ay(az), aw], nil), invoke(R, "binaryEntry", [aG(), (aH() + az)], nil)]) | |
357 | 357 | else { | |
358 | 358 | let bS = take(aJ(), j) | |
359 | 359 | let an = addressFromPublicKey(bS) | |
360 | 360 | let bT = addressFromPublicKey(valueOrErrorMessage(getBinary(R, aA(an)), A("invalid creator public key"))) | |
361 | 361 | $Tuple2([ScriptTransfer(bT, ai(), unit)], [invoke(R, "binaryEntry", [aI(), drop(aJ(), j)], nil), invoke(R, "integerEntry", [ay(az), ax], nil), invoke(R, "binaryEntry", [aE(az), bS], nil), invoke(R, "stringEntry", [aF(an), toBase58String(az)], nil)]) | |
362 | 362 | } | |
363 | 363 | let bU = bR._1 | |
364 | 364 | let bV = bR._2 | |
365 | 365 | $Tuple2(bU, (bV ++ [invoke(R, "binaryEntry", [aB(az), ac], nil), invoke(R, "binaryEntry", [aK(bO), (aM(bO) + az)], nil), invoke(R, "stringEntry", [aC(az), bM], nil), invoke(R, "stringEntry", [aD(az), bN], nil)])) | |
366 | 366 | } | |
367 | 367 | else throw("Strict value is not equal to itself.") | |
368 | 368 | } | |
369 | 369 | else throw("Strict value is not equal to itself.") | |
370 | 370 | } | |
371 | 371 | ||
372 | 372 | ||
373 | 373 | ||
374 | 374 | @Callable(bH) | |
375 | 375 | func addAccount (ac,bK) = { | |
376 | 376 | let bL = [if (!(W)) | |
377 | 377 | then true | |
378 | 378 | else C("not allowed"), aa(bH.caller)] | |
379 | 379 | if ((bL == bL)) | |
380 | 380 | then { | |
381 | 381 | let bW = fromBase58String(bK[0]) | |
382 | 382 | let bS = ac | |
383 | 383 | let an = addressFromPublicKey(ac) | |
384 | 384 | let bT = addressFromPublicKey(bW) | |
385 | 385 | let bQ = [if ((getBinary(R, aA(an)) == unit)) | |
386 | 386 | then true | |
387 | 387 | else C("account is already exists"), if ({ | |
388 | 388 | let L = scriptHash(an) | |
389 | 389 | if ($isInstanceOf(L, "ByteVector")) | |
390 | 390 | then { | |
391 | 391 | let bX = L | |
392 | 392 | (bX == blake2b256_32Kb(ag())) | |
393 | 393 | } | |
394 | 394 | else false | |
395 | 395 | }) | |
396 | 396 | then true | |
397 | 397 | else C("invalid script")] | |
398 | 398 | if ((bQ == bQ)) | |
399 | 399 | then { | |
400 | 400 | let bY = if ((size(aH()) == 0)) | |
401 | 401 | then $Tuple2(nil, [invoke(R, "binaryEntry", [aI(), (aJ() + bS)], nil)]) | |
402 | 402 | else { | |
403 | 403 | let az = take(aH(), j) | |
404 | 404 | $Tuple2(nil, [invoke(R, "integerEntry", [ay(az), ax], nil), invoke(R, "binaryEntry", [aE(az), bS], nil), invoke(R, "binaryEntry", [aG(), drop(aH(), j)], nil), invoke(R, "stringEntry", [aF(an), toBase58String(az)], nil), invoke(R, "transferWaves", [bT.bytes, ai()], nil)]) | |
405 | 405 | } | |
406 | 406 | let bU = bY._1 | |
407 | 407 | let bV = bY._2 | |
408 | 408 | $Tuple2(bU, (bV ++ [invoke(R, "binaryEntry", [aA(an), bW], nil)])) | |
409 | 409 | } | |
410 | 410 | else throw("Strict value is not equal to itself.") | |
411 | 411 | } | |
412 | 412 | else throw("Strict value is not equal to itself.") | |
413 | 413 | } | |
414 | 414 | ||
415 | 415 | ||
416 | 416 | ||
417 | 417 | @Callable(bH) | |
418 | 418 | func deposit (ac,bK) = { | |
419 | 419 | let bZ = bH.payments[0] | |
420 | 420 | let bL = [if (!(W)) | |
421 | 421 | then true | |
422 | 422 | else C("not allowed"), aa(bH.caller), if ((size(bH.payments) == 1)) | |
423 | 423 | then true | |
424 | 424 | else C("1 payment is required"), if ((bZ.assetId == U)) | |
425 | 425 | then true | |
426 | 426 | else C("invalid asset")] | |
427 | 427 | if ((bL == bL)) | |
428 | 428 | then { | |
429 | 429 | let an = valueOrErrorMessage(addressFromString(bK[0]), A("invalid account address")) | |
430 | 430 | let bU = [ScriptTransfer(an, bZ.amount, bZ.assetId)] | |
431 | 431 | let bV = [invoke(R, "integerEntry", [am(an), (valueOrElse(ao(an), 0) + bZ.amount)], nil)] | |
432 | 432 | $Tuple2(bU, bV) | |
433 | 433 | } | |
434 | 434 | else throw("Strict value is not equal to itself.") | |
435 | 435 | } | |
436 | 436 | ||
437 | 437 | ||
438 | 438 | ||
439 | 439 | @Callable(bH) | |
440 | 440 | func withdraw (ac,bK) = { | |
441 | 441 | let bL = [if (!(W)) | |
442 | 442 | then true | |
443 | 443 | else C("not allowed"), aa(bH.caller)] | |
444 | 444 | if ((bL == bL)) | |
445 | 445 | then { | |
446 | 446 | let bO = addressFromPublicKey(ac) | |
447 | 447 | let an = valueOrErrorMessage(addressFromString(bK[0]), A("invalid account address")) | |
448 | 448 | let ca = valueOrErrorMessage(parseInt(bK[1]), A("invalid amount")) | |
449 | 449 | let J = F(bK[2]) | |
450 | 450 | let cb = [invoke(an, "transferAsset", [bO.bytes, ca, J], nil)] | |
451 | 451 | $Tuple2(nil, cb) | |
452 | 452 | } | |
453 | 453 | else throw("Strict value is not equal to itself.") | |
454 | 454 | } | |
455 | 455 | ||
456 | 456 | ||
457 | 457 | ||
458 | 458 | @Callable(bH) | |
459 | 459 | func borrow (ac,bK) = { | |
460 | 460 | let an = valueOrErrorMessage(addressFromString(bK[0]), A("invalid account address")) | |
461 | 461 | let cc = F(bK[1]) | |
462 | 462 | let cd = D(valueOrErrorMessage(parseInt(bK[2]), A("invalid requested amount")), "requested amount") | |
463 | 463 | let ce = bF(an) | |
464 | 464 | let bO = addressFromPublicKey(ac) | |
465 | 465 | let bL = [if (!(W)) | |
466 | 466 | then true | |
467 | 467 | else C("not allowed"), aa(bH.caller), if ((ac == ce)) | |
468 | 468 | then true | |
469 | 469 | else C("can be called by account owner only")] | |
470 | 470 | if ((bL == bL)) | |
471 | 471 | then { | |
472 | 472 | let aO = bE(an)._1 | |
473 | 473 | let cf = s(valueOrElse(ao(an), 0), O(U)) | |
474 | 474 | let aZ = s(aS(aO), O(U)) | |
475 | 475 | let aX = s(valueOrElse(getInteger(R, ap(an, aO)), 0), O(aO)) | |
476 | 476 | let aY = s(valueOrElse(getInteger(R, ap(an, U)), 0), O(U)) | |
477 | 477 | let bf = aW(aX, aY, aZ) | |
478 | 478 | let cg = 3 | |
479 | 479 | let bi = s(valueOrElse(getInteger(R, ar(an)), cg), 1) | |
480 | 480 | let ch = bg(cf, bi, bf) | |
481 | 481 | let ci = if ((cc == aO)) | |
482 | 482 | then v(fraction(ch, f, aZ), O(aO)) | |
483 | 483 | else if ((cc == U)) | |
484 | 484 | then v(ch, O(U)) | |
485 | 485 | else C("invalid requested asset id") | |
486 | 486 | let av = F(valueOrErrorMessage(getString(R, as(cc)), A("synthetic asset for requested asset is undefined"))) | |
487 | 487 | let cj = if ((ci >= cd)) | |
488 | 488 | then cd | |
489 | 489 | else C(("credit available = " + toString(ci))) | |
490 | 490 | let bV = [invoke(R, "integerEntry", [ap(an, cc), (valueOrElse(aq(an, cc), 0) + cj)], nil), invoke(R, "transferAsset", [bO.bytes, cj, av], nil)] | |
491 | 491 | $Tuple2(nil, [bV, ci]) | |
492 | 492 | } | |
493 | 493 | else throw("Strict value is not equal to itself.") | |
494 | 494 | } | |
495 | 495 | ||
496 | 496 | ||
497 | 497 | ||
498 | 498 | @Callable(bH) | |
499 | 499 | func repay (ac,bK) = { | |
500 | 500 | let bL = [if (!(W)) | |
501 | 501 | then true | |
502 | 502 | else C("not allowed"), aa(bH.caller)] | |
503 | 503 | if ((bL == bL)) | |
504 | 504 | then $Tuple2(nil, unit) | |
505 | 505 | else throw("Strict value is not equal to itself.") | |
506 | 506 | } | |
507 | 507 | ||
508 | 508 | ||
509 | 509 | ||
510 | 510 | @Callable(bH) | |
511 | 511 | func setPairAllowance (ac,bK) = { | |
512 | 512 | let bL = [if (!(W)) | |
513 | 513 | then true | |
514 | 514 | else C("not allowed"), aa(bH.caller), ab(ac)] | |
515 | 515 | if ((bL == bL)) | |
516 | 516 | then { | |
517 | 517 | let bM = bK[0] | |
518 | 518 | let bN = bK[1] | |
519 | 519 | let ck = bK[2] | |
520 | 520 | let aO = F(bM) | |
521 | 521 | let aP = F(bN) | |
522 | 522 | let cl = (ck == "true") | |
523 | 523 | let cb = [invoke(R, "booleanEntry", [aN(aO, aP), cl], nil)] | |
524 | 524 | $Tuple2(nil, cb) | |
525 | 525 | } | |
526 | 526 | else throw("Strict value is not equal to itself.") | |
527 | 527 | } | |
528 | 528 | ||
529 | 529 | ||
530 | 530 | ||
531 | 531 | @Callable(bH) | |
532 | 532 | func addSyntheticAsset (ac,bK) = { | |
533 | - | let cm = bK[0] | |
534 | - | let at = F(cm) | |
535 | - | let av = bH.payments[0].assetId | |
533 | + | let at = F(bK[0]) | |
534 | + | let av = F(bK[1]) | |
536 | 535 | let bL = [if (!(W)) | |
537 | 536 | then true | |
538 | 537 | else C("not allowed"), aa(bH.caller), ab(ac), if ((getString(R, as(at)) == unit)) | |
539 | 538 | then true | |
540 | - | else C("invalid base asset"), if ((size(bH.payments) == 1)) | |
541 | - | then true | |
542 | - | else C("invalid payments"), if ((getString(R, au(av)) == unit)) | |
539 | + | else C("invalid base asset"), if ((getString(R, au(av)) == unit)) | |
543 | 540 | then true | |
544 | 541 | else C("invalid synthetic asset")] | |
545 | 542 | if ((bL == bL)) | |
546 | 543 | then { | |
547 | 544 | let cb = [invoke(R, "stringEntry", [as(at), H(av)], nil), invoke(R, "stringEntry", [au(av), H(at)], nil)] | |
548 | 545 | $Tuple2(nil, cb) | |
549 | 546 | } | |
550 | 547 | else throw("Strict value is not equal to itself.") | |
551 | 548 | } | |
552 | 549 | ||
553 | 550 | ||
554 | 551 | ||
555 | 552 | @Callable(bH) | |
556 | 553 | func doShutdown (ac,bK) = { | |
557 | 554 | let bQ = [aa(bH.caller), ab(ac)] | |
558 | 555 | if ((bQ == bQ)) | |
559 | 556 | then { | |
560 | 557 | let cb = [invoke(R, "booleanEntry", [p, true], nil)] | |
561 | 558 | $Tuple2(nil, cb) | |
562 | 559 | } | |
563 | 560 | else throw("Strict value is not equal to itself.") | |
564 | 561 | } | |
565 | 562 | ||
566 | 563 | ||
567 | - | @Verifier( | |
568 | - | func | |
564 | + | @Verifier(cm) | |
565 | + | func cn () = if (if (isDefined(Q)) | |
569 | 566 | then isDefined(getString(R, l)) | |
570 | 567 | else false) | |
571 | 568 | then { | |
572 | 569 | let L = getString(R, l) | |
573 | 570 | if ($isInstanceOf(L, "String")) | |
574 | 571 | then { | |
575 | 572 | let ad = L | |
576 | - | let | |
577 | - | let | |
578 | - | | |
573 | + | let co = m(toString(this), toBase58String(cm.id)) | |
574 | + | let cp = valueOrElse(getBoolean(addressFromStringValue(ad), co), false) | |
575 | + | cp | |
579 | 576 | } | |
580 | 577 | else false | |
581 | 578 | } | |
582 | - | else sigVerify( | |
579 | + | else sigVerify(cm.bodyBytes, cm.proofs[0], cm.senderPublicKey) | |
583 | 580 |
github/deemru/w8io/169f3d6 63.47 ms ◑