tx · 4nXj1QNCDqkbazwVwiK3g7BYJAx814Jmx574L4dBXxa9 3N3kKNoJohjVQYNLTrYTGTesr3nq3PZNh37: -0.02700000 Waves 2024.07.09 15:51 [3186503] smart account 3N3kKNoJohjVQYNLTrYTGTesr3nq3PZNh37 > SELF 0.00000000 Waves
{ "type": 13, "id": "4nXj1QNCDqkbazwVwiK3g7BYJAx814Jmx574L4dBXxa9", "fee": 2700000, "feeAssetId": null, "timestamp": 1720529526507, "version": 1, "sender": "3N3kKNoJohjVQYNLTrYTGTesr3nq3PZNh37", "senderPublicKey": "vmMXxwQAMUAoisvL193ptPiTtaWQqL5YNu2zs1ouTbY", "proofs": [ "27RVpTiAQHs8PuHxU4nKJRp4GR9ATCYBKzUFwMTiHAeeQY6236PpCUNPAMdNBpik6WiqKMZBocQ6GR1sua3BjJJR" ], "script": "base64:BwJJCAISAwoBCBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGFoACXNlcGFyYXRvcgICX18AB2NoYWluSWQJAMkBAgkAygECCAUEdGhpcwVieXRlcwABAAEACGNoYWluSWRXAQFXABBjb250cmFjdEZpbGVuYW1lAhdmdXR1cmVzX2NhbGN1bGF0b3IucmlkZQAFbXVsdDgAgMLXLwAMbXVsdDE4QmlnSW50CQC2AgEAgICQu7rWrfANAA13YXZlc0RlY2ltYWxzAAgADHVzZHREZWNpbWFscwAGAAt3YXZlc1N0cmluZwIFV0FWRVMADXF1ZXVlSXRlbVNpemUAIAAEYmlnMAkAtgIBAAAACWtNdWx0aXNpZwIMJXNfX211bHRpc2lnAQdrU3RhdHVzAgRkYXBwBHR4SWQJALkJAgkAzAgCAgolc19fc3RhdHVzCQDMCAIFBGRhcHAJAMwIAgUEdHhJZAUDbmlsBQlzZXBhcmF0b3IACWtTaHV0ZG93bgIMJXNfX3NodXRkb3duAAtrUHVibGljS2V5cwIOJXNfX3B1YmxpY0tleXMAEWtNYXRjaGVyUHVibGljS2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AAECBQckbWF0Y2gwAgZTdHJpbmcECG11bHRpc2lnBQckbWF0Y2gwBAlzdGF0dXNLZXkJAQdrU3RhdHVzAgkApQgBBQR0aGlzCQDYBAEIBQJ0eAJpZAQGc3RhdHVzCQELdmFsdWVPckVsc2UCCQCbCAIJARFAZXh0ck5hdGl2ZSgxMDYyKQEFCG11bHRpc2lnBQlzdGF0dXNLZXkHBQZzdGF0dXMHCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5+sM2KA==", "chainId": 84, "height": 3186503, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HTfawEvDjXoyAAMqobWkMwKdrf1whxkMw35grEAo9vjY Next: BoQFhvXxcDFC6HT6meRxoiq2Mn8VqVAP1UhTGCvLx69w Diff:
Old | New | Differences | |
---|---|---|---|
333 | 333 | let bk = valueOrErrorMessage(getInteger(S, as(ao)), A("leverage should be defined")) | |
334 | 334 | let au = bG(ao) | |
335 | 335 | let bM = valueOrErrorMessage(getBinary(S, aG(au)), "kRequestIdToAccountPublicKey not found") | |
336 | - | let bN = | |
336 | + | let bN = valueOrElse(ap(ao), 0) | |
337 | 337 | let bb = s(aU(aQ), P(aR)) | |
338 | - | let aZ = | |
339 | - | let ba = | |
338 | + | let aZ = valueOrElse(getInteger(S, aq(ao, aQ)), 0) | |
339 | + | let ba = valueOrElse(getInteger(S, aq(ao, aR)), 0) | |
340 | 340 | let bO = valueOrErrorMessage(getInteger(S, aB(au)), ("status not found. RequestId = " + toBase58String(au))) | |
341 | 341 | $Tuple12(H(aQ), H(aR), toString(ao), toBase58String(bM), bk, toBase58String(au), bN, aZ, ba, M(aQ, ao), M(aR, ao), bO) | |
342 | 342 | } | |
614 | 614 | if ((bY == bY)) | |
615 | 615 | then { | |
616 | 616 | let bW = valueOrErrorMessage(addressFromString(bS[0]), A("invalid user address")) | |
617 | - | let cs = | |
617 | + | let cs = valueOrElse(getBinary(S, aM(bW)), base58'') | |
618 | 618 | let bX = (size(cs) / j) | |
619 | 619 | let ct = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19] | |
620 | 620 | func cu (cv,cw) = { |
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 (J,z) = { | |
84 | 84 | let L = J | |
85 | 85 | if ($isInstanceOf(L, "Unit")) | |
86 | 86 | then wavesBalance(z).available | |
87 | 87 | else if ($isInstanceOf(L, "ByteVector")) | |
88 | 88 | then { | |
89 | 89 | let J = L | |
90 | 90 | assetBalance(z, J) | |
91 | 91 | } | |
92 | 92 | else throw("Match error") | |
93 | 93 | } | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func N (O) = pow(10, 0, O, 0, 0, DOWN) | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | func P (J) = N(K(J)) | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | let Q = "%s__factoryAddress" | |
103 | 103 | ||
104 | 104 | let R = { | |
105 | 105 | let L = getString(this, Q) | |
106 | 106 | if ($isInstanceOf(L, "String")) | |
107 | 107 | then { | |
108 | 108 | let B = L | |
109 | 109 | addressFromString(B) | |
110 | 110 | } | |
111 | 111 | else if ($isInstanceOf(L, "Unit")) | |
112 | 112 | then unit | |
113 | 113 | else throw("Match error") | |
114 | 114 | } | |
115 | 115 | ||
116 | 116 | let S = valueOrErrorMessage(R, A("invalid factory address")) | |
117 | 117 | ||
118 | 118 | let T = "%s__usdtAssetId" | |
119 | 119 | ||
120 | 120 | let U = { | |
121 | 121 | let L = getString(S, T) | |
122 | 122 | if ($isInstanceOf(L, "String")) | |
123 | 123 | then { | |
124 | 124 | let B = L | |
125 | 125 | F(B) | |
126 | 126 | } | |
127 | 127 | else if ($isInstanceOf(L, "Unit")) | |
128 | 128 | then unit | |
129 | 129 | else throw("Match error") | |
130 | 130 | } | |
131 | 131 | ||
132 | 132 | let V = valueOrErrorMessage(U, A("invalid usdt asset id")) | |
133 | 133 | ||
134 | 134 | let W = "%s__calculatorAddress" | |
135 | 135 | ||
136 | 136 | let X = valueOrElse(getBoolean(S, p), false) | |
137 | 137 | ||
138 | 138 | func Y (Z,z) = if ((Z == z)) | |
139 | 139 | then true | |
140 | 140 | else C("permission denied") | |
141 | 141 | ||
142 | 142 | ||
143 | 143 | func aa (Z) = Y(Z, this) | |
144 | 144 | ||
145 | 145 | ||
146 | 146 | func ab (Z) = Y(Z, S) | |
147 | 147 | ||
148 | 148 | ||
149 | 149 | func ac (ad) = { | |
150 | 150 | let ae = addressFromStringValue(getStringValue(S, l)) | |
151 | 151 | let af = split(getStringValue(ae, q), a) | |
152 | 152 | if (containsElement(af, toBase58String(ad))) | |
153 | 153 | then true | |
154 | 154 | else C("not allowed") | |
155 | 155 | } | |
156 | 156 | ||
157 | 157 | ||
158 | 158 | let ag = "%s__accountScript" | |
159 | 159 | ||
160 | 160 | func ah () = valueOrErrorMessage(getBinary(S, ag), A("account script is not set")) | |
161 | 161 | ||
162 | 162 | ||
163 | 163 | let ai = "%s__rewardAmount" | |
164 | 164 | ||
165 | 165 | func aj () = valueOrErrorMessage(getInteger(S, ai), A("reward amount is not set")) | |
166 | 166 | ||
167 | 167 | ||
168 | 168 | let ak = "%s__accountsLimit" | |
169 | 169 | ||
170 | 170 | let al = 20 | |
171 | 171 | ||
172 | 172 | func am () = valueOrElse(getInteger(S, ak), al) | |
173 | 173 | ||
174 | 174 | ||
175 | 175 | func an (ao) = makeString(["%s%s", "deposited", toString(ao)], a) | |
176 | 176 | ||
177 | 177 | ||
178 | 178 | func ap (ao) = getInteger(S, an(ao)) | |
179 | 179 | ||
180 | 180 | ||
181 | 181 | func aq (ao,J) = makeString(["%s%s%s", "credit", toString(ao), H(J)], a) | |
182 | 182 | ||
183 | 183 | ||
184 | 184 | func ar (ao,J) = getInteger(S, aq(ao, J)) | |
185 | 185 | ||
186 | 186 | ||
187 | 187 | func as (ao) = makeString(["%s%s", "leverage", toString(ao)], a) | |
188 | 188 | ||
189 | 189 | ||
190 | 190 | func at (au) = makeString(["%s%s", "requestLeverage", toBase58String(au)], a) | |
191 | 191 | ||
192 | 192 | ||
193 | 193 | func av (aw) = makeString(["%s%s", "syntheticAssetId", H(aw)], a) | |
194 | 194 | ||
195 | 195 | ||
196 | 196 | func ax (ay) = makeString(["%s%s", "baseAssetId", H(ay)], a) | |
197 | 197 | ||
198 | 198 | ||
199 | 199 | let az = 0 | |
200 | 200 | ||
201 | 201 | let aA = 1 | |
202 | 202 | ||
203 | 203 | func aB (au) = makeString(["%s%s", toBase58String(au), "status"], a) | |
204 | 204 | ||
205 | 205 | ||
206 | 206 | func aC (ao) = makeString(["%s%s", toString(ao), "creatorPublicKey"], a) | |
207 | 207 | ||
208 | 208 | ||
209 | 209 | func aD (au) = makeString(["%s%s", toBase58String(au), "ownerPublicKey"], a) | |
210 | 210 | ||
211 | 211 | ||
212 | 212 | func aE (au) = makeString(["%s%s", toBase58String(au), "amountAssetId"], a) | |
213 | 213 | ||
214 | 214 | ||
215 | 215 | func aF (au) = makeString(["%s%s", toBase58String(au), "priceAssetId"], a) | |
216 | 216 | ||
217 | 217 | ||
218 | 218 | func aG (au) = makeString(["%s%s", toBase58String(au), "requestIdToAccountPublicKey"], a) | |
219 | 219 | ||
220 | 220 | ||
221 | 221 | func aH (ao) = makeString(["%s%s", toString(ao), "accountAddressToRequestId"], a) | |
222 | 222 | ||
223 | 223 | ||
224 | 224 | func aI () = makeString(["%s", "requestsQueue"], a) | |
225 | 225 | ||
226 | 226 | ||
227 | 227 | func aJ () = valueOrElse(getBinary(S, aI()), base58'') | |
228 | 228 | ||
229 | 229 | ||
230 | 230 | func aK () = makeString(["%s", "accountsQueue"], a) | |
231 | 231 | ||
232 | 232 | ||
233 | 233 | func aL () = valueOrElse(getBinary(S, aK()), base58'') | |
234 | 234 | ||
235 | 235 | ||
236 | 236 | func aM (aN) = makeString(["%s%s", "requests", toString(aN)], a) | |
237 | 237 | ||
238 | 238 | ||
239 | 239 | func aO (aN) = valueOrElse(getBinary(S, aM(aN)), base58'') | |
240 | 240 | ||
241 | 241 | ||
242 | 242 | func aP (aQ,aR) = makeString(["%s%s%s", H(aQ), H(aR), "pairAllowed"], a) | |
243 | 243 | ||
244 | 244 | ||
245 | 245 | func aS (aQ,aR) = valueOrElse(getBoolean(S, aP(aQ, aR)), false) | |
246 | 246 | ||
247 | 247 | ||
248 | 248 | func aT (J) = makeString(["%s", H(J)], a) | |
249 | 249 | ||
250 | 250 | ||
251 | 251 | func aU (J) = { | |
252 | 252 | let aV = fromBase58String(valueOrErrorMessage(getString(S, r), A("invalid matcher public key"))) | |
253 | 253 | let aW = addressFromPublicKey(aV) | |
254 | 254 | let aX = valueOrErrorMessage(getInteger(aW, aT(J)), A(("invalid price, assetId = " + H(J)))) | |
255 | 255 | aX | |
256 | 256 | } | |
257 | 257 | ||
258 | 258 | ||
259 | 259 | func aY (aZ,ba,bb) = (fraction(aZ, bb, f) + ba) | |
260 | 260 | ||
261 | 261 | ||
262 | 262 | func bc (bd,be,bb) = (fraction(bd, bb, f) + be) | |
263 | 263 | ||
264 | 264 | ||
265 | 265 | func bf (bg,bh) = (bg - bh) | |
266 | 266 | ||
267 | 267 | ||
268 | 268 | func bi (bj,bk,bh) = (fraction(bj, bk, f) - bh) | |
269 | 269 | ||
270 | 270 | ||
271 | 271 | func bl (bm,bn) = if ((bm > k)) | |
272 | 272 | then (bm - bn) | |
273 | 273 | else k | |
274 | 274 | ||
275 | 275 | ||
276 | 276 | func bo (bm,bn) = if ((bm > k)) | |
277 | 277 | then (bn - bm) | |
278 | 278 | else k | |
279 | 279 | ||
280 | 280 | ||
281 | 281 | func bp (bq,br) = if ((br > k)) | |
282 | 282 | then max([k, fraction(bq, f, br)]) | |
283 | 283 | else k | |
284 | 284 | ||
285 | 285 | ||
286 | 286 | func bs (bq,br) = if ((br > k)) | |
287 | 287 | then max([k, fraction(br, f, bq)]) | |
288 | 288 | else k | |
289 | 289 | ||
290 | 290 | ||
291 | 291 | func bt (bu,bv,bb,bw) = fraction((fraction(bu, bb, f) + bv), bw, f) | |
292 | 292 | ||
293 | 293 | ||
294 | 294 | func bx (by,bw,bz) = fraction(by, bz, bw) | |
295 | 295 | ||
296 | 296 | ||
297 | 297 | func bA (bj,bB,bu,bv,bC,bD) = { | |
298 | 298 | let bE = if ((bu > k)) | |
299 | 299 | then (((bj - bB) / bu) + bC) | |
300 | 300 | else k | |
301 | 301 | let bF = if ((bv > k)) | |
302 | 302 | then (bD - ((bj - bB) / (bu / bD))) | |
303 | 303 | else k | |
304 | 304 | (bE + bF) | |
305 | 305 | } | |
306 | 306 | ||
307 | 307 | ||
308 | 308 | func bG (ao) = { | |
309 | 309 | let au = fromBase58String(valueOrErrorMessage(getString(S, aH(ao)), A("invalid account address: request id is undefined"))) | |
310 | 310 | au | |
311 | 311 | } | |
312 | 312 | ||
313 | 313 | ||
314 | 314 | func bH (ao) = { | |
315 | 315 | let au = bG(ao) | |
316 | 316 | let aQ = F(valueOrErrorMessage(getString(S, aE(au)), A("invalid amount asset id"))) | |
317 | 317 | let aR = F(valueOrErrorMessage(getString(S, aF(au)), A("invalid amount price id"))) | |
318 | 318 | $Tuple2(aQ, aR) | |
319 | 319 | } | |
320 | 320 | ||
321 | 321 | ||
322 | 322 | func bI (ao) = { | |
323 | 323 | let au = bG(ao) | |
324 | 324 | let bJ = valueOrErrorMessage(getBinary(S, aD(au)), A("invalid amount asset id")) | |
325 | 325 | bJ | |
326 | 326 | } | |
327 | 327 | ||
328 | 328 | ||
329 | 329 | func bK (ao) = { | |
330 | 330 | let bL = bH(ao) | |
331 | 331 | let aQ = bL._1 | |
332 | 332 | let aR = bL._2 | |
333 | 333 | let bk = valueOrErrorMessage(getInteger(S, as(ao)), A("leverage should be defined")) | |
334 | 334 | let au = bG(ao) | |
335 | 335 | let bM = valueOrErrorMessage(getBinary(S, aG(au)), "kRequestIdToAccountPublicKey not found") | |
336 | - | let bN = | |
336 | + | let bN = valueOrElse(ap(ao), 0) | |
337 | 337 | let bb = s(aU(aQ), P(aR)) | |
338 | - | let aZ = | |
339 | - | let ba = | |
338 | + | let aZ = valueOrElse(getInteger(S, aq(ao, aQ)), 0) | |
339 | + | let ba = valueOrElse(getInteger(S, aq(ao, aR)), 0) | |
340 | 340 | let bO = valueOrErrorMessage(getInteger(S, aB(au)), ("status not found. RequestId = " + toBase58String(au))) | |
341 | 341 | $Tuple12(H(aQ), H(aR), toString(ao), toBase58String(bM), bk, toBase58String(au), bN, aZ, ba, M(aQ, ao), M(aR, ao), bO) | |
342 | 342 | } | |
343 | 343 | ||
344 | 344 | ||
345 | 345 | @Callable(bP) | |
346 | 346 | func init (bQ) = { | |
347 | 347 | let bR = aa(bP.caller) | |
348 | 348 | if ((bR == bR)) | |
349 | 349 | then $Tuple2([StringEntry(Q, bQ)], unit) | |
350 | 350 | else throw("Strict value is not equal to itself.") | |
351 | 351 | } | |
352 | 352 | ||
353 | 353 | ||
354 | 354 | ||
355 | 355 | @Callable(bP) | |
356 | 356 | func requestAccount (ad,bS) = { | |
357 | 357 | let bT = [if (!(X)) | |
358 | 358 | then true | |
359 | 359 | else C("not allowed"), ab(bP.caller)] | |
360 | 360 | if ((bT == bT)) | |
361 | 361 | then { | |
362 | 362 | let bU = bS[0] | |
363 | 363 | let bV = bS[1] | |
364 | 364 | let bk = valueOrErrorMessage(parseInt(bS[2]), A("invalid leverage")) | |
365 | 365 | let bW = addressFromPublicKey(ad) | |
366 | 366 | let au = sha256(((bW.bytes + fromBase58String(bU)) + fromBase58String(bV))) | |
367 | 367 | let aQ = F(bU) | |
368 | 368 | let aR = F(bV) | |
369 | 369 | let bX = (size(aM(bW)) / j) | |
370 | 370 | let bY = [if ((size(bP.payments) == 1)) | |
371 | 371 | then true | |
372 | 372 | else C("1 payment is required"), if ((bP.payments[0].assetId == unit)) | |
373 | 373 | then true | |
374 | 374 | else C("invalid asset"), if ((bP.payments[0].amount == aj())) | |
375 | 375 | then true | |
376 | 376 | else C("invalid amount"), if (aS(aQ, aR)) | |
377 | 377 | then true | |
378 | 378 | else C("pair is not allowed"), if ((getInteger(S, aB(au)) == unit)) | |
379 | 379 | then true | |
380 | 380 | else C("account is already exists"), if ((am() > bX)) | |
381 | 381 | then true | |
382 | 382 | else C(("accounts limit is " + toString(am())))] | |
383 | 383 | if ((bY == bY)) | |
384 | 384 | then { | |
385 | 385 | let bZ = if ((size(aL()) == 0)) | |
386 | 386 | then $Tuple2([ScriptTransfer(S, aj(), unit)], [invoke(S, "integerEntry", [aB(au), az], nil), invoke(S, "binaryEntry", [aI(), (aJ() + au)], nil), invoke(S, "integerEntry", [at(au), bk], nil)]) | |
387 | 387 | else { | |
388 | 388 | let bM = take(aL(), j) | |
389 | 389 | let ao = addressFromPublicKey(bM) | |
390 | 390 | let ca = addressFromPublicKey(valueOrErrorMessage(getBinary(S, aC(ao)), A("invalid creator public key"))) | |
391 | 391 | $Tuple2([ScriptTransfer(ca, aj(), unit)], [invoke(S, "binaryEntry", [aK(), drop(aL(), j)], nil), invoke(S, "integerEntry", [aB(au), aA], nil), invoke(S, "binaryEntry", [aG(au), bM], nil), invoke(S, "stringEntry", [aH(ao), toBase58String(au)], nil), invoke(S, "integerEntry", [as(ao), bk], nil)]) | |
392 | 392 | } | |
393 | 393 | let cb = bZ._1 | |
394 | 394 | let cc = bZ._2 | |
395 | 395 | $Tuple2(cb, (cc ++ [invoke(S, "binaryEntry", [aD(au), ad], nil), invoke(S, "binaryEntry", [aM(bW), (aO(bW) + au)], nil), invoke(S, "stringEntry", [aE(au), bU], nil), invoke(S, "stringEntry", [aF(au), bV], nil)])) | |
396 | 396 | } | |
397 | 397 | else throw("Strict value is not equal to itself.") | |
398 | 398 | } | |
399 | 399 | else throw("Strict value is not equal to itself.") | |
400 | 400 | } | |
401 | 401 | ||
402 | 402 | ||
403 | 403 | ||
404 | 404 | @Callable(bP) | |
405 | 405 | func addAccount (ad,bS) = { | |
406 | 406 | let bT = [if (!(X)) | |
407 | 407 | then true | |
408 | 408 | else C("not allowed"), ab(bP.caller)] | |
409 | 409 | if ((bT == bT)) | |
410 | 410 | then { | |
411 | 411 | let cd = fromBase58String(bS[0]) | |
412 | 412 | let bM = ad | |
413 | 413 | let ao = addressFromPublicKey(ad) | |
414 | 414 | let ca = addressFromPublicKey(cd) | |
415 | 415 | let bY = [if ((getBinary(S, aC(ao)) == unit)) | |
416 | 416 | then true | |
417 | 417 | else C("account is already exists"), if ({ | |
418 | 418 | let L = scriptHash(ao) | |
419 | 419 | if ($isInstanceOf(L, "ByteVector")) | |
420 | 420 | then { | |
421 | 421 | let ce = L | |
422 | 422 | (ce == blake2b256_32Kb(ah())) | |
423 | 423 | } | |
424 | 424 | else false | |
425 | 425 | }) | |
426 | 426 | then true | |
427 | 427 | else C("invalid script")] | |
428 | 428 | if ((bY == bY)) | |
429 | 429 | then { | |
430 | 430 | let cf = if ((size(aJ()) == 0)) | |
431 | 431 | then $Tuple2(nil, [invoke(S, "binaryEntry", [aK(), (aL() + bM)], nil)]) | |
432 | 432 | else { | |
433 | 433 | let au = take(aJ(), j) | |
434 | 434 | let bk = valueOrErrorMessage(getInteger(S, at(au)), A("request's leverage is undefined")) | |
435 | 435 | $Tuple2(nil, [invoke(S, "integerEntry", [aB(au), aA], nil), invoke(S, "binaryEntry", [aG(au), bM], nil), invoke(S, "binaryEntry", [aI(), drop(aJ(), j)], nil), invoke(S, "stringEntry", [aH(ao), toBase58String(au)], nil), invoke(S, "transferWaves", [ca.bytes, aj()], nil), invoke(S, "integerEntry", [as(ao), bk], nil)]) | |
436 | 436 | } | |
437 | 437 | let cb = cf._1 | |
438 | 438 | let cc = cf._2 | |
439 | 439 | $Tuple2(cb, (cc ++ [invoke(S, "binaryEntry", [aC(ao), cd], nil)])) | |
440 | 440 | } | |
441 | 441 | else throw("Strict value is not equal to itself.") | |
442 | 442 | } | |
443 | 443 | else throw("Strict value is not equal to itself.") | |
444 | 444 | } | |
445 | 445 | ||
446 | 446 | ||
447 | 447 | ||
448 | 448 | @Callable(bP) | |
449 | 449 | func deposit (ad,bS) = { | |
450 | 450 | let cg = bP.payments[0] | |
451 | 451 | let ao = valueOrErrorMessage(addressFromString(bS[0]), A("invalid account address")) | |
452 | 452 | let bT = [if (!(X)) | |
453 | 453 | then true | |
454 | 454 | else C("not allowed"), ab(bP.caller), if ((size(bP.payments) == 1)) | |
455 | 455 | then true | |
456 | 456 | else C("1 payment is required"), if ((cg.assetId == V)) | |
457 | 457 | then true | |
458 | 458 | else C("invalid asset"), if ((getInteger(S, aB(bG(ao))) == aA)) | |
459 | 459 | then true | |
460 | 460 | else C("account is not ready")] | |
461 | 461 | if ((bT == bT)) | |
462 | 462 | then { | |
463 | 463 | let cb = [ScriptTransfer(ao, cg.amount, cg.assetId)] | |
464 | 464 | let cc = [invoke(S, "integerEntry", [an(ao), (valueOrElse(ap(ao), 0) + cg.amount)], nil)] | |
465 | 465 | $Tuple2(cb, cc) | |
466 | 466 | } | |
467 | 467 | else throw("Strict value is not equal to itself.") | |
468 | 468 | } | |
469 | 469 | ||
470 | 470 | ||
471 | 471 | ||
472 | 472 | @Callable(bP) | |
473 | 473 | func withdraw (ad,bS) = { | |
474 | 474 | let bT = [if (!(X)) | |
475 | 475 | then true | |
476 | 476 | else C("not allowed"), ab(bP.caller)] | |
477 | 477 | if ((bT == bT)) | |
478 | 478 | then { | |
479 | 479 | let bW = addressFromPublicKey(ad) | |
480 | 480 | let ao = valueOrErrorMessage(addressFromString(bS[0]), A("invalid account address")) | |
481 | 481 | let ch = valueOrErrorMessage(parseInt(bS[1]), A("invalid amount")) | |
482 | 482 | let J = F(bS[2]) | |
483 | 483 | let ci = [invoke(ao, "transferAsset", [bW.bytes, ch, J], nil)] | |
484 | 484 | $Tuple2(nil, ci) | |
485 | 485 | } | |
486 | 486 | else throw("Strict value is not equal to itself.") | |
487 | 487 | } | |
488 | 488 | ||
489 | 489 | ||
490 | 490 | ||
491 | 491 | @Callable(bP) | |
492 | 492 | func borrow (ad,bS) = { | |
493 | 493 | let ao = valueOrErrorMessage(addressFromString(bS[0]), A("invalid account address")) | |
494 | 494 | let cj = F(bS[1]) | |
495 | 495 | let ck = D(valueOrErrorMessage(parseInt(bS[2]), A("invalid requested amount")), "requested amount") | |
496 | 496 | let cl = bI(ao) | |
497 | 497 | let bW = addressFromPublicKey(ad) | |
498 | 498 | let bT = [if (!(X)) | |
499 | 499 | then true | |
500 | 500 | else C("not allowed"), ab(bP.caller), if ((ad == cl)) | |
501 | 501 | then true | |
502 | 502 | else C("can be called by account owner only")] | |
503 | 503 | if ((bT == bT)) | |
504 | 504 | then { | |
505 | 505 | let aQ = bH(ao)._1 | |
506 | 506 | let bN = s(valueOrElse(ap(ao), 0), P(V)) | |
507 | 507 | let bb = s(aU(aQ), P(V)) | |
508 | 508 | let aZ = s(valueOrElse(getInteger(S, aq(ao, aQ)), 0), P(aQ)) | |
509 | 509 | let ba = s(valueOrElse(getInteger(S, aq(ao, V)), 0), P(V)) | |
510 | 510 | let bh = aY(aZ, ba, bb) | |
511 | 511 | let bk = s(valueOrErrorMessage(getInteger(S, as(ao)), A("leverage should be defined")), 1) | |
512 | 512 | let cm = bi(bN, bk, bh) | |
513 | 513 | let cn = if ((cj == aQ)) | |
514 | 514 | then v(fraction(cm, f, bb), P(aQ)) | |
515 | 515 | else if ((cj == V)) | |
516 | 516 | then v(cm, P(V)) | |
517 | 517 | else C("invalid requested asset id") | |
518 | 518 | let ay = F(valueOrErrorMessage(getString(S, av(cj)), A("synthetic asset for requested asset is undefined"))) | |
519 | 519 | let co = if ((cn >= ck)) | |
520 | 520 | then ck | |
521 | 521 | else C(("credit available = " + toString(cn))) | |
522 | 522 | let cc = [invoke(S, "integerEntry", [aq(ao, cj), (valueOrElse(ar(ao, cj), 0) + co)], nil), invoke(S, "transferAsset", [bW.bytes, co, ay], nil)] | |
523 | 523 | $Tuple2(nil, [cc, cn]) | |
524 | 524 | } | |
525 | 525 | else throw("Strict value is not equal to itself.") | |
526 | 526 | } | |
527 | 527 | ||
528 | 528 | ||
529 | 529 | ||
530 | 530 | @Callable(bP) | |
531 | 531 | func repay (ad,bS) = { | |
532 | 532 | let bT = [if (!(X)) | |
533 | 533 | then true | |
534 | 534 | else C("not allowed"), ab(bP.caller)] | |
535 | 535 | if ((bT == bT)) | |
536 | 536 | then $Tuple2(nil, unit) | |
537 | 537 | else throw("Strict value is not equal to itself.") | |
538 | 538 | } | |
539 | 539 | ||
540 | 540 | ||
541 | 541 | ||
542 | 542 | @Callable(bP) | |
543 | 543 | func setPairAllowance (ad,bS) = { | |
544 | 544 | let bT = [if (!(X)) | |
545 | 545 | then true | |
546 | 546 | else C("not allowed"), ab(bP.caller), ac(ad)] | |
547 | 547 | if ((bT == bT)) | |
548 | 548 | then { | |
549 | 549 | let bU = bS[0] | |
550 | 550 | let bV = bS[1] | |
551 | 551 | let cp = bS[2] | |
552 | 552 | let aQ = F(bU) | |
553 | 553 | let aR = F(bV) | |
554 | 554 | let cq = (cp == "true") | |
555 | 555 | let ci = [invoke(S, "booleanEntry", [aP(aQ, aR), cq], nil)] | |
556 | 556 | $Tuple2(nil, ci) | |
557 | 557 | } | |
558 | 558 | else throw("Strict value is not equal to itself.") | |
559 | 559 | } | |
560 | 560 | ||
561 | 561 | ||
562 | 562 | ||
563 | 563 | @Callable(bP) | |
564 | 564 | func addSyntheticAsset (ad,bS) = { | |
565 | 565 | let aw = F(bS[0]) | |
566 | 566 | let ay = F(bS[1]) | |
567 | 567 | let bT = [if (!(X)) | |
568 | 568 | then true | |
569 | 569 | else C("not allowed"), ab(bP.caller), ac(ad), if ((getString(S, av(aw)) == unit)) | |
570 | 570 | then true | |
571 | 571 | else C("invalid base asset"), if ((getString(S, ax(ay)) == unit)) | |
572 | 572 | then true | |
573 | 573 | else C("invalid synthetic asset")] | |
574 | 574 | if ((bT == bT)) | |
575 | 575 | then { | |
576 | 576 | let ci = [invoke(S, "stringEntry", [av(aw), H(ay)], nil), invoke(S, "stringEntry", [ax(ay), H(aw)], nil)] | |
577 | 577 | $Tuple2(nil, ci) | |
578 | 578 | } | |
579 | 579 | else throw("Strict value is not equal to itself.") | |
580 | 580 | } | |
581 | 581 | ||
582 | 582 | ||
583 | 583 | ||
584 | 584 | @Callable(bP) | |
585 | 585 | func doShutdown (ad,bS) = { | |
586 | 586 | let bY = [ab(bP.caller), ac(ad)] | |
587 | 587 | if ((bY == bY)) | |
588 | 588 | then { | |
589 | 589 | let ci = [invoke(S, "booleanEntry", [p, true], nil)] | |
590 | 590 | $Tuple2(nil, ci) | |
591 | 591 | } | |
592 | 592 | else throw("Strict value is not equal to itself.") | |
593 | 593 | } | |
594 | 594 | ||
595 | 595 | ||
596 | 596 | ||
597 | 597 | @Callable(bP) | |
598 | 598 | func getAccountInfoREADONLY (ad,bS) = { | |
599 | 599 | let bY = [ab(bP.caller)] | |
600 | 600 | if ((bY == bY)) | |
601 | 601 | then { | |
602 | 602 | let ao = valueOrErrorMessage(addressFromString(bS[0]), A("invalid account address")) | |
603 | 603 | let cr = bK(ao) | |
604 | 604 | $Tuple2(nil, cr) | |
605 | 605 | } | |
606 | 606 | else throw("Strict value is not equal to itself.") | |
607 | 607 | } | |
608 | 608 | ||
609 | 609 | ||
610 | 610 | ||
611 | 611 | @Callable(bP) | |
612 | 612 | func getUserInfoREADONLY (ad,bS) = { | |
613 | 613 | let bY = [ab(bP.caller)] | |
614 | 614 | if ((bY == bY)) | |
615 | 615 | then { | |
616 | 616 | let bW = valueOrErrorMessage(addressFromString(bS[0]), A("invalid user address")) | |
617 | - | let cs = | |
617 | + | let cs = valueOrElse(getBinary(S, aM(bW)), base58'') | |
618 | 618 | let bX = (size(cs) / j) | |
619 | 619 | let ct = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19] | |
620 | 620 | func cu (cv,cw) = { | |
621 | 621 | let cx = cv | |
622 | 622 | let cy = cx._1 | |
623 | 623 | let cz = cx._2 | |
624 | 624 | let cA = cx._3 | |
625 | 625 | if ((cA > cw)) | |
626 | 626 | then { | |
627 | 627 | let au = take(cz, j) | |
628 | 628 | let cB = drop(cz, j) | |
629 | 629 | let bM = valueOrErrorMessage(getBinary(S, aG(au)), "kRequestIdToAccountPublicKey not found") | |
630 | 630 | let ao = addressFromPublicKey(bM) | |
631 | 631 | let cr = bK(ao) | |
632 | 632 | $Tuple3((cy :+ cr), cB, cA) | |
633 | 633 | } | |
634 | 634 | else cv | |
635 | 635 | } | |
636 | 636 | ||
637 | 637 | let cC = { | |
638 | 638 | let cD = ct | |
639 | 639 | let cE = size(cD) | |
640 | 640 | let cF = $Tuple3(nil, cs, bX) | |
641 | 641 | func cG (cH,cI) = if ((cI >= cE)) | |
642 | 642 | then cH | |
643 | 643 | else cu(cH, cD[cI]) | |
644 | 644 | ||
645 | 645 | func cJ (cH,cI) = if ((cI >= cE)) | |
646 | 646 | then cH | |
647 | 647 | else throw("List size exceeds 20") | |
648 | 648 | ||
649 | 649 | cJ(cG(cG(cG(cG(cG(cG(cG(cG(cG(cG(cG(cG(cG(cG(cG(cG(cG(cG(cG(cG(cF, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
650 | 650 | } | |
651 | 651 | let cy = cC._1 | |
652 | 652 | let cK = cC._2 | |
653 | 653 | let cL = cC._3 | |
654 | 654 | $Tuple2(nil, cy) | |
655 | 655 | } | |
656 | 656 | else throw("Strict value is not equal to itself.") | |
657 | 657 | } | |
658 | 658 | ||
659 | 659 | ||
660 | 660 | @Verifier(cM) | |
661 | 661 | func cN () = if (if (isDefined(R)) | |
662 | 662 | then isDefined(getString(S, l)) | |
663 | 663 | else false) | |
664 | 664 | then { | |
665 | 665 | let L = getString(S, l) | |
666 | 666 | if ($isInstanceOf(L, "String")) | |
667 | 667 | then { | |
668 | 668 | let ae = L | |
669 | 669 | let cO = m(toString(this), toBase58String(cM.id)) | |
670 | 670 | let bO = valueOrElse(getBoolean(addressFromStringValue(ae), cO), false) | |
671 | 671 | bO | |
672 | 672 | } | |
673 | 673 | else false | |
674 | 674 | } | |
675 | 675 | else sigVerify(cM.bodyBytes, cM.proofs[0], cM.senderPublicKey) | |
676 | 676 |
github/deemru/w8io/026f985 70.85 ms ◑