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