tx · 8fVbsihXeEptce76EkDhWxruJWUUAEwb8B7ZcpSoU7Ru 3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS: -0.04300000 Waves 2023.06.26 13:06 [2639469] smart account 3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS > SELF 0.00000000 Waves
{ "type": 13, "id": "8fVbsihXeEptce76EkDhWxruJWUUAEwb8B7ZcpSoU7Ru", "fee": 4300000, "feeAssetId": null, "timestamp": 1687774004625, "version": 2, "chainId": 84, "sender": "3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS", "senderPublicKey": "HP8sssVq1866F7CaPQJwgFrt6fsqhQjKwM84cL1wjD2a", "proofs": [ "rcwPYA2BJDjf2smwgeDJjrztYk27HFSSbL6nTx2dfwvMKr6oPo2N8VSYMqeaiWcun2am3vC9TGkDwXPPNwX26FW" ], "script": "base64:BgKKAQgCEgcKBQgBCAEBEgMKAQgSBAoCCAgSBQoDCBgYEgUKAwgBCBIECgIIARIGCgQBCAgBEgUKAwEICBIDCgEIEgMKAQgSBQoDCAgBEgYKBAgBCAgSDgoMCAgIAQQRGBgRAQEYEgoKCAgICAEECAEYEg4KDAgICAEEGBgYGBgBGBIKCggICAEBAQEBAWYAB1NGX1BPT0wCAlNGAAdXWF9QT09MAgJXWAAPQ0FQX0ZFRV9OT19MT0FOAgljYXBOb0xvYW4ADENBUF9GRUVfTE9BTgIHY2FwTG9hbgAUU1RPUExPU1NfRkVFX05PX0xPQU4CDnN0b3BMb3NzTm9Mb2FuAA1TVE9QTE9TU19MT0FOAgxzdG9wTG9zc0xvYW4ACExPQU5fRkVFAgRsb2FuAAtOT19MT0FOX0ZFRQIGbm9Mb2FuAAZOT19GRUUCBW5vRmVlAAZTQ0FMRTgAgMLXLwAHU0NBTEUxMACAyK+gJQAHU0NBTEUxNgkAtgIBAICAhP6m3uERAApGRUVfU0NBTEU2AMCEPQAUa1NGUG9vbEFBc3NldEJhbGFuY2UCD0FfYXNzZXRf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ZVdpdGhMb2FuBQlpbkZlZUxvYW4JAMwIAgkBDEludGVnZXJFbnRyeQIJAKwCAgUIcG9vbEFkZHIFEWtBeGx5Tm9Mb2FuQ2FwRmVlBQxjYXBGZWVOb0xvYW4JAMwIAgkBDEludGVnZXJFbnRyeQIJAKwCAgUIcG9vbEFkZHIFE2tBeGx5V2l0aExvYW5DYXBGZWUFDmNhcEZlZVdpdGhMb2FuCQDMCAIJAQxJbnRlZ2VyRW50cnkCCQCsAgIFCHBvb2xBZGRyBRZrQXhseVN0b3BMb3NzTm9Mb2FuRmVlBRFzdG9wbG9zc0ZlZU5vTG9hbgkAzAgCCQEMSW50ZWdlckVudHJ5AgkArAICBQhwb29sQWRkcgUUa0F4bHlTdG9wTG9zc0xvYW5GZWUFE3N0b3Bsb3NzRmVlV2l0aExvYW4JAMwIAgkBDEludGVnZXJFbnRyeQIJAKwCAgUIcG9vbEFkZHIFEWtQb29sSW50ZXJlc3RMb2FuAAAJAMwIAgkBDEludGVnZXJFbnRyeQIJAKwCAgUIcG9vbEFkZHIFE2tQb29sSW50ZXJlc3ROb0xvYW4AAAkAzAgCCQELU3RyaW5nRW50cnkCCQCsAgIFBWtQb29sBQhwb29sQWRkcgUEdHlwZQkAzAgCCQELU3RyaW5nRW50cnkCCQCsAgIFB3NoYXJlSWQFCmtTaGFyZVBvb2wFCHBvb2xBZGRyBQNuaWwBAnR4AQZ2ZXJpZnkACQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5nGUDwg==", "height": 2639469, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6D9wtUz83iSGDkhLU1GPC6C5RkFHETkmvyZZe5eXczrr Next: Bhw2WSb4a2xM5EtS1vbso9aBRhuQQif2o6KEcWhFg4GN Diff:
Old | New | Differences | |
---|---|---|---|
474 | 474 | let bZ = fraction(bV, bX, (bX - bY)) | |
475 | 475 | let ca = if ((bW == bT)) | |
476 | 476 | then { | |
477 | - | let cb = fraction( | |
477 | + | let cb = fraction(bZ, ay, (ax - bZ)) | |
478 | 478 | $Tuple2(cb, bU) | |
479 | 479 | } | |
480 | 480 | else { | |
481 | - | let cb = fraction( | |
481 | + | let cb = fraction(bZ, ax, (ay - bZ)) | |
482 | 482 | $Tuple2(cb, bT) | |
483 | 483 | } | |
484 | 484 | let cb = ca._1 | |
493 | 493 | let cg = toBigInt(100000000) | |
494 | 494 | let ch = if ((bW == bT)) | |
495 | 495 | then { | |
496 | - | let cb = fraction( | |
496 | + | let cb = fraction(bV, ay, (ax - bV)) | |
497 | 497 | $Tuple2(cb, bU) | |
498 | 498 | } | |
499 | 499 | else { | |
500 | - | let cb = fraction( | |
500 | + | let cb = fraction(bV, ax, (ay - bV)) | |
501 | 501 | $Tuple2(cb, bT) | |
502 | 502 | } | |
503 | 503 | let cb = ch._1 | |
907 | 907 | ||
908 | 908 | func es (aG,aD,en,et) = { | |
909 | 909 | let ep = valueOrErrorMessage(getInteger(this, (((((aD + "_") + aG) + "_") + en) + u)), "Unknown position") | |
910 | - | let eq = getIntegerValue(this, (((((aD + "_") + aG) + "_") + en) + z)) | |
911 | 910 | let cz = valueOrElse(getInteger(this, (((((aD + "_") + aG) + "_") + en) + w)), 0) | |
912 | 911 | let dV = em(aG, aD, en, (cz > 0)) | |
913 | 912 | let eu = aC(aD) |
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 = "capNoLoan" | |
9 | 9 | ||
10 | 10 | let d = "capLoan" | |
11 | 11 | ||
12 | 12 | let e = "stopLossNoLoan" | |
13 | 13 | ||
14 | 14 | let f = "stopLossLoan" | |
15 | 15 | ||
16 | 16 | let g = "loan" | |
17 | 17 | ||
18 | 18 | let h = "noLoan" | |
19 | 19 | ||
20 | 20 | let i = "noFee" | |
21 | 21 | ||
22 | 22 | let j = 100000000 | |
23 | 23 | ||
24 | 24 | let k = 10000000000 | |
25 | 25 | ||
26 | 26 | let l = toBigInt(10000000000000000) | |
27 | 27 | ||
28 | 28 | let m = 1000000 | |
29 | 29 | ||
30 | 30 | let n = "A_asset_balance" | |
31 | 31 | ||
32 | 32 | let o = "B_asset_balance" | |
33 | 33 | ||
34 | 34 | let p = "A_asset_id" | |
35 | 35 | ||
36 | 36 | let q = "B_asset_id" | |
37 | 37 | ||
38 | 38 | let r = "share_asset_id" | |
39 | 39 | ||
40 | 40 | let s = "share_asset_supply" | |
41 | 41 | ||
42 | 42 | let t = "commission" | |
43 | 43 | ||
44 | 44 | let u = "_user_position" | |
45 | 45 | ||
46 | 46 | let v = "_user_position_pool" | |
47 | 47 | ||
48 | 48 | let w = "_user_position_borrow_amount" | |
49 | 49 | ||
50 | 50 | let x = "_user_position_borrow_asset_id" | |
51 | 51 | ||
52 | 52 | let y = "_user_position_number" | |
53 | 53 | ||
54 | 54 | let z = "_user_position_interest" | |
55 | 55 | ||
56 | 56 | let A = "_pool_total" | |
57 | 57 | ||
58 | 58 | let B = "_pool_total_loan" | |
59 | 59 | ||
60 | 60 | let C = "_pool_interest_loan" | |
61 | 61 | ||
62 | 62 | let D = "_pool_interest_no_loan" | |
63 | 63 | ||
64 | 64 | let E = "_axly_fee_without_loan" | |
65 | 65 | ||
66 | 66 | let F = "_axly_fee_with_loan" | |
67 | 67 | ||
68 | 68 | let G = "_axly_fee_cap_with_loan" | |
69 | 69 | ||
70 | 70 | let H = "_axly_fee_cap_no_loan" | |
71 | 71 | ||
72 | 72 | let I = "_axly_fee_stoploss_with_loan" | |
73 | 73 | ||
74 | 74 | let J = "_axly_fee_stoploss_no_loan" | |
75 | 75 | ||
76 | 76 | let K = "_request_id" | |
77 | 77 | ||
78 | 78 | let L = "requests_iter" | |
79 | 79 | ||
80 | 80 | let M = "pool_" | |
81 | 81 | ||
82 | 82 | let N = "_pool_share_id" | |
83 | 83 | ||
84 | 84 | let O = "_pool_cap_change" | |
85 | 85 | ||
86 | 86 | let P = "last_price" | |
87 | 87 | ||
88 | 88 | let Q = "_stop_loss" | |
89 | 89 | ||
90 | 90 | let R = "axly_money_box" | |
91 | 91 | ||
92 | 92 | let S = "swopfi_farming_addr" | |
93 | 93 | ||
94 | 94 | let T = "lend_service_addr" | |
95 | 95 | ||
96 | 96 | let U = "admin_call_pub_key" | |
97 | 97 | ||
98 | 98 | let V = "price_oracle" | |
99 | 99 | ||
100 | 100 | let W = "exchange_contract" | |
101 | 101 | ||
102 | 102 | let X = "wx_swap_contract" | |
103 | 103 | ||
104 | 104 | let Y = Address(fromBase58String(valueOrErrorMessage(getString(this, R), "No axly moneyBox address"))) | |
105 | 105 | ||
106 | 106 | let Z = Address(fromBase58String(valueOrErrorMessage(getString(this, W), "No exchange contract address"))) | |
107 | 107 | ||
108 | 108 | let aa = Address(fromBase58String(valueOrErrorMessage(getString(this, V), "No price oracle address"))) | |
109 | 109 | ||
110 | 110 | let ab = Address(fromBase58String(valueOrErrorMessage(getString(this, X), "No wx swap address"))) | |
111 | 111 | ||
112 | 112 | let ac = base58'4W19ndijcc2CsQa9HGW2dfXKTVXhnneWWttxXrtjPmEp' | |
113 | 113 | ||
114 | 114 | let ad = base58'EMAMLxDnv3xiz8RXg8Btj33jcEw3wLczL3JKYYmuubpc' | |
115 | 115 | ||
116 | 116 | func ae () = Address(fromBase58String(valueOrErrorMessage(getString(this, T), "Can't get lend service addr"))) | |
117 | 117 | ||
118 | 118 | ||
119 | 119 | func af () = addressFromPublicKey(fromBase58String(valueOrErrorMessage(getString(this, U), "Can't get admin addr"))) | |
120 | 120 | ||
121 | 121 | ||
122 | 122 | func ag (ah) = if ((ah.caller == af())) | |
123 | 123 | then unit | |
124 | 124 | else throw("Only admin can call this function") | |
125 | 125 | ||
126 | 126 | ||
127 | 127 | func ai (ah) = if ((ah.caller == this)) | |
128 | 128 | then unit | |
129 | 129 | else throw("Only contract itself can call this function") | |
130 | 130 | ||
131 | 131 | ||
132 | 132 | func aj (ah) = if ((ah.caller == ae())) | |
133 | 133 | then unit | |
134 | 134 | else throw("Only land contract can call this function") | |
135 | 135 | ||
136 | 136 | ||
137 | 137 | func ak (al) = { | |
138 | 138 | let am = al | |
139 | 139 | if ($isInstanceOf(am, "ByteVector")) | |
140 | 140 | then { | |
141 | 141 | let an = am | |
142 | 142 | assetBalance(this, an) | |
143 | 143 | } | |
144 | 144 | else if ($isInstanceOf(am, "Unit")) | |
145 | 145 | then { | |
146 | 146 | let ao = am | |
147 | 147 | wavesBalance(this).available | |
148 | 148 | } | |
149 | 149 | else throw("Match error") | |
150 | 150 | } | |
151 | 151 | ||
152 | 152 | ||
153 | 153 | func ap (aq) = $Tuple5(valueOrErrorMessage(getString(aq, p), "Can't get pool A asset id"), valueOrErrorMessage(getString(aq, q), "Can't get pool B asset id"), valueOrErrorMessage(getInteger(aq, n), "Can't get pool A asset balance"), valueOrErrorMessage(getInteger(aq, o), "Can't get pool B asset balance"), valueOrErrorMessage(getString(aq, r), "Can't get share asset id")) | |
154 | 154 | ||
155 | 155 | ||
156 | 156 | func ar (aq) = { | |
157 | 157 | let as = { | |
158 | 158 | let at = invoke(aq, "getPoolConfigWrapperREADONLY", nil, nil) | |
159 | 159 | if ($isInstanceOf(at, "List[Any]")) | |
160 | 160 | then at | |
161 | 161 | else throw(($getType(at) + " couldn't be cast to List[Any]")) | |
162 | 162 | } | |
163 | 163 | if ((as == as)) | |
164 | 164 | then { | |
165 | 165 | let au = valueOrErrorMessage({ | |
166 | 166 | let at = as[4] | |
167 | 167 | if ($isInstanceOf(at, "String")) | |
168 | 168 | then at | |
169 | 169 | else unit | |
170 | 170 | }, "Can't get pool A asset id") | |
171 | 171 | let av = valueOrErrorMessage({ | |
172 | 172 | let at = as[5] | |
173 | 173 | if ($isInstanceOf(at, "String")) | |
174 | 174 | then at | |
175 | 175 | else unit | |
176 | 176 | }, "Can't get pool B asset id") | |
177 | 177 | let aw = valueOrErrorMessage({ | |
178 | 178 | let at = as[3] | |
179 | 179 | if ($isInstanceOf(at, "String")) | |
180 | 180 | then at | |
181 | 181 | else unit | |
182 | 182 | }, "Can't get pool LP asset id") | |
183 | 183 | let ax = { | |
184 | 184 | let at = invoke(aq, "getAccBalanceWrapperREADONLY", [au], nil) | |
185 | 185 | if ($isInstanceOf(at, "Int")) | |
186 | 186 | then at | |
187 | 187 | else throw(($getType(at) + " couldn't be cast to Int")) | |
188 | 188 | } | |
189 | 189 | if ((ax == ax)) | |
190 | 190 | then { | |
191 | 191 | let ay = { | |
192 | 192 | let at = invoke(aq, "getAccBalanceWrapperREADONLY", [av], nil) | |
193 | 193 | if ($isInstanceOf(at, "Int")) | |
194 | 194 | then at | |
195 | 195 | else throw(($getType(at) + " couldn't be cast to Int")) | |
196 | 196 | } | |
197 | 197 | if ((ay == ay)) | |
198 | 198 | then $Tuple5(au, av, ax, ay, aw) | |
199 | 199 | else throw("Strict value is not equal to itself.") | |
200 | 200 | } | |
201 | 201 | else throw("Strict value is not equal to itself.") | |
202 | 202 | } | |
203 | 203 | else throw("Strict value is not equal to itself.") | |
204 | 204 | } | |
205 | 205 | ||
206 | 206 | ||
207 | 207 | func az (aq,aA) = if ((aA == a)) | |
208 | 208 | then ap(aq) | |
209 | 209 | else if ((aA == b)) | |
210 | 210 | then ar(aq) | |
211 | 211 | else throw("Wrong pool type") | |
212 | 212 | ||
213 | 213 | ||
214 | 214 | func aB (aq,aA,aw) = if ((aA == a)) | |
215 | 215 | then valueOrErrorMessage(getInteger(aq, s), "Can't get share asset supply") | |
216 | 216 | else if ((aA == b)) | |
217 | 217 | then valueOrErrorMessage(assetInfo(fromBase58String(aw)), "Wrong ShareId").quantity | |
218 | 218 | else throw("Wrong pool type") | |
219 | 219 | ||
220 | 220 | ||
221 | 221 | func aC (aD) = valueOrElse(getInteger(this, (aD + A)), 0) | |
222 | 222 | ||
223 | 223 | ||
224 | 224 | func aE (aD) = valueOrElse(getInteger(this, (aD + B)), 0) | |
225 | 225 | ||
226 | 226 | ||
227 | 227 | func aF (aG) = (valueOrElse(getInteger(this, (aG + y)), 0) + 1) | |
228 | 228 | ||
229 | 229 | ||
230 | 230 | func aH (aD,aI) = if ((aI == d)) | |
231 | 231 | then getIntegerValue(this, (aD + H)) | |
232 | 232 | else if ((aI == c)) | |
233 | 233 | then getIntegerValue(this, (aD + G)) | |
234 | 234 | else if ((aI == g)) | |
235 | 235 | then getIntegerValue(this, (aD + F)) | |
236 | 236 | else if ((aI == h)) | |
237 | 237 | then getIntegerValue(this, (aD + E)) | |
238 | 238 | else if ((aI == i)) | |
239 | 239 | then 0 | |
240 | 240 | else throw("Wrong fee type") | |
241 | 241 | ||
242 | 242 | ||
243 | 243 | func aJ () = Address(fromBase58String(valueOrErrorMessage(getString(this, S), "Can't get swopfi farming addr"))) | |
244 | 244 | ||
245 | 245 | ||
246 | 246 | func aK (aq) = { | |
247 | 247 | let aL = Address(fromBase58String(valueOrErrorMessage(getString(aq, "%s__factoryContract"), "Can't get WX factory contract addr"))) | |
248 | 248 | let aM = split(valueOrErrorMessage(getString(aL, "%s__factoryConfig"), "Can't get WX factory cfg"), "__") | |
249 | 249 | Address(fromBase58String(aM[1])) | |
250 | 250 | } | |
251 | 251 | ||
252 | 252 | ||
253 | 253 | func aN (al) = { | |
254 | 254 | let am = al | |
255 | 255 | if ($isInstanceOf(am, "ByteVector")) | |
256 | 256 | then { | |
257 | 257 | let an = am | |
258 | 258 | toBase58String(an) | |
259 | 259 | } | |
260 | 260 | else if ($isInstanceOf(am, "Unit")) | |
261 | 261 | then { | |
262 | 262 | let ao = am | |
263 | 263 | "WAVES" | |
264 | 264 | } | |
265 | 265 | else throw("Not Asset id") | |
266 | 266 | } | |
267 | 267 | ||
268 | 268 | ||
269 | 269 | func aO (al) = if ((al == "WAVES")) | |
270 | 270 | then unit | |
271 | 271 | else fromBase58String(al) | |
272 | 272 | ||
273 | 273 | ||
274 | 274 | func aP (al) = if ((al == "WAVES")) | |
275 | 275 | then 8 | |
276 | 276 | else { | |
277 | 277 | let am = assetInfo(fromBase58String(al)) | |
278 | 278 | if ($isInstanceOf(am, "Asset")) | |
279 | 279 | then { | |
280 | 280 | let aQ = am | |
281 | 281 | aQ.decimals | |
282 | 282 | } | |
283 | 283 | else throw("Can't find asset") | |
284 | 284 | } | |
285 | 285 | ||
286 | 286 | ||
287 | 287 | func aR (al) = pow(10, 0, aP(al), 0, 0, DOWN) | |
288 | 288 | ||
289 | 289 | ||
290 | 290 | func aS (aT) = { | |
291 | 291 | func aU (aV,al) = { | |
292 | 292 | let aW = ( let at = invoke(aa, "getTWAP60", [al, false], nil) | |
293 | 293 | if ($isInstanceOf(at, "(Int, Int)")) | |
294 | 294 | then at | |
295 | 295 | else throw(($getType(at) + " couldn't be cast to (Int, Int)")))._2 | |
296 | 296 | (aV :+ aW) | |
297 | 297 | } | |
298 | 298 | ||
299 | 299 | let aX = aT | |
300 | 300 | let aY = size(aX) | |
301 | 301 | let aZ = nil | |
302 | 302 | func ba (bb,bc) = if ((bc >= aY)) | |
303 | 303 | then bb | |
304 | 304 | else aU(bb, aX[bc]) | |
305 | 305 | ||
306 | 306 | func bd (bb,bc) = if ((bc >= aY)) | |
307 | 307 | then bb | |
308 | 308 | else throw("List size exceeds 50") | |
309 | 309 | ||
310 | 310 | bd(ba(ba(ba(ba(ba(ba(ba(ba(ba(ba(ba(ba(ba(ba(ba(ba(ba(ba(ba(ba(ba(ba(ba(ba(ba(ba(ba(ba(ba(ba(ba(ba(ba(ba(ba(ba(ba(ba(ba(ba(ba(ba(ba(ba(ba(ba(ba(ba(ba(ba(aZ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50) | |
311 | 311 | } | |
312 | 312 | ||
313 | 313 | ||
314 | 314 | func be (aw) = { | |
315 | 315 | let aD = valueOrErrorMessage(getString(this, (aw + N)), "Can't find pool addr by share id") | |
316 | 316 | let aq = Address(fromBase58String(aD)) | |
317 | 317 | let bf = valueOrErrorMessage(getString(this, (M + aD)), "Pool is not inited") | |
318 | 318 | let bg = az(aq, bf) | |
319 | 319 | let au = bg._1 | |
320 | 320 | let av = bg._2 | |
321 | 321 | let bh = bg._3 | |
322 | 322 | let bi = bg._4 | |
323 | 323 | let bj = ( let at = invoke(aa, "getTWAP60", [au, false], nil) | |
324 | 324 | if ($isInstanceOf(at, "(Int, Int)")) | |
325 | 325 | then at | |
326 | 326 | else throw(($getType(at) + " couldn't be cast to (Int, Int)")))._2 | |
327 | 327 | let bk = ( let at = invoke(aa, "getTWAP60", [av, false], nil) | |
328 | 328 | if ($isInstanceOf(at, "(Int, Int)")) | |
329 | 329 | then at | |
330 | 330 | else throw(($getType(at) + " couldn't be cast to (Int, Int)")))._2 | |
331 | 331 | let bl = aB(aq, bf, aw) | |
332 | 332 | let bm = pow(10, 0, aP(au), 0, 0, DOWN) | |
333 | 333 | let bn = pow(10, 0, aP(av), 0, 0, DOWN) | |
334 | 334 | let bo = pow(10, 0, aP(aw), 0, 0, DOWN) | |
335 | 335 | let bp = (fraction(bh, bj, bm) + fraction(bi, bk, bn)) | |
336 | 336 | fraction(bp, bo, bl) | |
337 | 337 | } | |
338 | 338 | ||
339 | 339 | ||
340 | 340 | func bq (br) = { | |
341 | 341 | func aU (aV,aw) = (aV :+ be(aw)) | |
342 | 342 | ||
343 | 343 | let aX = br | |
344 | 344 | let aY = size(aX) | |
345 | 345 | let aZ = nil | |
346 | 346 | func ba (bb,bc) = if ((bc >= aY)) | |
347 | 347 | then bb | |
348 | 348 | else aU(bb, aX[bc]) | |
349 | 349 | ||
350 | 350 | func bd (bb,bc) = if ((bc >= aY)) | |
351 | 351 | then bb | |
352 | 352 | else throw("List size exceeds 20") | |
353 | 353 | ||
354 | 354 | bd(ba(ba(ba(ba(ba(ba(ba(ba(ba(ba(ba(ba(ba(ba(ba(ba(ba(ba(ba(ba(aZ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
355 | 355 | } | |
356 | 356 | ||
357 | 357 | ||
358 | 358 | func bs (au,av,aw) = { | |
359 | 359 | let bt = aS([au, av]) | |
360 | 360 | let bu = be(aw) | |
361 | 361 | let bv = [toString(bt[0]), toString(bt[1]), toString(bu)] | |
362 | 362 | [StringEntry(P, makeString(bv, ","))] | |
363 | 363 | } | |
364 | 364 | ||
365 | 365 | ||
366 | 366 | func bw (bf,aq,bx,au,by,av,ax,ay) = if ((bf == a)) | |
367 | 367 | then { | |
368 | 368 | let bz = { | |
369 | 369 | let at = invoke(aq, "callFunction", ["calcLPReplenishTwoTokensREADONLY", [toString(bx), toString(by)]], nil) | |
370 | 370 | if ($isInstanceOf(at, "List[Any]")) | |
371 | 371 | then at | |
372 | 372 | else throw(($getType(at) + " couldn't be cast to List[Any]")) | |
373 | 373 | } | |
374 | 374 | if ((bz == bz)) | |
375 | 375 | then $Tuple5({ | |
376 | 376 | let at = bz[3] | |
377 | 377 | if ($isInstanceOf(at, "Int")) | |
378 | 378 | then at | |
379 | 379 | else throw(($getType(at) + " couldn't be cast to Int")) | |
380 | 380 | }, { | |
381 | 381 | let at = bz[4] | |
382 | 382 | if ($isInstanceOf(at, "Int")) | |
383 | 383 | then at | |
384 | 384 | else throw(($getType(at) + " couldn't be cast to Int")) | |
385 | 385 | }, { | |
386 | 386 | let at = bz[1] | |
387 | 387 | if ($isInstanceOf(at, "Int")) | |
388 | 388 | then at | |
389 | 389 | else throw(($getType(at) + " couldn't be cast to Int")) | |
390 | 390 | }, aN(bz[2]), { | |
391 | 391 | let at = bz[0] | |
392 | 392 | if ($isInstanceOf(at, "Int")) | |
393 | 393 | then at | |
394 | 394 | else throw(($getType(at) + " couldn't be cast to Int")) | |
395 | 395 | }) | |
396 | 396 | else throw("Strict value is not equal to itself.") | |
397 | 397 | } | |
398 | 398 | else { | |
399 | 399 | let bA = $Tuple2(split({ | |
400 | 400 | let at = invoke(aq, "evaluatePutByAmountAssetREADONLY", [bx], nil) | |
401 | 401 | if ($isInstanceOf(at, "String")) | |
402 | 402 | then at | |
403 | 403 | else throw(($getType(at) + " couldn't be cast to String")) | |
404 | 404 | }, "__"), split({ | |
405 | 405 | let at = invoke(aq, "evaluatePutByPriceAssetREADONLY", [by], nil) | |
406 | 406 | if ($isInstanceOf(at, "String")) | |
407 | 407 | then at | |
408 | 408 | else throw(($getType(at) + " couldn't be cast to String")) | |
409 | 409 | }, "__")) | |
410 | 410 | if ((bA == bA)) | |
411 | 411 | then { | |
412 | 412 | let bB = bA._2 | |
413 | 413 | let bC = bA._1 | |
414 | 414 | let bD = parseIntValue(bC[1]) | |
415 | 415 | let bE = parseIntValue(bB[1]) | |
416 | 416 | if ((bE > bD)) | |
417 | 417 | then { | |
418 | 418 | let bF = parseIntValue(bC[8]) | |
419 | 419 | $Tuple5(bx, bF, (by - bF), av, bE) | |
420 | 420 | } | |
421 | 421 | else { | |
422 | 422 | let bF = parseIntValue(bC[8]) | |
423 | 423 | $Tuple5(bF, by, (bx - bF), au, bD) | |
424 | 424 | } | |
425 | 425 | } | |
426 | 426 | else throw("Strict value is not equal to itself.") | |
427 | 427 | } | |
428 | 428 | ||
429 | 429 | ||
430 | 430 | func bG (aq,bf,bx,au,by,av) = { | |
431 | 431 | let bH = [AttachedPayment(aO(au), bx), AttachedPayment(aO(av), by)] | |
432 | 432 | if ((bf == a)) | |
433 | 433 | then invoke(aq, "callFunction", ["replenishWithTwoTokens", ["false", "0"]], bH) | |
434 | 434 | else invoke(aq, "put", [1000000, false], bH) | |
435 | 435 | } | |
436 | 436 | ||
437 | 437 | ||
438 | 438 | func bI (aq,bf,bF,bJ) = { | |
439 | 439 | let bH = [AttachedPayment(aO(bJ), bF)] | |
440 | 440 | if ((bf == a)) | |
441 | 441 | then invoke(aq, "callFunction", ["replenishWithOneToken", ["0", "false", "0"]], bH) | |
442 | 442 | else invoke(aq, "putOneTkn", [0, false], bH) | |
443 | 443 | } | |
444 | 444 | ||
445 | 445 | ||
446 | 446 | func bK (aD,bf,aw,bL) = { | |
447 | 447 | let bH = [AttachedPayment(fromBase58String(aw), bL)] | |
448 | 448 | if ((bf == a)) | |
449 | 449 | then invoke(aJ(), "lockShareTokens", [aD, 0], bH) | |
450 | 450 | else invoke(aK(addressFromStringValue(aD)), "stake", nil, bH) | |
451 | 451 | } | |
452 | 452 | ||
453 | 453 | ||
454 | 454 | func bM (aD,bf,aw,bL) = { | |
455 | 455 | let bN = if ((bf == a)) | |
456 | 456 | then $Tuple3(aJ(), "withdrawShareTokens", [aD, bL]) | |
457 | 457 | else if ((bf == b)) | |
458 | 458 | then $Tuple3(aK(Address(fromBase58String(aD))), "unstake", [aw, bL]) | |
459 | 459 | else throw("Wrong pool type") | |
460 | 460 | let bO = bN._1 | |
461 | 461 | let bP = bN._2 | |
462 | 462 | let bQ = bN._3 | |
463 | 463 | let bR = invoke(bO, bP, bQ, nil) | |
464 | 464 | if ((bR == bR)) | |
465 | 465 | then bL | |
466 | 466 | else throw("Strict value is not equal to itself.") | |
467 | 467 | } | |
468 | 468 | ||
469 | 469 | ||
470 | 470 | func bS (aD,bT,bU,ax,ay,bV,bW) = { | |
471 | 471 | let aq = Address(fromBase58String(aD)) | |
472 | 472 | let bX = 1000000 | |
473 | 473 | let bY = getIntegerValue(aq, t) | |
474 | 474 | let bZ = fraction(bV, bX, (bX - bY)) | |
475 | 475 | let ca = if ((bW == bT)) | |
476 | 476 | then { | |
477 | - | let cb = fraction( | |
477 | + | let cb = fraction(bZ, ay, (ax - bZ)) | |
478 | 478 | $Tuple2(cb, bU) | |
479 | 479 | } | |
480 | 480 | else { | |
481 | - | let cb = fraction( | |
481 | + | let cb = fraction(bZ, ax, (ay - bZ)) | |
482 | 482 | $Tuple2(cb, bT) | |
483 | 483 | } | |
484 | 484 | let cb = ca._1 | |
485 | 485 | let cc = ca._2 | |
486 | 486 | $Tuple2(cc, cb) | |
487 | 487 | } | |
488 | 488 | ||
489 | 489 | ||
490 | 490 | func cd (aD,bT,bU,ax,ay,bV,bW) = { | |
491 | 491 | let ce = getIntegerValue(ab, "%s__protocolFee") | |
492 | 492 | let cf = getIntegerValue(ab, "%s__poolFee") | |
493 | 493 | let cg = toBigInt(100000000) | |
494 | 494 | let ch = if ((bW == bT)) | |
495 | 495 | then { | |
496 | - | let cb = fraction( | |
496 | + | let cb = fraction(bV, ay, (ax - bV)) | |
497 | 497 | $Tuple2(cb, bU) | |
498 | 498 | } | |
499 | 499 | else { | |
500 | - | let cb = fraction( | |
500 | + | let cb = fraction(bV, ax, (ay - bV)) | |
501 | 501 | $Tuple2(cb, bT) | |
502 | 502 | } | |
503 | 503 | let cb = ch._1 | |
504 | 504 | let cc = ch._2 | |
505 | 505 | let ci = toInt(fraction(toBigInt(cb), cg, (cg - toBigInt((ce + cf))))) | |
506 | 506 | $Tuple2(cc, ci) | |
507 | 507 | } | |
508 | 508 | ||
509 | 509 | ||
510 | 510 | func cj (aA,aD,bT,bU,ax,ay,bV,bW) = if ((aA == a)) | |
511 | 511 | then { | |
512 | 512 | let ck = bS(aD, bT, bU, ax, ay, bV, bW) | |
513 | 513 | let cc = ck._1 | |
514 | 514 | let cb = ck._2 | |
515 | 515 | invoke(addressFromStringValue(aD), "callFunction", ["exchange", ["1"]], [AttachedPayment(aO(cc), cb)]) | |
516 | 516 | } | |
517 | 517 | else { | |
518 | 518 | let cl = cd(aD, bT, bU, ax, ay, bV, bW) | |
519 | 519 | let cc = cl._1 | |
520 | 520 | let cb = cl._2 | |
521 | 521 | invoke(ab, "swap", [1, bW, toString(this)], [AttachedPayment(aO(cc), cb)]) | |
522 | 522 | } | |
523 | 523 | ||
524 | 524 | ||
525 | 525 | func cm (bf,aD,bx,au,by,av,ax,ay) = { | |
526 | 526 | let aq = addressFromStringValue(aD) | |
527 | 527 | if ((bf == a)) | |
528 | 528 | then { | |
529 | 529 | let bR = { | |
530 | 530 | let at = invoke(aq, "callFunction", ["calcLPReplenishDiffPropREADONLY", [toString(bx), toString(by), "0"]], nil) | |
531 | 531 | if ($isInstanceOf(at, "List[Any]")) | |
532 | 532 | then at | |
533 | 533 | else throw(($getType(at) + " couldn't be cast to List[Any]")) | |
534 | 534 | } | |
535 | 535 | if ((bR == bR)) | |
536 | 536 | then $Tuple2({ | |
537 | 537 | let at = bR[0] | |
538 | 538 | if ($isInstanceOf(at, "Int")) | |
539 | 539 | then at | |
540 | 540 | else throw(($getType(at) + " couldn't be cast to Int")) | |
541 | 541 | }, { | |
542 | 542 | let at = bR[1] | |
543 | 543 | if ($isInstanceOf(at, "Int")) | |
544 | 544 | then at | |
545 | 545 | else throw(($getType(at) + " couldn't be cast to Int")) | |
546 | 546 | }) | |
547 | 547 | else throw("Strict value is not equal to itself.") | |
548 | 548 | } | |
549 | 549 | else if ((bf == b)) | |
550 | 550 | then { | |
551 | 551 | let cn = if (if ((bx > 0)) | |
552 | 552 | then (by > 0) | |
553 | 553 | else false) | |
554 | 554 | then { | |
555 | 555 | let co = bw(bf, aq, bx, au, by, av, ax, ay) | |
556 | 556 | let cp = co._1 | |
557 | 557 | let cq = co._2 | |
558 | 558 | let cr = co._3 | |
559 | 559 | let cs = co._4 | |
560 | 560 | let ct = co._5 | |
561 | 561 | $Tuple3(cr, cs, ct) | |
562 | 562 | } | |
563 | 563 | else if ((bx > 0)) | |
564 | 564 | then $Tuple3(bx, au, 0) | |
565 | 565 | else $Tuple3(by, av, 0) | |
566 | 566 | let cr = cn._1 | |
567 | 567 | let cs = cn._2 | |
568 | 568 | let cu = cn._3 | |
569 | 569 | let cv = if ((cr > 0)) | |
570 | 570 | then { | |
571 | 571 | let bR = { | |
572 | 572 | let at = invoke(aq, "putOneTknREADONLY", [cs, cr], nil) | |
573 | 573 | if ($isInstanceOf(at, "(Int, Int, Int)")) | |
574 | 574 | then at | |
575 | 575 | else throw(($getType(at) + " couldn't be cast to (Int, Int, Int)")) | |
576 | 576 | } | |
577 | 577 | if ((bR == bR)) | |
578 | 578 | then $Tuple2(bR._1, bR._3) | |
579 | 579 | else throw("Strict value is not equal to itself.") | |
580 | 580 | } | |
581 | 581 | else $Tuple2(0, 0) | |
582 | 582 | let cw = cv._1 | |
583 | 583 | let cx = cv._2 | |
584 | 584 | $Tuple2((cu + cw), cx) | |
585 | 585 | } | |
586 | 586 | else throw("Wrong pool type") | |
587 | 587 | } | |
588 | 588 | ||
589 | 589 | ||
590 | 590 | func cy (bf,aD,ct,aw,au,av,ax,ay,cz,cA) = { | |
591 | 591 | let aq = addressFromStringValue(aD) | |
592 | 592 | let cB = if ((bf == a)) | |
593 | 593 | then { | |
594 | 594 | let bR = { | |
595 | 595 | let at = invoke(aq, "callFunction", ["withdrawREADONLY", [toString(ct), toString(ax), toString(ay)]], nil) | |
596 | 596 | if ($isInstanceOf(at, "List[Any]")) | |
597 | 597 | then at | |
598 | 598 | else throw(($getType(at) + " couldn't be cast to List[Any]")) | |
599 | 599 | } | |
600 | 600 | if ((bR == bR)) | |
601 | 601 | then $Tuple2({ | |
602 | 602 | let at = bR[0] | |
603 | 603 | if ($isInstanceOf(at, "Int")) | |
604 | 604 | then at | |
605 | 605 | else throw(($getType(at) + " couldn't be cast to Int")) | |
606 | 606 | }, { | |
607 | 607 | let at = bR[1] | |
608 | 608 | if ($isInstanceOf(at, "Int")) | |
609 | 609 | then at | |
610 | 610 | else throw(($getType(at) + " couldn't be cast to Int")) | |
611 | 611 | }) | |
612 | 612 | else throw("Strict value is not equal to itself.") | |
613 | 613 | } | |
614 | 614 | else if ((bf == b)) | |
615 | 615 | then { | |
616 | 616 | let cC = split({ | |
617 | 617 | let at = invoke(aq, "evaluateGetREADONLY", [aw, ct], nil) | |
618 | 618 | if ($isInstanceOf(at, "String")) | |
619 | 619 | then at | |
620 | 620 | else throw(($getType(at) + " couldn't be cast to String")) | |
621 | 621 | }, "__") | |
622 | 622 | if ((cC == cC)) | |
623 | 623 | then $Tuple2(parseIntValue(cC[1]), parseIntValue(cC[2])) | |
624 | 624 | else throw("Strict value is not equal to itself.") | |
625 | 625 | } | |
626 | 626 | else throw("Wrong pool type") | |
627 | 627 | let cD = cB._1 | |
628 | 628 | let cE = cB._2 | |
629 | 629 | if ((cz > 0)) | |
630 | 630 | then { | |
631 | 631 | let cF = if (if ((cA == au)) | |
632 | 632 | then (cz > cD) | |
633 | 633 | else false) | |
634 | 634 | then (cz - cD) | |
635 | 635 | else if (if ((cA == av)) | |
636 | 636 | then (cz > cE) | |
637 | 637 | else false) | |
638 | 638 | then (cz - cE) | |
639 | 639 | else 0 | |
640 | 640 | let cG = if ((cF > 0)) | |
641 | 641 | then if ((bf == a)) | |
642 | 642 | then bS(aD, au, av, ax, ay, cF, cA) | |
643 | 643 | else cd(aD, au, av, ax, ay, cF, cA) | |
644 | 644 | else $Tuple2("", 0) | |
645 | 645 | let cc = cG._1 | |
646 | 646 | let cb = cG._2 | |
647 | 647 | if ((cA == au)) | |
648 | 648 | then $Tuple2(((cD + cF) - cz), (cE - cb)) | |
649 | 649 | else $Tuple2((cD - cb), ((cE + cF) - cz)) | |
650 | 650 | } | |
651 | 651 | else $Tuple2(cD, cE) | |
652 | 652 | } | |
653 | 653 | ||
654 | 654 | ||
655 | 655 | func cH (aA,aD) = if ((aA == a)) | |
656 | 656 | then { | |
657 | 657 | let cI = ak(ac) | |
658 | 658 | if ((cI == cI)) | |
659 | 659 | then { | |
660 | 660 | let bR = invoke(aJ(), "claim", [aD], nil) | |
661 | 661 | if ((bR == bR)) | |
662 | 662 | then { | |
663 | 663 | let cJ = ak(ac) | |
664 | 664 | $Tuple2((cJ - cI), ac) | |
665 | 665 | } | |
666 | 666 | else throw("Strict value is not equal to itself.") | |
667 | 667 | } | |
668 | 668 | else throw("Strict value is not equal to itself.") | |
669 | 669 | } | |
670 | 670 | else if ((aA == b)) | |
671 | 671 | then { | |
672 | 672 | let cI = ak(ad) | |
673 | 673 | if ((cI == cI)) | |
674 | 674 | then { | |
675 | 675 | let bR = invoke(aK(Address(fromBase58String(aD))), "claimWX", [aD], nil) | |
676 | 676 | if ((bR == bR)) | |
677 | 677 | then { | |
678 | 678 | let cJ = ak(ad) | |
679 | 679 | $Tuple2((cJ - cI), ad) | |
680 | 680 | } | |
681 | 681 | else throw("Strict value is not equal to itself.") | |
682 | 682 | } | |
683 | 683 | else throw("Strict value is not equal to itself.") | |
684 | 684 | } | |
685 | 685 | else throw("Wrong pool type") | |
686 | 686 | ||
687 | 687 | ||
688 | 688 | func cK (bf,aD,aI,bx,au,by,av,ax,ay,cL) = { | |
689 | 689 | let cM = ak(fromBase58String(cL)) | |
690 | 690 | if ((cM == cM)) | |
691 | 691 | then { | |
692 | 692 | let aq = addressFromStringValue(aD) | |
693 | 693 | let cN = if (if ((bx > 0)) | |
694 | 694 | then (by > 0) | |
695 | 695 | else false) | |
696 | 696 | then { | |
697 | 697 | let cO = bw(bf, aq, bx, au, by, av, ax, ay) | |
698 | 698 | let cp = cO._1 | |
699 | 699 | let cq = cO._2 | |
700 | 700 | let cr = cO._3 | |
701 | 701 | let cs = cO._4 | |
702 | 702 | let bR = bG(aq, bf, cp, au, cq, av) | |
703 | 703 | if ((bR == bR)) | |
704 | 704 | then $Tuple2(cr, cs) | |
705 | 705 | else throw("Strict value is not equal to itself.") | |
706 | 706 | } | |
707 | 707 | else if ((bx > 0)) | |
708 | 708 | then $Tuple2(bx, au) | |
709 | 709 | else if ((by > 0)) | |
710 | 710 | then $Tuple2(by, av) | |
711 | 711 | else throw("pmts must be > 0") | |
712 | 712 | let cr = cN._1 | |
713 | 713 | let cs = cN._2 | |
714 | 714 | let bR = if ((cr > 0)) | |
715 | 715 | then bI(aq, bf, cr, cs) | |
716 | 716 | else nil | |
717 | 717 | if ((bR == bR)) | |
718 | 718 | then { | |
719 | 719 | let cP = ak(fromBase58String(cL)) | |
720 | 720 | let cQ = (cP - cM) | |
721 | 721 | let cR = fraction(cQ, aH(aD, aI), m) | |
722 | 722 | let cS = (cQ - cR) | |
723 | 723 | if ((0 >= cS)) | |
724 | 724 | then throw("amount of staked sharetokens must be > 0") | |
725 | 725 | else { | |
726 | 726 | let cT = bK(aD, bf, cL, cS) | |
727 | 727 | if ((cT == cT)) | |
728 | 728 | then $Tuple2(cS, cR) | |
729 | 729 | else throw("Strict value is not equal to itself.") | |
730 | 730 | } | |
731 | 731 | } | |
732 | 732 | else throw("Strict value is not equal to itself.") | |
733 | 733 | } | |
734 | 734 | else throw("Strict value is not equal to itself.") | |
735 | 735 | } | |
736 | 736 | ||
737 | 737 | ||
738 | 738 | func cU (aD,aG,cV,cR,cW,aw,aA,cX) = { | |
739 | 739 | let cY = aC(aD) | |
740 | 740 | let cZ = aE(aD) | |
741 | 741 | let da = if (cX) | |
742 | 742 | then $Tuple2(getIntegerValue(this, (aD + C)), (cZ + cV)) | |
743 | 743 | else $Tuple2(getIntegerValue(this, (aD + D)), cZ) | |
744 | 744 | let db = da._1 | |
745 | 745 | let dc = da._2 | |
746 | 746 | [IntegerEntry((aD + A), (cY + cV)), IntegerEntry((aD + B), dc), IntegerEntry((((((aD + "_") + aG) + "_") + toString(cW)) + u), cV), IntegerEntry((((((aD + "_") + aG) + "_") + toString(cW)) + z), db), StringEntry((((aG + "_") + toString(cW)) + v), aD), IntegerEntry((aG + y), cW), ScriptTransfer(Y, cR, fromBase58String(aw))] | |
747 | 747 | } | |
748 | 748 | ||
749 | 749 | ||
750 | 750 | func dd (de,df,dg,dh,di,dj,dk,dl,dm,dn) = { | |
751 | 751 | let do = ak(aO(de)) | |
752 | 752 | if ((do == do)) | |
753 | 753 | then { | |
754 | 754 | let bR = invoke(Z, "swap", [dh, di, dj, dk, dl, dm, dn], [AttachedPayment(dg, df)]) | |
755 | 755 | if ((bR == bR)) | |
756 | 756 | then (ak(aO(de)) - do) | |
757 | 757 | else throw("Strict value is not equal to itself.") | |
758 | 758 | } | |
759 | 759 | else throw("Strict value is not equal to itself.") | |
760 | 760 | } | |
761 | 761 | ||
762 | 762 | ||
763 | 763 | func dp (de,df,dg,dq,dr,dn) = { | |
764 | 764 | let do = ak(aO(de)) | |
765 | 765 | if ((do == do)) | |
766 | 766 | then { | |
767 | 767 | let bR = invoke(Z, "puzzleSwap", [dq, dr, dn], [AttachedPayment(dg, df)]) | |
768 | 768 | if ((bR == bR)) | |
769 | 769 | then (ak(aO(de)) - do) | |
770 | 770 | else throw("Strict value is not equal to itself.") | |
771 | 771 | } | |
772 | 772 | else throw("Strict value is not equal to itself.") | |
773 | 773 | } | |
774 | 774 | ||
775 | 775 | ||
776 | 776 | func ds (de,df,dg,dt,du,dv,dw,dx,dy,dn) = { | |
777 | 777 | let do = ak(aO(de)) | |
778 | 778 | if ((do == do)) | |
779 | 779 | then { | |
780 | 780 | let bR = invoke(Z, "swopfiSwap", [dt, du, dv, dw, dx, dy, dn], [AttachedPayment(dg, df)]) | |
781 | 781 | if ((bR == bR)) | |
782 | 782 | then (ak(aO(de)) - do) | |
783 | 783 | else throw("Strict value is not equal to itself.") | |
784 | 784 | } | |
785 | 785 | else throw("Strict value is not equal to itself.") | |
786 | 786 | } | |
787 | 787 | ||
788 | 788 | ||
789 | 789 | func dz (aD,bf,dA,dB) = { | |
790 | 790 | let aq = Address(fromBase58String(aD)) | |
791 | 791 | let dC = az(aq, bf) | |
792 | 792 | let dD = dC._1 | |
793 | 793 | let dE = dC._2 | |
794 | 794 | let ax = dC._3 | |
795 | 795 | let ay = dC._4 | |
796 | 796 | let aw = dC._5 | |
797 | 797 | if (if ((dA != dD)) | |
798 | 798 | then (dA != dE) | |
799 | 799 | else false) | |
800 | 800 | then throw("Wrong asset") | |
801 | 801 | else { | |
802 | 802 | let dF = if ((dA == dD)) | |
803 | 803 | then $Tuple2(dB, 0) | |
804 | 804 | else $Tuple2(0, dB) | |
805 | 805 | let bx = dF._1 | |
806 | 806 | let by = dF._2 | |
807 | 807 | let dG = cK(bf, aD, i, bx, dD, by, dE, ax, ay, aw) | |
808 | 808 | let cV = dG._1 | |
809 | 809 | let dH = dG._2 | |
810 | 810 | let dI = valueOrElse(getInteger(this, (aD + C)), 0) | |
811 | 811 | let dJ = valueOrElse(getInteger(this, (aD + D)), 0) | |
812 | 812 | let dK = aC(aD) | |
813 | 813 | let dL = aE(aD) | |
814 | 814 | let dM = fraction(dL, j, dK) | |
815 | 815 | let dN = fraction(cV, dM, j) | |
816 | 816 | let dO = (cV - dN) | |
817 | 817 | let dP = if ((dL > 0)) | |
818 | 818 | then (dI + fraction(dN, k, dL)) | |
819 | 819 | else 0 | |
820 | 820 | let dQ = if (((dK - dL) > 0)) | |
821 | 821 | then (dJ + fraction(dO, k, (dK - dL))) | |
822 | 822 | else 0 | |
823 | 823 | let dR = fraction(dN, aH(aD, d), m) | |
824 | 824 | let dS = fraction(dO, aH(aD, c), m) | |
825 | 825 | let dT = bM(aD, bf, aw, (dR + dS)) | |
826 | 826 | if ((dT == dT)) | |
827 | 827 | then ([IntegerEntry((aD + C), dP), IntegerEntry((aD + D), dQ), IntegerEntry((aD + A), ((dK + cV) - dT)), IntegerEntry((aD + B), ((dL + dN) - dR)), ScriptTransfer(Y, (dR + dS), fromBase58String(aw))] ++ bs(dD, dE, aw)) | |
828 | 828 | else throw("Strict value is not equal to itself.") | |
829 | 829 | } | |
830 | 830 | } | |
831 | 831 | ||
832 | 832 | ||
833 | 833 | func dU (aD,dV,dW,dX) = { | |
834 | 834 | let aq = Address(fromBase58String(aD)) | |
835 | 835 | let bf = valueOrErrorMessage(getString(this, (M + aD)), "Unknown pool") | |
836 | 836 | let dY = az(aq, bf) | |
837 | 837 | let bT = dY._1 | |
838 | 838 | let bU = dY._2 | |
839 | 839 | let ax = dY._3 | |
840 | 840 | let ay = dY._4 | |
841 | 841 | let aw = dY._5 | |
842 | 842 | let dZ = ak(aO(bT)) | |
843 | 843 | if ((dZ == dZ)) | |
844 | 844 | then { | |
845 | 845 | let ea = ak(aO(bU)) | |
846 | 846 | if ((ea == ea)) | |
847 | 847 | then { | |
848 | 848 | let bR = if ((bf == a)) | |
849 | 849 | then invoke(aq, "callFunction", ["withdraw", [toString(dV)]], nil) | |
850 | 850 | else { | |
851 | 851 | let bR = bM(aD, bf, aw, dV) | |
852 | 852 | if ((bR == bR)) | |
853 | 853 | then invoke(aq, "get", nil, [AttachedPayment(aO(aw), dV)]) | |
854 | 854 | else throw("Strict value is not equal to itself.") | |
855 | 855 | } | |
856 | 856 | if ((bR == bR)) | |
857 | 857 | then { | |
858 | 858 | let eb = ak(aO(bT)) | |
859 | 859 | let ec = ak(aO(bU)) | |
860 | 860 | let ed = $Tuple2((eb - dZ), (ec - ea)) | |
861 | 861 | let ee = ed._1 | |
862 | 862 | let ef = ed._2 | |
863 | 863 | let eg = if ((dW > 0)) | |
864 | 864 | then { | |
865 | 865 | let cF = if (if ((dX == bT)) | |
866 | 866 | then (dW > ee) | |
867 | 867 | else false) | |
868 | 868 | then (dW - ee) | |
869 | 869 | else if (if ((dX == bU)) | |
870 | 870 | then (dW > ef) | |
871 | 871 | else false) | |
872 | 872 | then (dW - ef) | |
873 | 873 | else 0 | |
874 | 874 | let eh = if ((cF > 0)) | |
875 | 875 | then cj(bf, aD, bT, bU, ax, ay, cF, dX) | |
876 | 876 | else 0 | |
877 | 877 | if ((eh == eh)) | |
878 | 878 | then { | |
879 | 879 | let ei = ak(aO(bT)) | |
880 | 880 | let ej = ak(aO(bU)) | |
881 | 881 | $Tuple2((ei - dZ), (ej - ea)) | |
882 | 882 | } | |
883 | 883 | else throw("Strict value is not equal to itself.") | |
884 | 884 | } | |
885 | 885 | else $Tuple2(ee, ef) | |
886 | 886 | let ek = eg._1 | |
887 | 887 | let el = eg._2 | |
888 | 888 | $Tuple7(ek, bT, el, bU, eb, ec, aw) | |
889 | 889 | } | |
890 | 890 | else throw("Strict value is not equal to itself.") | |
891 | 891 | } | |
892 | 892 | else throw("Strict value is not equal to itself.") | |
893 | 893 | } | |
894 | 894 | else throw("Strict value is not equal to itself.") | |
895 | 895 | } | |
896 | 896 | ||
897 | 897 | ||
898 | 898 | func em (aG,aD,en,eo) = { | |
899 | 899 | let ep = valueOrErrorMessage(getInteger(this, (((((aD + "_") + aG) + "_") + en) + u)), "Unknown position") | |
900 | 900 | let eq = getIntegerValue(this, (((((aD + "_") + aG) + "_") + en) + z)) | |
901 | 901 | let er = if (eo) | |
902 | 902 | then getIntegerValue(this, (aD + C)) | |
903 | 903 | else getIntegerValue(this, (aD + D)) | |
904 | 904 | (ep + fraction(ep, (er - eq), k)) | |
905 | 905 | } | |
906 | 906 | ||
907 | 907 | ||
908 | 908 | func es (aG,aD,en,et) = { | |
909 | 909 | let ep = valueOrErrorMessage(getInteger(this, (((((aD + "_") + aG) + "_") + en) + u)), "Unknown position") | |
910 | - | let eq = getIntegerValue(this, (((((aD + "_") + aG) + "_") + en) + z)) | |
911 | 910 | let cz = valueOrElse(getInteger(this, (((((aD + "_") + aG) + "_") + en) + w)), 0) | |
912 | 911 | let dV = em(aG, aD, en, (cz > 0)) | |
913 | 912 | let eu = aC(aD) | |
914 | 913 | let ev = Address(fromBase58String(aG)) | |
915 | 914 | let dX = valueOrElse(getString(this, (((((aD + "_") + aG) + "_") + en) + x)), "") | |
916 | 915 | let dW = if ((cz > 0)) | |
917 | 916 | then { | |
918 | 917 | let at = invoke(ae(), "getAssetDebt", [false, ((aG + "_") + en), dX], nil) | |
919 | 918 | if ($isInstanceOf(at, "Int")) | |
920 | 919 | then at | |
921 | 920 | else throw(($getType(at) + " couldn't be cast to Int")) | |
922 | 921 | } | |
923 | 922 | else 0 | |
924 | 923 | let ew = dU(aD, dV, dW, dX) | |
925 | 924 | if ((ew == ew)) | |
926 | 925 | then { | |
927 | 926 | let aw = ew._7 | |
928 | 927 | let ec = ew._6 | |
929 | 928 | let eb = ew._5 | |
930 | 929 | let bU = ew._4 | |
931 | 930 | let el = ew._3 | |
932 | 931 | let bT = ew._2 | |
933 | 932 | let ek = ew._1 | |
934 | 933 | let ex = if ((dW > 0)) | |
935 | 934 | then invoke(ae(), "repayFor", [((aG + "_") + en)], [AttachedPayment(aO(dX), dW)]) | |
936 | 935 | else 0 | |
937 | 936 | if ((ex == ex)) | |
938 | 937 | then ([DeleteEntry((((((aD + "_") + aG) + "_") + en) + u)), DeleteEntry((((((aD + "_") + aG) + "_") + en) + z)), IntegerEntry((aD + A), (eu - dV)), ScriptTransfer(ev, ek, aO(bT)), ScriptTransfer(ev, el, aO(bU))] ++ bs(bT, bU, aw)) | |
939 | 938 | else throw("Strict value is not equal to itself.") | |
940 | 939 | } | |
941 | 940 | else throw("Strict value is not equal to itself.") | |
942 | 941 | } | |
943 | 942 | ||
944 | 943 | ||
945 | 944 | func ey (ez) = { | |
946 | 945 | let eA = split(valueOrErrorMessage(getString(this, (ez + K)), ("No request with id " + ez)), ",") | |
947 | 946 | let aG = eA[0] | |
948 | 947 | let aD = eA[1] | |
949 | 948 | let bx = parseIntValue(eA[2]) | |
950 | 949 | let dD = eA[3] | |
951 | 950 | let by = parseIntValue(eA[4]) | |
952 | 951 | let dE = eA[5] | |
953 | 952 | let ax = parseIntValue(eA[6]) | |
954 | 953 | let ay = parseIntValue(eA[7]) | |
955 | 954 | let aw = eA[8] | |
956 | 955 | let eB = eA[9] | |
957 | 956 | let eC = parseIntValue(eA[10]) | |
958 | 957 | $Tuple11(aG, aD, bx, dD, by, dE, ax, ay, aw, eB, eC) | |
959 | 958 | } | |
960 | 959 | ||
961 | 960 | ||
962 | 961 | func eD (bx,by,au,av,eE,eF) = { | |
963 | 962 | let bj = ( let at = invoke(aa, "getTWAP60", [au, false], nil) | |
964 | 963 | if ($isInstanceOf(at, "(Int, Int)")) | |
965 | 964 | then at | |
966 | 965 | else throw(($getType(at) + " couldn't be cast to (Int, Int)")))._2 | |
967 | 966 | let bk = ( let at = invoke(aa, "getTWAP60", [av, false], nil) | |
968 | 967 | if ($isInstanceOf(at, "(Int, Int)")) | |
969 | 968 | then at | |
970 | 969 | else throw(($getType(at) + " couldn't be cast to (Int, Int)")))._2 | |
971 | 970 | let eG = pow(10, 0, aP(au), 0, 0, DOWN) | |
972 | 971 | let eH = pow(10, 0, aP(av), 0, 0, DOWN) | |
973 | 972 | let eI = (fraction(bj, bx, eG) + fraction(bk, by, eH)) | |
974 | 973 | let eJ = if ((eF == au)) | |
975 | 974 | then $Tuple2(bj, eG) | |
976 | 975 | else $Tuple2(bk, eH) | |
977 | 976 | let eK = eJ._1 | |
978 | 977 | let eL = eJ._2 | |
979 | 978 | fraction(fraction(eI, (eE - 100), 100), eL, eK) | |
980 | 979 | } | |
981 | 980 | ||
982 | 981 | ||
983 | 982 | @Callable(ah) | |
984 | 983 | func calcPriceImpactEVALONLY (aD,eE,eF,bx,by) = if (if ((100 > eE)) | |
985 | 984 | then true | |
986 | 985 | else (eE > 300)) | |
987 | 986 | then throw("Leverage can't be <100 and >300") | |
988 | 987 | else { | |
989 | 988 | let bf = valueOrErrorMessage(getString(this, (M + aD)), "Pool is not inited") | |
990 | 989 | let eM = az(Address(fromBase58String(aD)), bf) | |
991 | 990 | let dD = eM._1 | |
992 | 991 | let dE = eM._2 | |
993 | 992 | let ax = eM._3 | |
994 | 993 | let ay = eM._4 | |
995 | 994 | let aw = eM._5 | |
996 | 995 | let cz = if ((eE > 100)) | |
997 | 996 | then eD(bx, by, dD, dE, eE, eF) | |
998 | 997 | else 0 | |
999 | 998 | let eN = if ((eF == dD)) | |
1000 | 999 | then $Tuple2((bx + cz), by) | |
1001 | 1000 | else $Tuple2(bx, (by + cz)) | |
1002 | 1001 | let eO = eN._1 | |
1003 | 1002 | let eP = eN._2 | |
1004 | 1003 | let eQ = cm(bf, aD, eO, dD, eP, dE, ax, ay) | |
1005 | 1004 | let ct = eQ._1 | |
1006 | 1005 | let cx = eQ._2 | |
1007 | 1006 | let eR = if ((0 > cx)) | |
1008 | 1007 | then (cx * -1) | |
1009 | 1008 | else cx | |
1010 | 1009 | $Tuple2(nil, [eR]) | |
1011 | 1010 | } | |
1012 | 1011 | ||
1013 | 1012 | ||
1014 | 1013 | ||
1015 | 1014 | @Callable(ah) | |
1016 | 1015 | func getShareAssetPriceREADONLY (aw) = { | |
1017 | 1016 | let eS = be(aw) | |
1018 | 1017 | $Tuple2(nil, eS) | |
1019 | 1018 | } | |
1020 | 1019 | ||
1021 | 1020 | ||
1022 | 1021 | ||
1023 | 1022 | @Callable(ah) | |
1024 | 1023 | func getUserPositionShareAmountREADONLY (aG,cW) = { | |
1025 | 1024 | let aD = valueOrErrorMessage(getString(this, (((aG + "_") + cW) + v)), "Unknown position") | |
1026 | 1025 | let cz = getIntegerValue(this, (((((aD + "_") + aG) + "_") + cW) + w)) | |
1027 | 1026 | let dV = em(aG, aD, cW, (cz > 0)) | |
1028 | 1027 | $Tuple2(nil, dV) | |
1029 | 1028 | } | |
1030 | 1029 | ||
1031 | 1030 | ||
1032 | 1031 | ||
1033 | 1032 | @Callable(ah) | |
1034 | 1033 | func getUserPositionInDollarsREADONLY (aG,eT,cW) = { | |
1035 | 1034 | func eU (aV,aD) = { | |
1036 | 1035 | let eV = aV | |
1037 | 1036 | let eW = eV._1 | |
1038 | 1037 | let eX = eV._2 | |
1039 | 1038 | let eY = eV._3 | |
1040 | 1039 | let bf = valueOrErrorMessage(getString(this, (M + aD)), "Pool is not inited") | |
1041 | 1040 | let eZ = az(Address(fromBase58String(aD)), bf) | |
1042 | 1041 | let dD = eZ._1 | |
1043 | 1042 | let dE = eZ._2 | |
1044 | 1043 | let ax = eZ._3 | |
1045 | 1044 | let ay = eZ._4 | |
1046 | 1045 | let aw = eZ._5 | |
1047 | 1046 | let cz = valueOrElse(getInteger(this, (((((aD + "_") + aG) + "_") + cW[eY]) + w)), 0) | |
1048 | 1047 | let dV = em(aG, aD, cW[eY], (cz > 0)) | |
1049 | 1048 | let eS = be(aw) | |
1050 | 1049 | let fa = pow(10, 0, aP(aw), 0, 0, DOWN) | |
1051 | 1050 | let fb = fraction(dV, eS, fa) | |
1052 | 1051 | if ((cz == 0)) | |
1053 | 1052 | then $Tuple3((eW :+ fb), (eX :+ 0), (eY + 1)) | |
1054 | 1053 | else { | |
1055 | 1054 | let dX = getStringValue(this, (((((aD + "_") + aG) + "_") + cW[eY]) + x)) | |
1056 | 1055 | let dW = { | |
1057 | 1056 | let at = invoke(ae(), "getAssetDebt", [false, ((aG + "_") + cW[eY]), dX], nil) | |
1058 | 1057 | if ($isInstanceOf(at, "Int")) | |
1059 | 1058 | then at | |
1060 | 1059 | else throw(($getType(at) + " couldn't be cast to Int")) | |
1061 | 1060 | } | |
1062 | 1061 | let fc = ( let at = invoke(aa, "getTWAP60", [dX, false], nil) | |
1063 | 1062 | if ($isInstanceOf(at, "(Int, Int)")) | |
1064 | 1063 | then at | |
1065 | 1064 | else throw(($getType(at) + " couldn't be cast to (Int, Int)")))._1 | |
1066 | 1065 | let fd = pow(10, 0, aP(dX), 0, 0, DOWN) | |
1067 | 1066 | let fe = fraction(dW, fc, fd) | |
1068 | 1067 | $Tuple3((eW :+ fb), (eX :+ fe), (eY + 1)) | |
1069 | 1068 | } | |
1070 | 1069 | } | |
1071 | 1070 | ||
1072 | 1071 | let ff = { | |
1073 | 1072 | let aX = eT | |
1074 | 1073 | let aY = size(aX) | |
1075 | 1074 | let aZ = $Tuple3(nil, nil, 0) | |
1076 | 1075 | func ba (bb,bc) = if ((bc >= aY)) | |
1077 | 1076 | then bb | |
1078 | 1077 | else eU(bb, aX[bc]) | |
1079 | 1078 | ||
1080 | 1079 | func bd (bb,bc) = if ((bc >= aY)) | |
1081 | 1080 | then bb | |
1082 | 1081 | else throw("List size exceeds 20") | |
1083 | 1082 | ||
1084 | 1083 | bd(ba(ba(ba(ba(ba(ba(ba(ba(ba(ba(ba(ba(ba(ba(ba(ba(ba(ba(ba(ba(aZ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
1085 | 1084 | } | |
1086 | 1085 | let fg = ff._1 | |
1087 | 1086 | let dW = ff._2 | |
1088 | 1087 | $Tuple2(nil, $Tuple2(fg, dW)) | |
1089 | 1088 | } | |
1090 | 1089 | ||
1091 | 1090 | ||
1092 | 1091 | ||
1093 | 1092 | @Callable(ah) | |
1094 | 1093 | func replenish (aD,eE,eF) = if (if ((100 > eE)) | |
1095 | 1094 | then true | |
1096 | 1095 | else (eE > 300)) | |
1097 | 1096 | then throw("Leverage can't be <100 and >300") | |
1098 | 1097 | else { | |
1099 | 1098 | let bf = valueOrErrorMessage(getString(this, (M + aD)), "Pool is not inited") | |
1100 | 1099 | let fh = az(Address(fromBase58String(aD)), bf) | |
1101 | 1100 | let dD = fh._1 | |
1102 | 1101 | let dE = fh._2 | |
1103 | 1102 | let ax = fh._3 | |
1104 | 1103 | let ay = fh._4 | |
1105 | 1104 | let aw = fh._5 | |
1106 | 1105 | let fi = if ((size(ah.payments) == 2)) | |
1107 | 1106 | then if ((aN(ah.payments[0].assetId) != dD)) | |
1108 | 1107 | then throw("Wrong payment asset A") | |
1109 | 1108 | else if ((aN(ah.payments[1].assetId) != dE)) | |
1110 | 1109 | then throw("Wrong payment asset B") | |
1111 | 1110 | else $Tuple4(ah.payments[0].amount, dD, ah.payments[1].amount, dE) | |
1112 | 1111 | else if ((size(ah.payments) == 1)) | |
1113 | 1112 | then if ((aN(ah.payments[0].assetId) == dD)) | |
1114 | 1113 | then $Tuple4(ah.payments[0].amount, dD, 0, dE) | |
1115 | 1114 | else if ((aN(ah.payments[0].assetId) == dE)) | |
1116 | 1115 | then $Tuple4(0, dD, ah.payments[0].amount, dE) | |
1117 | 1116 | else throw("Wrong payment") | |
1118 | 1117 | else throw("One or two payments expected") | |
1119 | 1118 | let bx = fi._1 | |
1120 | 1119 | let fj = fi._2 | |
1121 | 1120 | let by = fi._3 | |
1122 | 1121 | let fk = fi._4 | |
1123 | 1122 | let fl = aF(toString(ah.caller)) | |
1124 | 1123 | if ((eE > 100)) | |
1125 | 1124 | then { | |
1126 | 1125 | let cz = eD(bx, by, fj, fk, eE, eF) | |
1127 | 1126 | let eA = makeString([toString(ah.caller), aD, toString(bx), fj, toString(by), fk, toString(ax), toString(ay), aw, eF, toString(cz)], ",") | |
1128 | 1127 | let fm = { | |
1129 | 1128 | let at = invoke(this, "createNewRequest", [eA], nil) | |
1130 | 1129 | if ($isInstanceOf(at, "Int")) | |
1131 | 1130 | then at | |
1132 | 1131 | else throw(($getType(at) + " couldn't be cast to Int")) | |
1133 | 1132 | } | |
1134 | 1133 | if ((fm == fm)) | |
1135 | 1134 | then { | |
1136 | 1135 | let fn = [((toString(ah.caller) + "_") + toString(fl)), aw, eF, cz, toString(this), "replenishFromLand", toString(valueOrErrorMessage(fm, "Can't create new request"))] | |
1137 | 1136 | let bR = reentrantInvoke(ae(), "flashPosition", fn, nil) | |
1138 | 1137 | if ((bR == bR)) | |
1139 | 1138 | then nil | |
1140 | 1139 | else throw("Strict value is not equal to itself.") | |
1141 | 1140 | } | |
1142 | 1141 | else throw("Strict value is not equal to itself.") | |
1143 | 1142 | } | |
1144 | 1143 | else { | |
1145 | 1144 | let fo = cK(bf, aD, h, bx, dD, by, dE, ax, ay, aw) | |
1146 | 1145 | let fp = fo._1 | |
1147 | 1146 | let dT = fo._2 | |
1148 | 1147 | (cU(aD, toString(ah.caller), fp, dT, fl, aw, bf, false) ++ bs(dD, dE, aw)) | |
1149 | 1148 | } | |
1150 | 1149 | } | |
1151 | 1150 | ||
1152 | 1151 | ||
1153 | 1152 | ||
1154 | 1153 | @Callable(ah) | |
1155 | 1154 | func withdraw (aD,en) = es(toString(ah.caller), aD, toString(en), false) | |
1156 | 1155 | ||
1157 | 1156 | ||
1158 | 1157 | ||
1159 | 1158 | @Callable(ah) | |
1160 | 1159 | func createUpdateStopLoss (en,fq,al,fr) = { | |
1161 | 1160 | let fs = ( let at = invoke(aa, "getTWAP60", [al, false], nil) | |
1162 | 1161 | if ($isInstanceOf(at, "(Int, Int)")) | |
1163 | 1162 | then at | |
1164 | 1163 | else throw(($getType(at) + " couldn't be cast to (Int, Int)")))._1 | |
1165 | 1164 | if (!(isDefined(getInteger(this, (((((fq + "_") + toString(ah.caller)) + "_") + toString(en)) + u))))) | |
1166 | 1165 | then throw("There are no user position") | |
1167 | 1166 | else if ((0 >= fr)) | |
1168 | 1167 | then throw("Price must be greater than 0") | |
1169 | 1168 | else if ((fr > fs)) | |
1170 | 1169 | then throw("Price must be less than current token price") | |
1171 | 1170 | else [IntegerEntry((((((((toString(ah.caller) + "_") + toString(en)) + "_") + fq) + "_") + al) + Q), fr)] | |
1172 | 1171 | } | |
1173 | 1172 | ||
1174 | 1173 | ||
1175 | 1174 | ||
1176 | 1175 | @Callable(ah) | |
1177 | 1176 | func deleteStopLoss (en,fq,al) = if (!(isDefined(getInteger(this, (((((((toString(ah.caller) + "_") + toString(en)) + "_") + fq) + "_") + al) + Q))))) | |
1178 | 1177 | then throw("No entry") | |
1179 | 1178 | else [DeleteEntry((((((((toString(ah.caller) + "_") + toString(en)) + "_") + fq) + "_") + al) + Q))] | |
1180 | 1179 | ||
1181 | 1180 | ||
1182 | 1181 | ||
1183 | 1182 | @Callable(ah) | |
1184 | 1183 | func createNewRequest (bQ) = valueOrElse(ai(ah), { | |
1185 | 1184 | let fm = (valueOrElse(getInteger(this, L), 0) + 1) | |
1186 | 1185 | $Tuple2([StringEntry((toString(fm) + K), bQ), IntegerEntry(L, fm)], fm) | |
1187 | 1186 | }) | |
1188 | 1187 | ||
1189 | 1188 | ||
1190 | 1189 | ||
1191 | 1190 | @Callable(ah) | |
1192 | 1191 | func replenishFromLand (ez) = valueOrElse(aj(ah), { | |
1193 | 1192 | let ft = ey(ez) | |
1194 | 1193 | let aG = ft._1 | |
1195 | 1194 | let aD = ft._2 | |
1196 | 1195 | let bx = ft._3 | |
1197 | 1196 | let dD = ft._4 | |
1198 | 1197 | let by = ft._5 | |
1199 | 1198 | let dE = ft._6 | |
1200 | 1199 | let ax = ft._7 | |
1201 | 1200 | let ay = ft._8 | |
1202 | 1201 | let aw = ft._9 | |
1203 | 1202 | let eB = ft._10 | |
1204 | 1203 | let eC = ft._11 | |
1205 | 1204 | if ((size(ah.payments) != 1)) | |
1206 | 1205 | then throw("Wrong payment size") | |
1207 | 1206 | else if (if ((aN(ah.payments[0].assetId) != eB)) | |
1208 | 1207 | then true | |
1209 | 1208 | else (ah.payments[0].amount != eC)) | |
1210 | 1209 | then throw("Wrong payment") | |
1211 | 1210 | else { | |
1212 | 1211 | let fu = if ((dD == eB)) | |
1213 | 1212 | then $Tuple2((bx + ah.payments[0].amount), by) | |
1214 | 1213 | else $Tuple2(bx, (by + ah.payments[0].amount)) | |
1215 | 1214 | let fv = fu._1 | |
1216 | 1215 | let fw = fu._2 | |
1217 | 1216 | let bf = valueOrErrorMessage(getString(this, (M + aD)), "Unknown pool") | |
1218 | 1217 | let fx = cK(bf, aD, g, fv, dD, fw, dE, ax, ay, aw) | |
1219 | 1218 | let fp = fx._1 | |
1220 | 1219 | let dT = fx._2 | |
1221 | 1220 | let cW = aF(aG) | |
1222 | 1221 | let fy = [IntegerEntry((((((aD + "_") + aG) + "_") + toString(cW)) + w), eC), StringEntry((((((aD + "_") + aG) + "_") + toString(cW)) + x), eB)] | |
1223 | 1222 | let fz = cU(aD, aG, fp, dT, cW, aw, bf, true) | |
1224 | 1223 | $Tuple2((((fz ++ bs(dD, dE, aw)) ++ fy) :+ DeleteEntry((ez + K))), fp) | |
1225 | 1224 | } | |
1226 | 1225 | }) | |
1227 | 1226 | ||
1228 | 1227 | ||
1229 | 1228 | ||
1230 | 1229 | @Callable(ah) | |
1231 | 1230 | func liquidate (aG,en,fA) = valueOrElse(aj(ah), { | |
1232 | 1231 | let aD = valueOrErrorMessage(getString(this, (((aG + "_") + en) + v)), "no position") | |
1233 | 1232 | let bf = valueOrErrorMessage(getString(this, (M + aD)), "Pool is not inited") | |
1234 | 1233 | let fB = az(Address(fromBase58String(aD)), bf) | |
1235 | 1234 | let dD = fB._1 | |
1236 | 1235 | let dE = fB._2 | |
1237 | 1236 | let ax = fB._3 | |
1238 | 1237 | let ay = fB._4 | |
1239 | 1238 | let aw = fB._5 | |
1240 | 1239 | let bL = bM(aD, bf, aw, fA) | |
1241 | 1240 | let cz = getIntegerValue(this, (((((aD + "_") + aG) + "_") + en) + w)) | |
1242 | 1241 | let dX = getStringValue(this, (((((aD + "_") + aG) + "_") + en) + x)) | |
1243 | 1242 | let dV = em(aG, aD, en, (cz > 0)) | |
1244 | 1243 | if ((cz == 0)) | |
1245 | 1244 | then throw("You can't liquidate position without borrow") | |
1246 | 1245 | else [IntegerEntry((((((aD + "_") + aG) + "_") + en) + z), getIntegerValue(this, (aD + C))), IntegerEntry((aD + B), (aE(aD) - fA)), IntegerEntry((aD + A), (aC(aD) - fA)), IntegerEntry((((((aD + "_") + aG) + "_") + en) + u), (dV - fA)), ScriptTransfer(ah.caller, bL, fromBase58String(aw))] | |
1247 | 1246 | }) | |
1248 | 1247 | ||
1249 | 1248 | ||
1250 | 1249 | ||
1251 | 1250 | @Callable(ah) | |
1252 | 1251 | func stopLoss (aG,en,aD,al) = valueOrElse(ag(ah), { | |
1253 | 1252 | let fs = ( let at = invoke(aa, "getTWAP60", [al, false], nil) | |
1254 | 1253 | if ($isInstanceOf(at, "(Int, Int)")) | |
1255 | 1254 | then at | |
1256 | 1255 | else throw(($getType(at) + " couldn't be cast to (Int, Int)")))._1 | |
1257 | 1256 | if (!(isDefined(getInteger(this, (((((((aG + "_") + toString(en)) + "_") + aD) + "_") + al) + Q))))) | |
1258 | 1257 | then throw("No entry") | |
1259 | 1258 | else (es(toString(ah.caller), aD, toString(en), true) :+ DeleteEntry((((((((aG + "_") + toString(en)) + "_") + aD) + "_") + al) + Q))) | |
1260 | 1259 | }) | |
1261 | 1260 | ||
1262 | 1261 | ||
1263 | 1262 | ||
1264 | 1263 | @Callable(ah) | |
1265 | 1264 | func capitalizeExKeeper (aD,aA,fC,fD,fE,dh,di,dj,dk,dl,dm,dn) = valueOrElse(ag(ah), { | |
1266 | 1265 | let fF = if (fE) | |
1267 | 1266 | then cH(aA, aD) | |
1268 | 1267 | else { | |
1269 | 1268 | let fG = if ((aA == a)) | |
1270 | 1269 | then ac | |
1271 | 1270 | else ad | |
1272 | 1271 | $Tuple2(fD, fG) | |
1273 | 1272 | } | |
1274 | 1273 | let fH = fF._1 | |
1275 | 1274 | let fG = fF._2 | |
1276 | 1275 | let fI = dd(fC, fD, fG, dh, di, dj, dk, dl, dm, dn) | |
1277 | 1276 | let cr = (fH - fD) | |
1278 | 1277 | let fJ = if ((cr > 0)) | |
1279 | 1278 | then [IntegerEntry((aD + O), (cr + valueOrElse(getInteger(this, (aD + O)), 0)))] | |
1280 | 1279 | else nil | |
1281 | 1280 | (dz(aD, aA, fC, fI) ++ fJ) | |
1282 | 1281 | }) | |
1283 | 1282 | ||
1284 | 1283 | ||
1285 | 1284 | ||
1286 | 1285 | @Callable(ah) | |
1287 | 1286 | func capitalizeExPuzzle (aD,aA,fC,fD,fE,dq,dr,dn) = valueOrElse(ag(ah), { | |
1288 | 1287 | let fK = if (fE) | |
1289 | 1288 | then cH(aA, aD) | |
1290 | 1289 | else { | |
1291 | 1290 | let fG = if ((aA == a)) | |
1292 | 1291 | then ac | |
1293 | 1292 | else ad | |
1294 | 1293 | $Tuple2(fD, fG) | |
1295 | 1294 | } | |
1296 | 1295 | let fH = fK._1 | |
1297 | 1296 | let fG = fK._2 | |
1298 | 1297 | let fI = dp(fC, fD, fG, dq, dr, dn) | |
1299 | 1298 | let cr = (fH - fD) | |
1300 | 1299 | let fJ = if ((cr > 0)) | |
1301 | 1300 | then [IntegerEntry((aD + O), (cr + valueOrElse(getInteger(this, (aD + O)), 0)))] | |
1302 | 1301 | else nil | |
1303 | 1302 | (dz(aD, aA, fC, fI) ++ fJ) | |
1304 | 1303 | }) | |
1305 | 1304 | ||
1306 | 1305 | ||
1307 | 1306 | ||
1308 | 1307 | @Callable(ah) | |
1309 | 1308 | func capitalizeExSwopFi (aD,aA,fC,fD,fE,dt,du,dv,dw,dx,dy,dn) = valueOrElse(ag(ah), { | |
1310 | 1309 | let fL = if (fE) | |
1311 | 1310 | then cH(aA, aD) | |
1312 | 1311 | else { | |
1313 | 1312 | let fG = if ((aA == a)) | |
1314 | 1313 | then ac | |
1315 | 1314 | else ad | |
1316 | 1315 | $Tuple2(fD, fG) | |
1317 | 1316 | } | |
1318 | 1317 | let fH = fL._1 | |
1319 | 1318 | let fG = fL._2 | |
1320 | 1319 | let fI = ds(fC, fD, fG, dt, du, dv, dw, dx, dy, dn) | |
1321 | 1320 | let cr = (fH - fD) | |
1322 | 1321 | let fJ = if ((cr > 0)) | |
1323 | 1322 | then [IntegerEntry((aD + O), (cr + valueOrElse(getInteger(this, (aD + O)), 0)))] | |
1324 | 1323 | else nil | |
1325 | 1324 | (dz(aD, aA, fC, fI) ++ fJ) | |
1326 | 1325 | }) | |
1327 | 1326 | ||
1328 | 1327 | ||
1329 | 1328 | ||
1330 | 1329 | @Callable(ah) | |
1331 | 1330 | func initNewPool (aA,aq,fM,fN,fO,fP,fQ,fR) = valueOrElse(ag(ah), if (if ((aA != a)) | |
1332 | 1331 | then (aA != b) | |
1333 | 1332 | else false) | |
1334 | 1333 | then throw("Wrong type") | |
1335 | 1334 | else { | |
1336 | 1335 | let fS = az(Address(fromBase58String(aq)), aA) | |
1337 | 1336 | let au = fS._1 | |
1338 | 1337 | let av = fS._2 | |
1339 | 1338 | let fT = fS._3 | |
1340 | 1339 | let fU = fS._4 | |
1341 | 1340 | let aw = fS._5 | |
1342 | 1341 | [IntegerEntry((aq + E), fM), IntegerEntry((aq + F), fN), IntegerEntry((aq + G), fO), IntegerEntry((aq + H), fP), IntegerEntry((aq + I), fQ), IntegerEntry((aq + J), fR), IntegerEntry((aq + C), 0), IntegerEntry((aq + D), 0), StringEntry((M + aq), aA), StringEntry((aw + N), aq)] | |
1343 | 1342 | }) | |
1344 | 1343 | ||
1345 | 1344 | ||
1346 | 1345 | @Verifier(fV) | |
1347 | 1346 | func fW () = sigVerify(fV.bodyBytes, fV.proofs[0], fV.senderPublicKey) | |
1348 | 1347 |
github/deemru/w8io/026f985 122.74 ms ◑