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