tx · BRGUuwmKsMY4YGncvLohaKebGnALhZaoJ1XW3Txh81pB 3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS: -0.28000000 Waves 2023.04.18 12:27 [2539810] smart account 3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS > SELF 0.00000000 Waves
{ "type": 13, "id": "BRGUuwmKsMY4YGncvLohaKebGnALhZaoJ1XW3Txh81pB", "fee": 28000000, "feeAssetId": null, "timestamp": 1681810071871, "version": 2, "chainId": 84, "sender": "3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS", "senderPublicKey": "HP8sssVq1866F7CaPQJwgFrt6fsqhQjKwM84cL1wjD2a", "proofs": [ "C9MPpLBHnGpor52LnjGBYvUnKMa93eXZ3WXvi9FeUEXsnrRnEqbtQZsnNvqrJDH9jwczNm42fR6rdXiJbfTWP9y" ], "script": "base64:BgJVCAISBQoDCAEIEgUKAwgBCBIDCgEIEgQKAggBEgMKAQgSDgoMCAgIAQQRGBgRAQEYEgoKCAgICAEECAEYEg4KDAgICAEEGBgYGBgBGBIHCgUICAEBAUIAB1NGX1BPT0wCAlNGAAdXWF9QT09MAgJXWAAHQ0FQX0ZFRQIDY2FwAAhMT0FOX0ZFRQIEbG9hbgALTk9fTE9BTl9GRUUCBm5vTG9hbgAGU0NBTEU4AIDC1y8AB1NDQUxFMTAAgMivoCUACkZFRV9TQ0FMRTYAwIQ9ABRrU0ZQb29sQUFzc2V0QmFsYW5jZQIPQV9hc3NldF9iYWxhbmNlABRrU0ZQb29sQkFzc2V0QmFsYW5jZQIPQl9hc3NldF9iYWxhbmNlAA9rU0ZQb29sQUFzc2V0SWQCCkFfYXNzZXRfaWQAD2tTRlBvb2xCQXNzZXRJZAIKQl9hc3NldF9pZAAOa1NGUG9vbFNoYXJlSWQCDnNoYXJlX2Fzc2V0X2lkAAprU0ZQb29sRmVlAgpjb21taXNzaW9uAA1rVXNlclBvc2l0aW9uAg5fdXNlcl9wb3NpdGlvbgARa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bnRyeQFpAQtpbml0TmV3UG9vbAUEdHlwZQhwb29sQWRkcgtpbkZlZU5vTG9hbglpbkZlZUxvYW4GY2FwRmVlAwMJAQIhPQIFBHR5cGUFB1NGX1BPT0wJAQIhPQIFBHR5cGUFB1dYX1BPT0wHCQACAQIKV3JvbmcgdHlwZQkAzAgCCQEMSW50ZWdlckVudHJ5AgkArAICBQhwb29sQWRkcgUVa0F4bHlJbkZlZVdpdGhvdXRMb2FuBQtpbkZlZU5vTG9hbgkAzAgCCQEMSW50ZWdlckVudHJ5AgkArAICBQhwb29sQWRkcgUSa0F4bHlJbkZlZVdpdGhMb2FuBQlpbkZlZUxvYW4JAMwIAgkBDEludGVnZXJFbnRyeQIJAKwCAgUIcG9vbEFkZHIFC2tBeGx5Q2FwRmVlBQZjYXBGZWUJAMwIAgkBDEludGVnZXJFbnRyeQIJAKwCAgUIcG9vbEFkZHIFDWtQb29sSW50ZXJlc3QAAAkAzAgCCQELU3RyaW5nRW50cnkCCQCsAgIFBWtQb29sBQhwb29sQWRkcgUEdHlwZQUDbmlsAQJ0eAEGdmVyaWZ5AAkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleYeF+eA=", "height": 2539810, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5icAixP2HAxx5V1Tf9LnFxQXzcPkWYG2bP9q6nB6GPG2 Next: A3vqRNg758z1HUkb5iZ1PU9ZWmSeYNW46nMCQkeWoHHr Diff:
Old | New | Differences | |
---|---|---|---|
471 | 471 | } | |
472 | 472 | let bY = bX._1 | |
473 | 473 | let bZ = bX._2 | |
474 | - | invoke(W, "callFunction", ["exchange", "1"], [AttachedPayment(ao(bZ), bY)]) | |
474 | + | invoke(W, "callFunction", ["exchange", ["1"]], [AttachedPayment(ao(bZ), bY)]) | |
475 | 475 | } | |
476 | 476 | ||
477 | 477 | ||
625 | 625 | let cA = cO._3 | |
626 | 626 | let bQ = cO._2 | |
627 | 627 | let cz = cO._1 | |
628 | - | $Tuple2(nil, | |
628 | + | $Tuple2(nil, [cN, cz, cA]) | |
629 | 629 | } | |
630 | 630 | else throw("Strict value is not equal to itself.") | |
631 | 631 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "SF" | |
5 | 5 | ||
6 | 6 | let b = "WX" | |
7 | 7 | ||
8 | 8 | let c = "cap" | |
9 | 9 | ||
10 | 10 | let d = "loan" | |
11 | 11 | ||
12 | 12 | let e = "noLoan" | |
13 | 13 | ||
14 | 14 | let f = 100000000 | |
15 | 15 | ||
16 | 16 | let g = 10000000000 | |
17 | 17 | ||
18 | 18 | let h = 1000000 | |
19 | 19 | ||
20 | 20 | let i = "A_asset_balance" | |
21 | 21 | ||
22 | 22 | let j = "B_asset_balance" | |
23 | 23 | ||
24 | 24 | let k = "A_asset_id" | |
25 | 25 | ||
26 | 26 | let l = "B_asset_id" | |
27 | 27 | ||
28 | 28 | let m = "share_asset_id" | |
29 | 29 | ||
30 | 30 | let n = "commission" | |
31 | 31 | ||
32 | 32 | let o = "_user_position" | |
33 | 33 | ||
34 | 34 | let p = "_user_position_borrow_amount" | |
35 | 35 | ||
36 | 36 | let q = "_user_position_borrow_asset_id" | |
37 | 37 | ||
38 | 38 | let r = "_user_position_number" | |
39 | 39 | ||
40 | 40 | let s = "_user_position_interest" | |
41 | 41 | ||
42 | 42 | let t = "_pool_total" | |
43 | 43 | ||
44 | 44 | let u = "_pool_interest" | |
45 | 45 | ||
46 | 46 | let v = "_axly_fee_without_loan" | |
47 | 47 | ||
48 | 48 | let w = "_axly_fee_with_loan" | |
49 | 49 | ||
50 | 50 | let x = "_axly_fee_cap" | |
51 | 51 | ||
52 | 52 | let y = "_request_id" | |
53 | 53 | ||
54 | 54 | let z = "requests_iter" | |
55 | 55 | ||
56 | 56 | let A = "pool_" | |
57 | 57 | ||
58 | 58 | let B = "_pool_cap_change" | |
59 | 59 | ||
60 | 60 | let C = "axly_money_box" | |
61 | 61 | ||
62 | 62 | let D = "swopfi_farming_addr" | |
63 | 63 | ||
64 | 64 | let E = "lend_service_addr" | |
65 | 65 | ||
66 | 66 | let F = "price_oracle" | |
67 | 67 | ||
68 | 68 | let G = "exchange_contract" | |
69 | 69 | ||
70 | 70 | let H = "wx_swap_contract" | |
71 | 71 | ||
72 | 72 | let I = Address(fromBase58String(valueOrErrorMessage(getString(this, C), "No axly moneyBox address"))) | |
73 | 73 | ||
74 | 74 | let J = Address(fromBase58String(valueOrErrorMessage(getString(this, G), "No exchange contract address"))) | |
75 | 75 | ||
76 | 76 | let K = Address(fromBase58String(valueOrErrorMessage(getString(this, F), "No price oracle address"))) | |
77 | 77 | ||
78 | 78 | let L = Address(fromBase58String(valueOrErrorMessage(getString(this, H), "No wx swap address"))) | |
79 | 79 | ||
80 | 80 | let M = base58'4W19ndijcc2CsQa9HGW2dfXKTVXhnneWWttxXrtjPmEp' | |
81 | 81 | ||
82 | 82 | let N = base58'EMAMLxDnv3xiz8RXg8Btj33jcEw3wLczL3JKYYmuubpc' | |
83 | 83 | ||
84 | 84 | func O (P) = if ((P.caller == this)) | |
85 | 85 | then unit | |
86 | 86 | else throw("Only contract itself can call this function") | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func Q (R) = { | |
90 | 90 | let S = R | |
91 | 91 | if ($isInstanceOf(S, "ByteVector")) | |
92 | 92 | then { | |
93 | 93 | let T = S | |
94 | 94 | assetBalance(this, T) | |
95 | 95 | } | |
96 | 96 | else if ($isInstanceOf(S, "Unit")) | |
97 | 97 | then { | |
98 | 98 | let U = S | |
99 | 99 | wavesBalance(this).available | |
100 | 100 | } | |
101 | 101 | else throw("Match error") | |
102 | 102 | } | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func V (W) = $Tuple5(valueOrErrorMessage(getString(W, k), "Can't get pool A asset id"), valueOrErrorMessage(getString(W, l), "Can't get pool B asset id"), valueOrErrorMessage(getInteger(W, i), "Can't get pool A asset balance"), valueOrErrorMessage(getInteger(W, j), "Can't get pool B asset balance"), valueOrErrorMessage(getString(W, m), "Can't get share asset id")) | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | func X (W) = { | |
109 | 109 | let Y = { | |
110 | 110 | let Z = invoke(W, "getPoolConfigWrapperREADONLY", nil, nil) | |
111 | 111 | if ($isInstanceOf(Z, "List[Any]")) | |
112 | 112 | then Z | |
113 | 113 | else throw(($getType(Z) + " couldn't be cast to List[Any]")) | |
114 | 114 | } | |
115 | 115 | if ((Y == Y)) | |
116 | 116 | then $Tuple5(valueOrErrorMessage({ | |
117 | 117 | let Z = Y[4] | |
118 | 118 | if ($isInstanceOf(Z, "String")) | |
119 | 119 | then Z | |
120 | 120 | else unit | |
121 | 121 | }, "Can't get pool A asset id"), valueOrErrorMessage({ | |
122 | 122 | let Z = Y[5] | |
123 | 123 | if ($isInstanceOf(Z, "String")) | |
124 | 124 | then Z | |
125 | 125 | else unit | |
126 | 126 | }, "Can't get pool B asset id"), 0, 0, valueOrErrorMessage({ | |
127 | 127 | let Z = Y[3] | |
128 | 128 | if ($isInstanceOf(Z, "String")) | |
129 | 129 | then Z | |
130 | 130 | else unit | |
131 | 131 | }, "Can't get pool LP asset id")) | |
132 | 132 | else throw("Strict value is not equal to itself.") | |
133 | 133 | } | |
134 | 134 | ||
135 | 135 | ||
136 | 136 | func aa (W,ab) = if ((ab == a)) | |
137 | 137 | then V(W) | |
138 | 138 | else if ((ab == b)) | |
139 | 139 | then X(W) | |
140 | 140 | else throw("Wrong pool type") | |
141 | 141 | ||
142 | 142 | ||
143 | 143 | func ac (ad) = valueOrElse(getInteger(this, (ad + t)), 0) | |
144 | 144 | ||
145 | 145 | ||
146 | 146 | func ae (ad,af) = (valueOrElse(getInteger(this, (((ad + "_") + af) + r)), 0) + 1) | |
147 | 147 | ||
148 | 148 | ||
149 | 149 | func ag (ad,ah) = if ((ah == "cap")) | |
150 | 150 | then getIntegerValue(this, (ad + x)) | |
151 | 151 | else if ((ah == "loan")) | |
152 | 152 | then getIntegerValue(this, (ad + w)) | |
153 | 153 | else if ((ah == "noLoan")) | |
154 | 154 | then getIntegerValue(this, (ad + v)) | |
155 | 155 | else throw("Wrong fee type") | |
156 | 156 | ||
157 | 157 | ||
158 | 158 | func ai () = Address(fromBase58String(valueOrErrorMessage(getString(this, D), "Can't get swopfi farming addr"))) | |
159 | 159 | ||
160 | 160 | ||
161 | 161 | func aj (W) = { | |
162 | 162 | let ak = Address(fromBase58String(valueOrErrorMessage(getString(W, "%s__factoryContract"), "Can't get WX factory contract addr"))) | |
163 | 163 | let al = split(valueOrErrorMessage(getString(ak, "%s__factoryConfig"), "Can't get WX factory cfg"), "__") | |
164 | 164 | Address(fromBase58String(al[1])) | |
165 | 165 | } | |
166 | 166 | ||
167 | 167 | ||
168 | 168 | func am () = Address(fromBase58String(valueOrErrorMessage(getString(this, E), "Can't get lend service addr"))) | |
169 | 169 | ||
170 | 170 | ||
171 | 171 | func an (R) = { | |
172 | 172 | let S = R | |
173 | 173 | if ($isInstanceOf(S, "ByteVector")) | |
174 | 174 | then { | |
175 | 175 | let T = S | |
176 | 176 | toBase58String(T) | |
177 | 177 | } | |
178 | 178 | else if ($isInstanceOf(S, "Unit")) | |
179 | 179 | then { | |
180 | 180 | let U = S | |
181 | 181 | "WAVES" | |
182 | 182 | } | |
183 | 183 | else throw("Match error") | |
184 | 184 | } | |
185 | 185 | ||
186 | 186 | ||
187 | 187 | func ao (R) = if ((R == "WAVES")) | |
188 | 188 | then unit | |
189 | 189 | else fromBase58String(R) | |
190 | 190 | ||
191 | 191 | ||
192 | 192 | func ap (R) = if ((R == "WAVES")) | |
193 | 193 | then 8 | |
194 | 194 | else { | |
195 | 195 | let S = assetInfo(fromBase58String(R)) | |
196 | 196 | if ($isInstanceOf(S, "Asset")) | |
197 | 197 | then { | |
198 | 198 | let aq = S | |
199 | 199 | aq.decimals | |
200 | 200 | } | |
201 | 201 | else throw("Can't find asset") | |
202 | 202 | } | |
203 | 203 | ||
204 | 204 | ||
205 | 205 | func ar (ad,ah,as,at,au,av,aw,ax,ay) = { | |
206 | 206 | let az = Q(fromBase58String(ay)) | |
207 | 207 | if ((az == az)) | |
208 | 208 | then { | |
209 | 209 | let W = Address(fromBase58String(ad)) | |
210 | 210 | let aA = fraction(f, as, aw) | |
211 | 211 | let aB = fraction(f, au, ax) | |
212 | 212 | let aC = if ((aB > aA)) | |
213 | 213 | then { | |
214 | 214 | let aD = fraction(ax, aA, f, CEILING) | |
215 | 215 | $Tuple4(as, aD, (au - aD), av) | |
216 | 216 | } | |
217 | 217 | else { | |
218 | 218 | let aD = fraction(aw, aB, f, CEILING) | |
219 | 219 | $Tuple4(aD, au, (as - aD), at) | |
220 | 220 | } | |
221 | 221 | let aE = aC._1 | |
222 | 222 | let aF = aC._2 | |
223 | 223 | let aG = aC._3 | |
224 | 224 | let aH = aC._4 | |
225 | 225 | let aI = if (if ((aE > 0)) | |
226 | 226 | then (aF > 0) | |
227 | 227 | else false) | |
228 | 228 | then { | |
229 | 229 | let aJ = [AttachedPayment(ao(at), aE), AttachedPayment(ao(av), aF)] | |
230 | 230 | invoke(W, "callFunction", ["replenishWithTwoTokens", ["false", "0"]], aJ) | |
231 | 231 | } | |
232 | 232 | else 0 | |
233 | 233 | if ((aI == aI)) | |
234 | 234 | then { | |
235 | 235 | let aK = if ((aG > 0)) | |
236 | 236 | then { | |
237 | 237 | let aJ = [AttachedPayment(ao(aH), aG)] | |
238 | 238 | let aL = ["0", "false", "0"] | |
239 | 239 | invoke(W, "callFunction", ["replenishWithOneToken", aL], aJ) | |
240 | 240 | } | |
241 | 241 | else 0 | |
242 | 242 | if ((aK == aK)) | |
243 | 243 | then { | |
244 | 244 | let aM = Q(fromBase58String(ay)) | |
245 | 245 | let aN = (aM - az) | |
246 | 246 | let aO = fraction(aN, ag(ad, ah), h) | |
247 | 247 | let aP = (aN - aO) | |
248 | 248 | if ((0 >= aP)) | |
249 | 249 | then throw("amount of staked sharetokens must be > 0") | |
250 | 250 | else { | |
251 | 251 | let aQ = invoke(ai(), "lockShareTokens", [ad, 0], [AttachedPayment(fromBase58String(ay), aP)]) | |
252 | 252 | if ((aQ == aQ)) | |
253 | 253 | then $Tuple2(aP, aO) | |
254 | 254 | else throw("Strict value is not equal to itself.") | |
255 | 255 | } | |
256 | 256 | } | |
257 | 257 | else throw("Strict value is not equal to itself.") | |
258 | 258 | } | |
259 | 259 | else throw("Strict value is not equal to itself.") | |
260 | 260 | } | |
261 | 261 | else throw("Strict value is not equal to itself.") | |
262 | 262 | } | |
263 | 263 | ||
264 | 264 | ||
265 | 265 | func aR (ad,ah,as,at,au,av,ay) = { | |
266 | 266 | let W = Address(fromBase58String(ad)) | |
267 | 267 | let aS = if (if ((as > 0)) | |
268 | 268 | then (au > 0) | |
269 | 269 | else false) | |
270 | 270 | then { | |
271 | 271 | let aT = split({ | |
272 | 272 | let Z = invoke(W, "evaluatePutByAmountAssetREADONLY", [as], nil) | |
273 | 273 | if ($isInstanceOf(Z, "String")) | |
274 | 274 | then Z | |
275 | 275 | else throw(($getType(Z) + " couldn't be cast to String")) | |
276 | 276 | }, "__") | |
277 | 277 | if ((aT == aT)) | |
278 | 278 | then { | |
279 | 279 | let aU = split({ | |
280 | 280 | let Z = invoke(W, "evaluatePutByPriceAssetREADONLY", [au], nil) | |
281 | 281 | if ($isInstanceOf(Z, "String")) | |
282 | 282 | then Z | |
283 | 283 | else throw(($getType(Z) + " couldn't be cast to String")) | |
284 | 284 | }, "__") | |
285 | 285 | if ((aU == aU)) | |
286 | 286 | then { | |
287 | 287 | let aV = parseIntValue(aT[1]) | |
288 | 288 | let aW = parseIntValue(aU[1]) | |
289 | 289 | if ((aW > aV)) | |
290 | 290 | then { | |
291 | 291 | let aX = parseIntValue(aT[8]) | |
292 | 292 | $Tuple4(as, aX, (au - aX), av) | |
293 | 293 | } | |
294 | 294 | else { | |
295 | 295 | let aY = parseIntValue(aU[7]) | |
296 | 296 | $Tuple4(aY, au, (as - aY), at) | |
297 | 297 | } | |
298 | 298 | } | |
299 | 299 | else throw("Strict value is not equal to itself.") | |
300 | 300 | } | |
301 | 301 | else throw("Strict value is not equal to itself.") | |
302 | 302 | } | |
303 | 303 | else if ((as > 0)) | |
304 | 304 | then $Tuple4(as, au, as, at) | |
305 | 305 | else if ((au > 0)) | |
306 | 306 | then $Tuple4(as, au, au, av) | |
307 | 307 | else throw("pmts must be > 0") | |
308 | 308 | let aE = aS._1 | |
309 | 309 | let aF = aS._2 | |
310 | 310 | let aG = aS._3 | |
311 | 311 | let aH = aS._4 | |
312 | 312 | let az = Q(fromBase58String(ay)) | |
313 | 313 | if ((az == az)) | |
314 | 314 | then { | |
315 | 315 | let aI = if (if ((aE > 0)) | |
316 | 316 | then (aF > 0) | |
317 | 317 | else false) | |
318 | 318 | then { | |
319 | 319 | let aJ = [AttachedPayment(ao(at), aE), AttachedPayment(ao(av), aF)] | |
320 | 320 | invoke(W, "put", [1000000, false], aJ) | |
321 | 321 | } | |
322 | 322 | else 0 | |
323 | 323 | if ((aI == aI)) | |
324 | 324 | then { | |
325 | 325 | let aK = if ((aG > 0)) | |
326 | 326 | then { | |
327 | 327 | let aJ = [AttachedPayment(ao(aH), aG)] | |
328 | 328 | invoke(W, "putOneTkn", [0, false], aJ) | |
329 | 329 | } | |
330 | 330 | else 0 | |
331 | 331 | if ((aK == aK)) | |
332 | 332 | then { | |
333 | 333 | let aM = Q(fromBase58String(ay)) | |
334 | 334 | let aN = (aM - az) | |
335 | 335 | let aO = fraction(aN, ag(ad, ah), h) | |
336 | 336 | let aP = (aN - aO) | |
337 | 337 | if ((0 >= aP)) | |
338 | 338 | then throw("amount of staked sharetokens must be > 0") | |
339 | 339 | else { | |
340 | 340 | let aQ = invoke(aj(W), "stake", nil, [AttachedPayment(fromBase58String(ay), aP)]) | |
341 | 341 | if ((aQ == aQ)) | |
342 | 342 | then $Tuple2(aP, aO) | |
343 | 343 | else throw("Strict value is not equal to itself.") | |
344 | 344 | } | |
345 | 345 | } | |
346 | 346 | else throw("Strict value is not equal to itself.") | |
347 | 347 | } | |
348 | 348 | else throw("Strict value is not equal to itself.") | |
349 | 349 | } | |
350 | 350 | else throw("Strict value is not equal to itself.") | |
351 | 351 | } | |
352 | 352 | ||
353 | 353 | ||
354 | 354 | func aZ (ad,af,ba,aO,bb,ay,ab) = { | |
355 | 355 | let bc = ac(ad) | |
356 | 356 | let bd = getIntegerValue(this, (ad + u)) | |
357 | 357 | [IntegerEntry((ad + t), (bc + ba)), IntegerEntry((((((ad + "_") + af) + "_") + toString(bb)) + o), ba), IntegerEntry((((((ad + "_") + af) + "_") + toString(bb)) + s), bd), IntegerEntry((((ad + "_") + af) + r), bb), ScriptTransfer(I, aO, fromBase58String(ay))] | |
358 | 358 | } | |
359 | 359 | ||
360 | 360 | ||
361 | 361 | func be (ab,ad) = if ((ab == a)) | |
362 | 362 | then { | |
363 | 363 | let bf = Q(M) | |
364 | 364 | if ((bf == bf)) | |
365 | 365 | then { | |
366 | 366 | let bg = invoke(ai(), "claim", [ad], nil) | |
367 | 367 | if ((bg == bg)) | |
368 | 368 | then { | |
369 | 369 | let bh = Q(M) | |
370 | 370 | $Tuple2((bh - bf), M) | |
371 | 371 | } | |
372 | 372 | else throw("Strict value is not equal to itself.") | |
373 | 373 | } | |
374 | 374 | else throw("Strict value is not equal to itself.") | |
375 | 375 | } | |
376 | 376 | else if ((ab == b)) | |
377 | 377 | then { | |
378 | 378 | let bf = Q(N) | |
379 | 379 | if ((bf == bf)) | |
380 | 380 | then { | |
381 | 381 | let bg = invoke(aj(Address(fromBase58String(ad))), "claimWX", [ad], nil) | |
382 | 382 | if ((bg == bg)) | |
383 | 383 | then { | |
384 | 384 | let bh = Q(N) | |
385 | 385 | $Tuple2((bh - bf), N) | |
386 | 386 | } | |
387 | 387 | else throw("Strict value is not equal to itself.") | |
388 | 388 | } | |
389 | 389 | else throw("Strict value is not equal to itself.") | |
390 | 390 | } | |
391 | 391 | else throw("Wrong pool type") | |
392 | 392 | ||
393 | 393 | ||
394 | 394 | func bi (bj,bk,bl,bm,bn,bo,bp,bq,br,bs) = { | |
395 | 395 | let bt = Q(ao(bj)) | |
396 | 396 | if ((bt == bt)) | |
397 | 397 | then { | |
398 | 398 | let bg = invoke(J, "swap", [bm, bn, bo, bp, bq, br, bs], [AttachedPayment(bl, bk)]) | |
399 | 399 | if ((bg == bg)) | |
400 | 400 | then (Q(ao(bj)) - bt) | |
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 | func bu (bj,bk,bl,bv,bw,bs) = { | |
408 | 408 | let bt = Q(ao(bj)) | |
409 | 409 | if ((bt == bt)) | |
410 | 410 | then { | |
411 | 411 | let bg = invoke(J, "puzzleSwap", [bv, bw, bs], [AttachedPayment(bl, bk)]) | |
412 | 412 | if ((bg == bg)) | |
413 | 413 | then (Q(ao(bj)) - bt) | |
414 | 414 | else throw("Strict value is not equal to itself.") | |
415 | 415 | } | |
416 | 416 | else throw("Strict value is not equal to itself.") | |
417 | 417 | } | |
418 | 418 | ||
419 | 419 | ||
420 | 420 | func bx (bj,bk,bl,by,bz,bA,bB,bC,bD,bs) = { | |
421 | 421 | let bt = Q(ao(bj)) | |
422 | 422 | if ((bt == bt)) | |
423 | 423 | then { | |
424 | 424 | let bg = invoke(J, "swopfiSwap", [by, bz, bA, bB, bC, bD, bs], [AttachedPayment(bl, bk)]) | |
425 | 425 | if ((bg == bg)) | |
426 | 426 | then (Q(ao(bj)) - bt) | |
427 | 427 | else throw("Strict value is not equal to itself.") | |
428 | 428 | } | |
429 | 429 | else throw("Strict value is not equal to itself.") | |
430 | 430 | } | |
431 | 431 | ||
432 | 432 | ||
433 | 433 | func bE (ad,ab,bF,bG) = { | |
434 | 434 | let W = Address(fromBase58String(ad)) | |
435 | 435 | let bH = aa(W, ab) | |
436 | 436 | let bI = bH._1 | |
437 | 437 | let bJ = bH._2 | |
438 | 438 | let aw = bH._3 | |
439 | 439 | let ax = bH._4 | |
440 | 440 | let ay = bH._5 | |
441 | 441 | let bK = if ((bF == bI)) | |
442 | 442 | then $Tuple2(bG, 0) | |
443 | 443 | else $Tuple2(0, bG) | |
444 | 444 | let as = bK._1 | |
445 | 445 | let au = bK._2 | |
446 | 446 | let bL = if ((ab == a)) | |
447 | 447 | then ar(ad, c, as, bI, au, bJ, aw, ax, ay) | |
448 | 448 | else aR(ad, c, as, bI, au, bJ, ay) | |
449 | 449 | let ba = bL._1 | |
450 | 450 | let bM = bL._2 | |
451 | 451 | let bd = valueOrElse(getInteger(this, (ad + u)), 0) | |
452 | 452 | let bN = ac(ad) | |
453 | 453 | let bO = (bd + fraction(ba, g, bN)) | |
454 | 454 | [IntegerEntry((ad + u), bO), ScriptTransfer(I, bM, fromBase58String(ay))] | |
455 | 455 | } | |
456 | 456 | ||
457 | 457 | ||
458 | 458 | func bP (ad,bQ,bR,aw,ax,bS,bT) = { | |
459 | 459 | let W = Address(fromBase58String(ad)) | |
460 | 460 | let bU = 1000000 | |
461 | 461 | let bV = getIntegerValue(W, n) | |
462 | 462 | let bW = fraction(bS, bU, (bU - bV)) | |
463 | 463 | let bX = if ((bT == bQ)) | |
464 | 464 | then { | |
465 | 465 | let bY = fraction(aw, bW, (ax - bW)) | |
466 | 466 | $Tuple2(bY, bR) | |
467 | 467 | } | |
468 | 468 | else { | |
469 | 469 | let bY = fraction(ax, bW, (aw - bW)) | |
470 | 470 | $Tuple2(bY, bQ) | |
471 | 471 | } | |
472 | 472 | let bY = bX._1 | |
473 | 473 | let bZ = bX._2 | |
474 | - | invoke(W, "callFunction", ["exchange", "1"], [AttachedPayment(ao(bZ), bY)]) | |
474 | + | invoke(W, "callFunction", ["exchange", ["1"]], [AttachedPayment(ao(bZ), bY)]) | |
475 | 475 | } | |
476 | 476 | ||
477 | 477 | ||
478 | 478 | func ca (ad,bQ,bR,aw,ax,bS,bT) = { | |
479 | 479 | let W = Address(fromBase58String(ad)) | |
480 | 480 | let cb = getIntegerValue(L, "%s__protocolFee") | |
481 | 481 | let cc = getIntegerValue(L, "%s__poolFee") | |
482 | 482 | let cd = toBigInt(100000000) | |
483 | 483 | let ce = if ((bT == bQ)) | |
484 | 484 | then { | |
485 | 485 | let bY = fraction(aw, bS, (ax - bS)) | |
486 | 486 | $Tuple2(bY, bR) | |
487 | 487 | } | |
488 | 488 | else { | |
489 | 489 | let bY = fraction(ax, bS, (aw - bS)) | |
490 | 490 | $Tuple2(bY, bQ) | |
491 | 491 | } | |
492 | 492 | let bY = ce._1 | |
493 | 493 | let bZ = ce._2 | |
494 | 494 | let cf = toInt(fraction(toBigInt(bY), cd, (cd - toBigInt((cb + cc))))) | |
495 | 495 | invoke(L, "swap", [1, bT, toString(this)], [AttachedPayment(ao(bZ), cf)]) | |
496 | 496 | } | |
497 | 497 | ||
498 | 498 | ||
499 | 499 | func cg (ab,ad,bQ,bR,aw,ax,bS,bT) = if ((ab == a)) | |
500 | 500 | then bP(ad, bQ, bR, aw, ax, bS, bT) | |
501 | 501 | else ca(ad, bQ, bR, aw, ax, bS, bT) | |
502 | 502 | ||
503 | 503 | ||
504 | 504 | func ch (ad,ci,cj,ck) = { | |
505 | 505 | let W = Address(fromBase58String(ad)) | |
506 | 506 | let cl = valueOrErrorMessage(getString(this, (A + ad)), "Unknown pool") | |
507 | 507 | let cm = aa(W, cl) | |
508 | 508 | let bQ = cm._1 | |
509 | 509 | let bR = cm._2 | |
510 | 510 | let aw = cm._3 | |
511 | 511 | let ax = cm._4 | |
512 | 512 | let cn = Q(ao(bQ)) | |
513 | 513 | if ((cn == cn)) | |
514 | 514 | then { | |
515 | 515 | let co = Q(ao(bR)) | |
516 | 516 | if ((co == co)) | |
517 | 517 | then { | |
518 | 518 | let bg = if ((cl == a)) | |
519 | 519 | then invoke(W, "callFunction", ["withdraw", [toString(ci)]], nil) | |
520 | 520 | else if ((cl == b)) | |
521 | 521 | then invoke(W, "unstakeAndGet", [ci], nil) | |
522 | 522 | else throw("Wrong position type") | |
523 | 523 | if ((bg == bg)) | |
524 | 524 | then { | |
525 | 525 | let cp = Q(ao(bQ)) | |
526 | 526 | let cq = Q(ao(bR)) | |
527 | 527 | let cr = $Tuple2((cp - cn), (cq - co)) | |
528 | 528 | let cs = cr._1 | |
529 | 529 | let ct = cr._2 | |
530 | 530 | let cu = if ((cj > 0)) | |
531 | 531 | then { | |
532 | 532 | let cv = if (if ((ck == bQ)) | |
533 | 533 | then (cj > cs) | |
534 | 534 | else false) | |
535 | 535 | then (cj - cs) | |
536 | 536 | else if (if ((ck == bR)) | |
537 | 537 | then (cj > ct) | |
538 | 538 | else false) | |
539 | 539 | then (cj - ct) | |
540 | 540 | else 0 | |
541 | 541 | let cw = if ((cv > 0)) | |
542 | 542 | then cg(cl, ad, bQ, bR, aw, ax, cv, ck) | |
543 | 543 | else 0 | |
544 | 544 | if ((cw == cw)) | |
545 | 545 | then { | |
546 | 546 | let cx = Q(ao(bQ)) | |
547 | 547 | let cy = Q(ao(bR)) | |
548 | 548 | $Tuple2((cx - cn), (cy - co)) | |
549 | 549 | } | |
550 | 550 | else throw("Strict value is not equal to itself.") | |
551 | 551 | } | |
552 | 552 | else $Tuple2(cs, ct) | |
553 | 553 | let cz = cu._1 | |
554 | 554 | let cA = cu._2 | |
555 | 555 | $Tuple4(cz, bQ, cA, bR) | |
556 | 556 | } | |
557 | 557 | else throw("Strict value is not equal to itself.") | |
558 | 558 | } | |
559 | 559 | else throw("Strict value is not equal to itself.") | |
560 | 560 | } | |
561 | 561 | else throw("Strict value is not equal to itself.") | |
562 | 562 | } | |
563 | 563 | ||
564 | 564 | ||
565 | 565 | @Callable(P) | |
566 | 566 | func replenishREADONLY (ad,cB,cC) = if (if ((100 > cB)) | |
567 | 567 | then true | |
568 | 568 | else (cB > 300)) | |
569 | 569 | then throw("Leverage can't be <100 and >300") | |
570 | 570 | else { | |
571 | 571 | let ab = valueOrErrorMessage(getString(this, (A + ad)), "Pool is not inited") | |
572 | 572 | let cD = aa(Address(fromBase58String(ad)), ab) | |
573 | 573 | let bI = cD._1 | |
574 | 574 | let bJ = cD._2 | |
575 | 575 | let aw = cD._3 | |
576 | 576 | let ax = cD._4 | |
577 | 577 | let ay = cD._5 | |
578 | 578 | let cE = if ((size(P.payments) == 2)) | |
579 | 579 | then if ((an(P.payments[0].assetId) != bI)) | |
580 | 580 | then throw("Wrong payment asset A") | |
581 | 581 | else if ((an(P.payments[1].assetId) != bJ)) | |
582 | 582 | then throw("Wrong payment asset B") | |
583 | 583 | else $Tuple4(P.payments[0].amount, bI, P.payments[1].amount, bJ) | |
584 | 584 | else if ((size(P.payments) == 1)) | |
585 | 585 | then if ((an(P.payments[0].assetId) == bI)) | |
586 | 586 | then $Tuple4(P.payments[0].amount, bI, 0, bJ) | |
587 | 587 | else if ((an(P.payments[0].assetId) == bJ)) | |
588 | 588 | then $Tuple4(0, bI, P.payments[0].amount, bJ) | |
589 | 589 | else throw("Wrong payment") | |
590 | 590 | else throw("One or two payments expected") | |
591 | 591 | let as = cE._1 | |
592 | 592 | let at = cE._2 | |
593 | 593 | let au = cE._3 | |
594 | 594 | let av = cE._4 | |
595 | 595 | let cF = if ((cB > 100)) | |
596 | 596 | then { | |
597 | 597 | let cG = ( let Z = invoke(K, "getTWAP60", [at, false], nil) | |
598 | 598 | if ($isInstanceOf(Z, "(Int, Int)")) | |
599 | 599 | then Z | |
600 | 600 | else throw(($getType(Z) + " couldn't be cast to (Int, Int)")))._1 | |
601 | 601 | let cH = ( let Z = invoke(K, "getTWAP60", [av, false], nil) | |
602 | 602 | if ($isInstanceOf(Z, "(Int, Int)")) | |
603 | 603 | then Z | |
604 | 604 | else throw(($getType(Z) + " couldn't be cast to (Int, Int)")))._1 | |
605 | 605 | let cI = (fraction(cG, as, pow(10, 0, ap(at), 0, 0, DOWN)) + fraction(cH, au, pow(10, 0, ap(av), 0, 0, DOWN))) | |
606 | 606 | let cJ = fraction(cI, (cB - 100), 100) | |
607 | 607 | if ((cC == at)) | |
608 | 608 | then $Tuple4((as + cJ), au, d, cJ) | |
609 | 609 | else $Tuple4(as, (au + cJ), d, cJ) | |
610 | 610 | } | |
611 | 611 | else $Tuple4(as, au, e, 0) | |
612 | 612 | let cK = cF._1 | |
613 | 613 | let cL = cF._2 | |
614 | 614 | let ah = cF._3 | |
615 | 615 | let cJ = cF._4 | |
616 | 616 | let cM = if ((ab == a)) | |
617 | 617 | then ar(ad, ah, cK, at, cL, av, aw, ax, ay) | |
618 | 618 | else aR(ad, ah, as, at, au, av, ay) | |
619 | 619 | let cN = cM._1 | |
620 | 620 | let bM = cM._2 | |
621 | 621 | let cO = ch(ad, cN, cJ, cC) | |
622 | 622 | if ((cO == cO)) | |
623 | 623 | then { | |
624 | 624 | let bR = cO._4 | |
625 | 625 | let cA = cO._3 | |
626 | 626 | let bQ = cO._2 | |
627 | 627 | let cz = cO._1 | |
628 | - | $Tuple2(nil, | |
628 | + | $Tuple2(nil, [cN, cz, cA]) | |
629 | 629 | } | |
630 | 630 | else throw("Strict value is not equal to itself.") | |
631 | 631 | } | |
632 | 632 | ||
633 | 633 | ||
634 | 634 | ||
635 | 635 | @Callable(P) | |
636 | 636 | func replenish (ad,cB,cC) = if (if ((100 > cB)) | |
637 | 637 | then true | |
638 | 638 | else (cB > 300)) | |
639 | 639 | then throw("Leverage can't be <100 and >300") | |
640 | 640 | else { | |
641 | 641 | let ab = valueOrErrorMessage(getString(this, (A + ad)), "Pool is not inited") | |
642 | 642 | let cP = aa(Address(fromBase58String(ad)), ab) | |
643 | 643 | let bI = cP._1 | |
644 | 644 | let bJ = cP._2 | |
645 | 645 | let aw = cP._3 | |
646 | 646 | let ax = cP._4 | |
647 | 647 | let ay = cP._5 | |
648 | 648 | let cQ = if ((size(P.payments) == 2)) | |
649 | 649 | then if ((an(P.payments[0].assetId) != bI)) | |
650 | 650 | then throw("Wrong payment asset A") | |
651 | 651 | else if ((an(P.payments[1].assetId) != bJ)) | |
652 | 652 | then throw("Wrong payment asset B") | |
653 | 653 | else $Tuple4(P.payments[0].amount, bI, P.payments[1].amount, bJ) | |
654 | 654 | else if ((size(P.payments) == 1)) | |
655 | 655 | then if ((an(P.payments[0].assetId) == bI)) | |
656 | 656 | then $Tuple4(P.payments[0].amount, bI, 0, bJ) | |
657 | 657 | else if ((an(P.payments[0].assetId) == bJ)) | |
658 | 658 | then $Tuple4(0, bI, P.payments[0].amount, bJ) | |
659 | 659 | else throw("Wrong payment") | |
660 | 660 | else throw("One or two payments expected") | |
661 | 661 | let as = cQ._1 | |
662 | 662 | let at = cQ._2 | |
663 | 663 | let au = cQ._3 | |
664 | 664 | let av = cQ._4 | |
665 | 665 | let cR = ae(ad, toString(P.caller)) | |
666 | 666 | if ((cB > 100)) | |
667 | 667 | then { | |
668 | 668 | let cG = ( let Z = invoke(K, "getTWAP60", [at, false], nil) | |
669 | 669 | if ($isInstanceOf(Z, "(Int, Int)")) | |
670 | 670 | then Z | |
671 | 671 | else throw(($getType(Z) + " couldn't be cast to (Int, Int)")))._1 | |
672 | 672 | let cH = ( let Z = invoke(K, "getTWAP60", [av, false], nil) | |
673 | 673 | if ($isInstanceOf(Z, "(Int, Int)")) | |
674 | 674 | then Z | |
675 | 675 | else throw(($getType(Z) + " couldn't be cast to (Int, Int)")))._1 | |
676 | 676 | let cI = (fraction(cG, as, pow(10, 0, ap(at), 0, 0, DOWN)) + fraction(cH, au, pow(10, 0, ap(av), 0, 0, DOWN))) | |
677 | 677 | let cJ = fraction(cI, (cB - 100), 100) | |
678 | 678 | let cS = makeString([ab, toString(P.caller), ad, toString(as), at, toString(au), av, toString(aw), toString(ax), ay, cC, toString(cJ), toString(cR)], ",") | |
679 | 679 | let cT = { | |
680 | 680 | let Z = invoke(this, "createNewRequest", [cS], nil) | |
681 | 681 | if ($isInstanceOf(Z, "Int")) | |
682 | 682 | then Z | |
683 | 683 | else throw(($getType(Z) + " couldn't be cast to Int")) | |
684 | 684 | } | |
685 | 685 | if ((cT == cT)) | |
686 | 686 | then { | |
687 | 687 | let cU = [((toString(P.caller) + "_") + toString(cR)), ay, cC, cJ, toString(this), "replenishFromLand", toString(valueOrErrorMessage(cT, "Can't create new request"))] | |
688 | 688 | let bg = reentrantInvoke(am(), "flashPosition", cU, nil) | |
689 | 689 | if ((bg == bg)) | |
690 | 690 | then nil | |
691 | 691 | else throw("Strict value is not equal to itself.") | |
692 | 692 | } | |
693 | 693 | else throw("Strict value is not equal to itself.") | |
694 | 694 | } | |
695 | 695 | else { | |
696 | 696 | let cV = if ((ab == a)) | |
697 | 697 | then ar(ad, e, as, at, au, av, aw, ax, ay) | |
698 | 698 | else aR(ad, e, as, at, au, av, ay) | |
699 | 699 | let cN = cV._1 | |
700 | 700 | let bM = cV._2 | |
701 | 701 | aZ(ad, toString(P.caller), cN, bM, cR, ay, ab) | |
702 | 702 | } | |
703 | 703 | } | |
704 | 704 | ||
705 | 705 | ||
706 | 706 | ||
707 | 707 | @Callable(P) | |
708 | 708 | func replenishFromLand (cW) = { | |
709 | 709 | let cS = split(valueOrErrorMessage(getString(this, (cW + y)), ("No request with id " + cW)), ",") | |
710 | 710 | if ((size(P.payments) != 1)) | |
711 | 711 | then throw("Wrong payment size") | |
712 | 712 | else if (if ((an(P.payments[0].assetId) != cS[10])) | |
713 | 713 | then true | |
714 | 714 | else (P.payments[0].amount != parseIntValue(cS[11]))) | |
715 | 715 | then throw("Wrong payment") | |
716 | 716 | else { | |
717 | 717 | let as = if ((cS[4] == an(P.payments[0].assetId))) | |
718 | 718 | then (parseIntValue(cS[3]) + P.payments[0].amount) | |
719 | 719 | else parseIntValue(cS[3]) | |
720 | 720 | let au = if ((cS[6] == an(P.payments[0].assetId))) | |
721 | 721 | then (parseIntValue(cS[5]) + P.payments[0].amount) | |
722 | 722 | else parseIntValue(cS[3]) | |
723 | 723 | let ad = cS[2] | |
724 | 724 | let af = cS[1] | |
725 | 725 | let ay = cS[9] | |
726 | 726 | let bb = parseIntValue(cS[12]) | |
727 | 727 | let cX = if ((cS[0] == a)) | |
728 | 728 | then ar(ad, d, as, cS[4], au, cS[6], parseIntValue(cS[7]), parseIntValue(cS[8]), ay) | |
729 | 729 | else if ((cS[0] == b)) | |
730 | 730 | then aR(ad, d, as, cS[4], au, cS[6], ay) | |
731 | 731 | else throw("Wrong request type") | |
732 | 732 | let cN = cX._1 | |
733 | 733 | let bM = cX._2 | |
734 | 734 | let cY = [IntegerEntry((((((cS[2] + "_") + cS[1]) + "_") + cS[12]) + p), P.payments[0].amount), StringEntry((((((cS[2] + "_") + cS[1]) + "_") + cS[12]) + q), cS[10])] | |
735 | 735 | let cZ = aZ(ad, af, cN, bM, bb, ay, cS[0]) | |
736 | 736 | $Tuple2(((cZ ++ cY) :+ DeleteEntry((cW + y))), cN) | |
737 | 737 | } | |
738 | 738 | } | |
739 | 739 | ||
740 | 740 | ||
741 | 741 | ||
742 | 742 | @Callable(P) | |
743 | 743 | func withdraw (ad,da) = { | |
744 | 744 | let af = toString(P.caller) | |
745 | 745 | let db = valueOrErrorMessage(getInteger(this, (((((ad + "_") + af) + "_") + toString(da)) + o)), "Unknown position") | |
746 | 746 | let dc = getIntegerValue(this, (((((ad + "_") + af) + "_") + toString(da)) + s)) | |
747 | 747 | let dd = getIntegerValue(this, (ad + u)) | |
748 | 748 | let de = ac(ad) | |
749 | 749 | let ci = (db + fraction(db, (dd - dc), g)) | |
750 | 750 | let df = Address(fromBase58String(af)) | |
751 | 751 | let cJ = getIntegerValue(this, (((((ad + "_") + af) + "_") + toString(da)) + p)) | |
752 | 752 | let ck = getStringValue(this, (((((ad + "_") + af) + "_") + toString(da)) + q)) | |
753 | 753 | let cj = if ((cJ > 0)) | |
754 | 754 | then { | |
755 | 755 | let Z = invoke(am(), "getAssetDebt", [false, ((((ad + "_") + af) + "_") + toString(da)), ck], nil) | |
756 | 756 | if ($isInstanceOf(Z, "Int")) | |
757 | 757 | then Z | |
758 | 758 | else throw(($getType(Z) + " couldn't be cast to Int")) | |
759 | 759 | } | |
760 | 760 | else 0 | |
761 | 761 | let dg = ch(ad, ci, cj, ck) | |
762 | 762 | if ((dg == dg)) | |
763 | 763 | then { | |
764 | 764 | let bR = dg._4 | |
765 | 765 | let cA = dg._3 | |
766 | 766 | let bQ = dg._2 | |
767 | 767 | let cz = dg._1 | |
768 | 768 | let dh = if ((cj > 0)) | |
769 | 769 | then invoke(am(), "repayFor", [((af + "_") + toString(da))], [AttachedPayment(ao(ck), cj)]) | |
770 | 770 | else 0 | |
771 | 771 | if ((dh == dh)) | |
772 | 772 | then [DeleteEntry((((((ad + "_") + af) + "_") + toString(da)) + o)), DeleteEntry((((((ad + "_") + af) + "_") + toString(da)) + s)), IntegerEntry((ad + t), (de - ci)), ScriptTransfer(df, cz, ao(bQ)), ScriptTransfer(df, cA, ao(bR))] | |
773 | 773 | else throw("Strict value is not equal to itself.") | |
774 | 774 | } | |
775 | 775 | else throw("Strict value is not equal to itself.") | |
776 | 776 | } | |
777 | 777 | ||
778 | 778 | ||
779 | 779 | ||
780 | 780 | @Callable(P) | |
781 | 781 | func createNewRequest (di) = valueOrElse(O(P), { | |
782 | 782 | let cT = (valueOrElse(getInteger(this, z), 0) + 1) | |
783 | 783 | $Tuple2([StringEntry((toString(cT) + y), di), IntegerEntry(z, cT)], cT) | |
784 | 784 | }) | |
785 | 785 | ||
786 | 786 | ||
787 | 787 | ||
788 | 788 | @Callable(P) | |
789 | 789 | func capitalizeExKeeper (ad,ab,dj,dk,dl,bm,bn,bo,bp,bq,br,bs) = { | |
790 | 790 | let dm = if (dl) | |
791 | 791 | then be(ab, ad) | |
792 | 792 | else { | |
793 | 793 | let dn = if ((ab == a)) | |
794 | 794 | then M | |
795 | 795 | else N | |
796 | 796 | $Tuple2(dk, dn) | |
797 | 797 | } | |
798 | 798 | let do = dm._1 | |
799 | 799 | let dn = dm._2 | |
800 | 800 | let dp = bi(dj, dk, dn, bm, bn, bo, bp, bq, br, bs) | |
801 | 801 | let aG = (do - dk) | |
802 | 802 | let dq = if ((aG > 0)) | |
803 | 803 | then [IntegerEntry((ad + B), (aG + valueOrElse(getInteger(this, (ad + B)), 0)))] | |
804 | 804 | else nil | |
805 | 805 | (bE(ad, ab, dj, dp) ++ dq) | |
806 | 806 | } | |
807 | 807 | ||
808 | 808 | ||
809 | 809 | ||
810 | 810 | @Callable(P) | |
811 | 811 | func capitalizeExPazzle (ad,ab,dj,dk,dl,bv,bw,bs) = { | |
812 | 812 | let dr = if (dl) | |
813 | 813 | then be(ab, ad) | |
814 | 814 | else { | |
815 | 815 | let dn = if ((ab == a)) | |
816 | 816 | then M | |
817 | 817 | else N | |
818 | 818 | $Tuple2(dk, dn) | |
819 | 819 | } | |
820 | 820 | let do = dr._1 | |
821 | 821 | let dn = dr._2 | |
822 | 822 | let dp = bu(dj, dk, dn, bv, bw, bs) | |
823 | 823 | let aG = (do - dk) | |
824 | 824 | let dq = if ((aG > 0)) | |
825 | 825 | then [IntegerEntry((ad + B), (aG + valueOrElse(getInteger(this, (ad + B)), 0)))] | |
826 | 826 | else nil | |
827 | 827 | (bE(ad, ab, dj, dp) ++ dq) | |
828 | 828 | } | |
829 | 829 | ||
830 | 830 | ||
831 | 831 | ||
832 | 832 | @Callable(P) | |
833 | 833 | func capitalizeExSwopFi (ad,ab,dj,dk,dl,by,bz,bA,bB,bC,bD,bs) = { | |
834 | 834 | let ds = if (dl) | |
835 | 835 | then be(ab, ad) | |
836 | 836 | else { | |
837 | 837 | let dn = if ((ab == a)) | |
838 | 838 | then M | |
839 | 839 | else N | |
840 | 840 | $Tuple2(dk, dn) | |
841 | 841 | } | |
842 | 842 | let do = ds._1 | |
843 | 843 | let dn = ds._2 | |
844 | 844 | let dp = bx(dj, dk, dn, by, bz, bA, bB, bC, bD, bs) | |
845 | 845 | let aG = (do - dk) | |
846 | 846 | let dq = if ((aG > 0)) | |
847 | 847 | then [IntegerEntry((ad + B), (aG + valueOrElse(getInteger(this, (ad + B)), 0)))] | |
848 | 848 | else nil | |
849 | 849 | (bE(ad, ab, dj, dp) ++ dq) | |
850 | 850 | } | |
851 | 851 | ||
852 | 852 | ||
853 | 853 | ||
854 | 854 | @Callable(P) | |
855 | 855 | func initNewPool (ab,W,dt,du,dv) = if (if ((ab != a)) | |
856 | 856 | then (ab != b) | |
857 | 857 | else false) | |
858 | 858 | then throw("Wrong type") | |
859 | 859 | else [IntegerEntry((W + v), dt), IntegerEntry((W + w), du), IntegerEntry((W + x), dv), IntegerEntry((W + u), 0), StringEntry((A + W), ab)] | |
860 | 860 | ||
861 | 861 | ||
862 | 862 | @Verifier(dw) | |
863 | 863 | func dx () = sigVerify(dw.bodyBytes, dw.proofs[0], dw.senderPublicKey) | |
864 | 864 |
github/deemru/w8io/026f985 399.49 ms ◑