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