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