tx · 5W8me79ju9vr22gKggeGKTHUvDDc2gnGH7wsLsZTbiku 3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS: -0.05300000 Waves 2023.08.09 19:57 [2703331] smart account 3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS > SELF 0.00000000 Waves
{ "type": 13, "id": "5W8me79ju9vr22gKggeGKTHUvDDc2gnGH7wsLsZTbiku", "fee": 5300000, "feeAssetId": null, "timestamp": 1691600258575, "version": 2, "chainId": 84, "sender": "3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS", "senderPublicKey": "HP8sssVq1866F7CaPQJwgFrt6fsqhQjKwM84cL1wjD2a", "proofs": [ "65x9HktEpBzMjA45ynuehoBimtSosPj2nDM9UHgXVrAqi9JEYhqaVNv4FaYGr6WDU5no12ruZV1yuuakcb36Qkpf" ], "script": "base64:BgLBAQgCEgMKAQgSAwoBCBIECgIICBIFCgMIGBgSBQoDCAEIEgQKAggBEgYKBAEICAESBQoDAQgIEg8KDQgICAgICAgICAgICAgSAwoBCBIDCgEIEgUKAwgIARIGCgQIAQgIEg0KCwgIAQQRGBgYAQEYEgkKBwgIAQQIARgSDQoLCAgBBBgYGBgYARgSBQoDCAQBEgsKCQgIAQEBAQEBBBIJCgcIAQEBAQEBEgASABIAEgASABIAEgASABIDCgEIEgMKAQiBAQAHU0ZfUE9PTAICU0YAB1dYX1BPT0wCAldYAA9DQVBfRkVFX05PX0xPQU4CCWNhcE5vTG9hbgAMQ0FQX0ZFRV9MT0FOAgdjYXBMb2FuABRTVE9QTE9TU19GRUVfTk9fTE9BTgIOc3RvcExvc3NOb0xvYW4ADVNUT1BMT1NTX0xPQU4CDHN0b3BMb3NzTG9hbgAITE9BTl9GRUUCBGxvYW4AC05PX0xPQU5fRkVFAgZub0xvYW4ABk5PX0ZFRQIFbm9GZWUABlNDQUxFOACAwtcvAAdTQ0FMRTEwAIDIr6AlAAdTQ0FMRTE2CQC2AgEAgICE/qbe4REACkZ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Wx1ZU9yRWxzZQIJAQtpc0FkbWluQ2FsbAEFAWkDCQEBIQEJAQlpc0RlZmluZWQBCQCdCAIFBHRoaXMJAKwCAgUFa1Bvb2wFBHBvb2wJAAIBAgxVbmtub3duIHBvb2wDCQEBIQEJAQt2YWx1ZU9yRWxzZQIJAJsIAgUEdGhpcwkArAICBQRwb29sBQtrUG9vbEFjdGl2ZQYJAAIBAhVQb29sIGFscmVhZHkgc2h1dGRvd24JAMwIAgkBDEJvb2xlYW5FbnRyeQIJAKwCAgUEcG9vbAULa1Bvb2xBY3RpdmUHBQNuaWwAu303DA==", "height": 2703331, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4opCmweNFJvfGjV1kBC5K5Kgyr2up5W19rX3J8B4rERv Next: CUiARNrn5WceECGMy34NycbZ3AfeBxHLYWXWzM8bYR5u Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let SF_POOL = "SF" | |
5 | 5 | ||
6 | 6 | let WX_POOL = "WX" | |
7 | 7 | ||
8 | 8 | let CAP_FEE_NO_LOAN = "capNoLoan" | |
9 | 9 | ||
10 | 10 | let CAP_FEE_LOAN = "capLoan" | |
11 | 11 | ||
12 | 12 | let STOPLOSS_FEE_NO_LOAN = "stopLossNoLoan" | |
13 | 13 | ||
14 | 14 | let STOPLOSS_LOAN = "stopLossLoan" | |
15 | 15 | ||
16 | 16 | let LOAN_FEE = "loan" | |
17 | 17 | ||
18 | 18 | let NO_LOAN_FEE = "noLoan" | |
19 | 19 | ||
20 | 20 | let NO_FEE = "noFee" | |
21 | 21 | ||
22 | 22 | let SCALE8 = 100000000 | |
23 | 23 | ||
24 | 24 | let SCALE10 = 10000000000 | |
25 | 25 | ||
26 | 26 | let SCALE16 = toBigInt(10000000000000000) | |
27 | 27 | ||
28 | 28 | let FEE_SCALE6 = 1000000 | |
29 | 29 | ||
30 | 30 | let kSFPoolAAssetBalance = "A_asset_balance" | |
31 | 31 | ||
32 | 32 | let kSFPoolBAssetBalance = "B_asset_balance" | |
33 | 33 | ||
34 | 34 | let kSFPoolAAssetId = "A_asset_id" | |
35 | 35 | ||
36 | 36 | let kSFPoolBAssetId = "B_asset_id" | |
37 | 37 | ||
38 | 38 | let kSFPoolShareId = "share_asset_id" | |
39 | 39 | ||
40 | 40 | let kSFPoolShareSupply = "share_asset_supply" | |
41 | 41 | ||
42 | 42 | let kSFPoolFee = "commission" | |
43 | 43 | ||
44 | 44 | let kUserPosition = "_userPosition" | |
45 | 45 | ||
46 | 46 | let kUserPositionPool = "_userPositionPool" | |
47 | 47 | ||
48 | 48 | let kUserBorrowAmount = "_userPositionBorrowAmount" | |
49 | 49 | ||
50 | 50 | let kUserBorrowAssetId = "_userPositionBorrowAssetId" | |
51 | 51 | ||
52 | 52 | let kUserPositionNum = "_userPositionNumber" | |
53 | 53 | ||
54 | 54 | let kUserPositionInterest = "_userPositionInterest" | |
55 | 55 | ||
56 | 56 | let kPoolTotal = "_poolTotal" | |
57 | 57 | ||
58 | 58 | let kPoolTotalLoan = "_poolTotalLoan" | |
59 | 59 | ||
60 | 60 | let kPoolInterestLoan = "_poolInterestLoan" | |
61 | 61 | ||
62 | 62 | let kPoolInterestNoLoan = "_poolInterestNoLoan" | |
63 | 63 | ||
64 | 64 | let kPoolCanBorrow = "_poolCanBorrow" | |
65 | 65 | ||
66 | 66 | let kAxlyInFeeWithoutLoan = "_axlyFeeNoLoan" | |
67 | 67 | ||
68 | 68 | let kAxlyInFeeWithLoan = "_axlyFeeWithLoan" | |
69 | 69 | ||
70 | 70 | let kAxlyNoLoanCapFee = "_axlyFeeCapNoLoan" | |
71 | 71 | ||
72 | 72 | let kAxlyWithLoanCapFee = "_axlyFeeCapWithLoan" | |
73 | 73 | ||
74 | 74 | let kAxlyStopLossNoLoanFee = "_axlyFeeStoplossWithLoan" | |
75 | 75 | ||
76 | 76 | let kAxlyStopLossLoanFee = "_axlyFeeStoplossNoLoan" | |
77 | 77 | ||
78 | 78 | let kRequestId = "_request_id" | |
79 | 79 | ||
80 | 80 | let kRequestIter = "requests_iter" | |
81 | 81 | ||
82 | 82 | let kPool = "pool_" | |
83 | 83 | ||
84 | 84 | let kSharePool = "_poolShareId" | |
85 | 85 | ||
86 | 86 | let kPoolCapChange = "_poolCapChange" | |
87 | 87 | ||
88 | 88 | let kTokenLastPrice = "last_price" | |
89 | 89 | ||
90 | 90 | let kPriceInOracle = "_twap5B" | |
91 | 91 | ||
92 | 92 | let kActive = "active" | |
93 | 93 | ||
94 | 94 | let kActiveUsers = "activeUsers" | |
95 | 95 | ||
96 | 96 | let kActiveSFWX = "_active" | |
97 | 97 | ||
98 | 98 | let kPoolActive = "_activePool" | |
99 | 99 | ||
100 | 100 | let kUserStopLoss = "_stopLoss" | |
101 | 101 | ||
102 | 102 | let kMoneyBox = "axly_money_box" | |
103 | 103 | ||
104 | 104 | let kSFFarmingAddr = "swopfi_farming_addr" | |
105 | 105 | ||
106 | 106 | let kLendService = "lend_service_addr" | |
107 | 107 | ||
108 | 108 | let kOperatorCallPK = "admin_call_pub_key" | |
109 | 109 | ||
110 | 110 | let kPriceOracle = "price_oracle" | |
111 | 111 | ||
112 | 112 | let kExContract = "exchange_contract" | |
113 | 113 | ||
114 | 114 | let kWxSwapContract = "wx_swap_contract" | |
115 | 115 | ||
116 | 116 | let kSwopId = "swop_id" | |
117 | 117 | ||
118 | 118 | let kWxId = "wx_id" | |
119 | 119 | ||
120 | 120 | let kGroup1Admin1PK = "group1_admin1_pub_key" | |
121 | 121 | ||
122 | 122 | let kGroup1Admin2PK = "group1_admin2_pub_key" | |
123 | 123 | ||
124 | 124 | let kGroup2Admin1PK = "group2_admin1_pub_key" | |
125 | 125 | ||
126 | 126 | let kGroup2Admin2PK = "group2_admin2_pub_key" | |
127 | 127 | ||
128 | 128 | let moneyBox = Address(fromBase58String(valueOrErrorMessage(getString(this, kMoneyBox), "No axly moneyBox address"))) | |
129 | 129 | ||
130 | 130 | let exContract = Address(fromBase58String(valueOrErrorMessage(getString(this, kExContract), "No exchange contract address"))) | |
131 | 131 | ||
132 | 132 | let priceOracleAddr = Address(fromBase58String(valueOrErrorMessage(getString(this, kPriceOracle), "No price oracle address"))) | |
133 | 133 | ||
134 | 134 | let wxSwapContract = Address(fromBase58String(valueOrErrorMessage(getString(this, kWxSwapContract), "No wx swap address"))) | |
135 | 135 | ||
136 | 136 | let SWOPID = fromBase58String(valueOrErrorMessage(getString(this, kSwopId), "No swop id")) | |
137 | 137 | ||
138 | 138 | let WXID = fromBase58String(valueOrErrorMessage(getString(this, kWxId), "No wx id")) | |
139 | 139 | ||
140 | 140 | let group1Admin1PK = fromBase58String(valueOrErrorMessage(getString(this, kGroup1Admin1PK), "Can't get kGroup1Admin1PK")) | |
141 | 141 | ||
142 | 142 | let group1Admin2PK = fromBase58String(valueOrErrorMessage(getString(this, kGroup1Admin2PK), "Can't get kGroup1Admin2PK")) | |
143 | 143 | ||
144 | 144 | let group2Admin1PK = fromBase58String(valueOrErrorMessage(getString(this, kGroup2Admin1PK), "Can't get kGroup2Admin1PK")) | |
145 | 145 | ||
146 | 146 | let group2Admin2PK = fromBase58String(valueOrErrorMessage(getString(this, kGroup2Admin2PK), "Can't get kGroup2Admin1PK")) | |
147 | 147 | ||
148 | 148 | let operatorPK = fromBase58String(valueOrErrorMessage(getString(this, kOperatorCallPK), "Can't get operatorPK")) | |
149 | 149 | ||
150 | 150 | func unknownPoolType () = throw("Wrong pool type") | |
151 | 151 | ||
152 | 152 | ||
153 | 153 | func getLendSrvAddr () = Address(fromBase58String(valueOrErrorMessage(getString(this, kLendService), "Can't get lend service addr"))) | |
154 | 154 | ||
155 | 155 | ||
156 | 156 | func isOperatorCall (i) = if ((i.callerPublicKey == i.callerPublicKey)) | |
157 | 157 | then unit | |
158 | 158 | else throw("Only operator can call this function") | |
159 | 159 | ||
160 | 160 | ||
161 | 161 | func isAdminCall (i) = if (if ((i.callerPublicKey == i.callerPublicKey)) | |
162 | 162 | then true | |
163 | 163 | else (i.callerPublicKey == i.callerPublicKey)) | |
164 | 164 | then unit | |
165 | 165 | else throw("Only admin group1 can call this function") | |
166 | 166 | ||
167 | 167 | ||
168 | 168 | func isSelfCall (i) = if ((i.caller == this)) | |
169 | 169 | then unit | |
170 | 170 | else throw("Only contract itself can call this function") | |
171 | 171 | ||
172 | 172 | ||
173 | 173 | func isLandCall (i) = if ((i.caller == getLendSrvAddr())) | |
174 | 174 | then unit | |
175 | 175 | else throw("Only land contract can call this function") | |
176 | 176 | ||
177 | 177 | ||
178 | 178 | func isActive () = if ((valueOrElse(getBoolean(this, kActive), true) == true)) | |
179 | 179 | then unit | |
180 | 180 | else throw("DApp is inactive at this moment") | |
181 | 181 | ||
182 | 182 | ||
183 | 183 | func isActiveForUsers () = if (if (valueOrElse(getBoolean(this, kActive), true)) | |
184 | 184 | then (valueOrElse(getBoolean(this, kActiveUsers), true) == true) | |
185 | 185 | else false) | |
186 | 186 | then unit | |
187 | 187 | else throw("DApp is inactive for users at this moment") | |
188 | 188 | ||
189 | 189 | ||
190 | 190 | func isPoolActive (pool,type) = { | |
191 | 191 | let WXSFActive = valueOrElse(getBoolean(this, (type + kActiveSFWX)), true) | |
192 | 192 | let poolActive = valueOrElse(getBoolean(this, (pool + kPoolActive)), true) | |
193 | 193 | if (if (WXSFActive) | |
194 | 194 | then poolActive | |
195 | 195 | else false) | |
196 | 196 | then true | |
197 | 197 | else false | |
198 | 198 | } | |
199 | 199 | ||
200 | 200 | ||
201 | 201 | func accountBalance (assetId) = match assetId { | |
202 | 202 | case id: ByteVector => | |
203 | 203 | assetBalance(this, id) | |
204 | 204 | case waves: Unit => | |
205 | 205 | wavesBalance(this).available | |
206 | 206 | case _ => | |
207 | 207 | throw("Match error") | |
208 | 208 | } | |
209 | 209 | ||
210 | 210 | ||
211 | 211 | func getSFPoolBalances (poolAddr) = $Tuple2(valueOrErrorMessage(getInteger(poolAddr, kSFPoolAAssetBalance), "Can't get pool A asset balance"), valueOrErrorMessage(getInteger(poolAddr, kSFPoolBAssetBalance), "Can't get pool B asset balance")) | |
212 | 212 | ||
213 | 213 | ||
214 | 214 | func getWXPoolBalances (poolAddr,aId,bId) = $Tuple2({ | |
215 | 215 | let @ = invoke(poolAddr, "getAccBalanceWrapperREADONLY", [aId], nil) | |
216 | 216 | if ($isInstanceOf(@, "Int")) | |
217 | 217 | then @ | |
218 | 218 | else throw(($getType(@) + " couldn't be cast to Int")) | |
219 | 219 | }, { | |
220 | 220 | let @ = invoke(poolAddr, "getAccBalanceWrapperREADONLY", [bId], nil) | |
221 | 221 | if ($isInstanceOf(@, "Int")) | |
222 | 222 | then @ | |
223 | 223 | else throw(($getType(@) + " couldn't be cast to Int")) | |
224 | 224 | }) | |
225 | 225 | ||
226 | 226 | ||
227 | 227 | func getPoolBalances (poolAddr,type,aId,bId) = if ((type == SF_POOL)) | |
228 | 228 | then getSFPoolBalances(poolAddr) | |
229 | 229 | else if ((type == WX_POOL)) | |
230 | 230 | then getWXPoolBalances(poolAddr, aId, bId) | |
231 | 231 | else unknownPoolType() | |
232 | 232 | ||
233 | 233 | ||
234 | 234 | func getSFPoolData (poolAddr) = { | |
235 | 235 | let $t079127961 = getSFPoolBalances(poolAddr) | |
236 | 236 | if (($t079127961 == $t079127961)) | |
237 | 237 | then { | |
238 | 238 | let balB = $t079127961._2 | |
239 | 239 | let balA = $t079127961._1 | |
240 | 240 | $Tuple5(valueOrErrorMessage(getString(poolAddr, kSFPoolAAssetId), "Can't get pool A asset id"), valueOrErrorMessage(getString(poolAddr, kSFPoolBAssetId), "Can't get pool B asset id"), balA, balB, valueOrErrorMessage(getString(poolAddr, kSFPoolShareId), "Can't get share asset id")) | |
241 | 241 | } | |
242 | 242 | else throw("Strict value is not equal to itself.") | |
243 | 243 | } | |
244 | 244 | ||
245 | 245 | ||
246 | 246 | func getWXPoolData (poolAddr) = { | |
247 | 247 | let cfg = { | |
248 | 248 | let @ = invoke(poolAddr, "getPoolConfigWrapperREADONLY", nil, nil) | |
249 | 249 | if ($isInstanceOf(@, "List[Any]")) | |
250 | 250 | then @ | |
251 | 251 | else throw(($getType(@) + " couldn't be cast to List[Any]")) | |
252 | 252 | } | |
253 | 253 | if ((cfg == cfg)) | |
254 | 254 | then { | |
255 | 255 | let aId = valueOrErrorMessage({ | |
256 | 256 | let @ = cfg[4] | |
257 | 257 | if ($isInstanceOf(@, "String")) | |
258 | 258 | then @ | |
259 | 259 | else unit | |
260 | 260 | }, "Can't get pool A asset id") | |
261 | 261 | let bId = valueOrErrorMessage({ | |
262 | 262 | let @ = cfg[5] | |
263 | 263 | if ($isInstanceOf(@, "String")) | |
264 | 264 | then @ | |
265 | 265 | else unit | |
266 | 266 | }, "Can't get pool B asset id") | |
267 | 267 | let shareId = valueOrErrorMessage({ | |
268 | 268 | let @ = cfg[3] | |
269 | 269 | if ($isInstanceOf(@, "String")) | |
270 | 270 | then @ | |
271 | 271 | else unit | |
272 | 272 | }, "Can't get pool LP asset id") | |
273 | 273 | let $t086588717 = getWXPoolBalances(poolAddr, aId, bId) | |
274 | 274 | if (($t086588717 == $t086588717)) | |
275 | 275 | then { | |
276 | 276 | let balB = $t086588717._2 | |
277 | 277 | let balA = $t086588717._1 | |
278 | 278 | $Tuple5(aId, bId, balA, balB, shareId) | |
279 | 279 | } | |
280 | 280 | else throw("Strict value is not equal to itself.") | |
281 | 281 | } | |
282 | 282 | else throw("Strict value is not equal to itself.") | |
283 | 283 | } | |
284 | 284 | ||
285 | 285 | ||
286 | 286 | func getPoolData (poolAddr,type) = if ((type == SF_POOL)) | |
287 | 287 | then getSFPoolData(poolAddr) | |
288 | 288 | else if ((type == WX_POOL)) | |
289 | 289 | then getWXPoolData(poolAddr) | |
290 | 290 | else unknownPoolType() | |
291 | 291 | ||
292 | 292 | ||
293 | 293 | func getShareSupply (poolAddr,type,shareId) = if ((type == SF_POOL)) | |
294 | 294 | then valueOrErrorMessage(getInteger(poolAddr, kSFPoolShareSupply), "Can't get share asset supply") | |
295 | 295 | else if ((type == WX_POOL)) | |
296 | 296 | then valueOrErrorMessage(assetInfo(fromBase58String(shareId)), "Wrong ShareId").quantity | |
297 | 297 | else unknownPoolType() | |
298 | 298 | ||
299 | 299 | ||
300 | 300 | func getPoolTotalShare (pool) = valueOrElse(getInteger(this, (pool + kPoolTotal)), 0) | |
301 | 301 | ||
302 | 302 | ||
303 | 303 | func getPoolTotalShareWithLoan (pool) = valueOrElse(getInteger(this, (pool + kPoolTotalLoan)), 0) | |
304 | 304 | ||
305 | 305 | ||
306 | 306 | func getNewUserPositionNumber (user) = (valueOrElse(getInteger(this, (user + kUserPositionNum)), 0) + 1) | |
307 | 307 | ||
308 | 308 | ||
309 | 309 | func getAxlyFee (pool,feeType) = if ((feeType == CAP_FEE_LOAN)) | |
310 | 310 | then getIntegerValue(this, (pool + kAxlyWithLoanCapFee)) | |
311 | 311 | else if ((feeType == CAP_FEE_NO_LOAN)) | |
312 | 312 | then getIntegerValue(this, (pool + kAxlyNoLoanCapFee)) | |
313 | 313 | else if ((feeType == LOAN_FEE)) | |
314 | 314 | then getIntegerValue(this, (pool + kAxlyInFeeWithLoan)) | |
315 | 315 | else if ((feeType == NO_LOAN_FEE)) | |
316 | 316 | then getIntegerValue(this, (pool + kAxlyInFeeWithoutLoan)) | |
317 | 317 | else if ((feeType == NO_FEE)) | |
318 | 318 | then 0 | |
319 | 319 | else throw("Wrong fee type") | |
320 | 320 | ||
321 | 321 | ||
322 | 322 | func getSFFarmingAddr () = Address(fromBase58String(valueOrErrorMessage(getString(this, kSFFarmingAddr), "Can't get swopfi farming addr"))) | |
323 | 323 | ||
324 | 324 | ||
325 | 325 | func getWXFarmingAddr (poolAddr) = { | |
326 | 326 | let fContract = Address(fromBase58String(valueOrErrorMessage(getString(poolAddr, "%s__factoryContract"), "Can't get WX factory contract addr"))) | |
327 | 327 | let factroyCfg = split(valueOrErrorMessage(getString(fContract, "%s__factoryConfig"), "Can't get WX factory cfg"), "__") | |
328 | 328 | Address(fromBase58String(factroyCfg[1])) | |
329 | 329 | } | |
330 | 330 | ||
331 | 331 | ||
332 | 332 | func assetIdToStr (assetId) = match assetId { | |
333 | 333 | case id: ByteVector => | |
334 | 334 | toBase58String(id) | |
335 | 335 | case waves: Unit => | |
336 | 336 | "WAVES" | |
337 | 337 | case _ => | |
338 | 338 | throw("Not Asset id") | |
339 | 339 | } | |
340 | 340 | ||
341 | 341 | ||
342 | 342 | func assetIdFromStr (assetId) = if ((assetId == "WAVES")) | |
343 | 343 | then unit | |
344 | 344 | else fromBase58String(assetId) | |
345 | 345 | ||
346 | 346 | ||
347 | 347 | func getAssetDecimals (assetId) = if ((assetId == "WAVES")) | |
348 | 348 | then 8 | |
349 | 349 | else match assetInfo(fromBase58String(assetId)) { | |
350 | 350 | case asset: Asset => | |
351 | 351 | asset.decimals | |
352 | 352 | case _ => | |
353 | 353 | throw("Can't find asset") | |
354 | 354 | } | |
355 | 355 | ||
356 | 356 | ||
357 | 357 | func getAssetPrecition (assetId) = pow(10, 0, getAssetDecimals(assetId), 0, 0, DOWN) | |
358 | 358 | ||
359 | 359 | ||
360 | 360 | func getAssetsPrice (assetIds) = { | |
361 | 361 | func getPrices (a,assetId) = { | |
362 | 362 | let assetPrice = valueOrElse(getInteger(priceOracleAddr, (assetId + kPriceInOracle)), -1) | |
363 | 363 | (a :+ assetPrice) | |
364 | 364 | } | |
365 | 365 | ||
366 | 366 | let $l = assetIds | |
367 | 367 | let $s = size($l) | |
368 | 368 | let $acc0 = nil | |
369 | 369 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
370 | 370 | then $a | |
371 | 371 | else getPrices($a, $l[$i]) | |
372 | 372 | ||
373 | 373 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
374 | 374 | then $a | |
375 | 375 | else throw("List size exceeds 50") | |
376 | 376 | ||
377 | 377 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 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) | |
378 | 378 | } | |
379 | 379 | ||
380 | 380 | ||
381 | 381 | func getSharePrice (shareId) = { | |
382 | 382 | let pool = valueOrErrorMessage(getString(this, (shareId + kSharePool)), "Can't find pool addr by share id") | |
383 | 383 | let poolAddr = Address(fromBase58String(pool)) | |
384 | 384 | let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited") | |
385 | 385 | let $t01170611771 = getPoolData(poolAddr, pType) | |
386 | 386 | let aId = $t01170611771._1 | |
387 | 387 | let bId = $t01170611771._2 | |
388 | 388 | let aBalance = $t01170611771._3 | |
389 | 389 | let bBalance = $t01170611771._4 | |
390 | 390 | let prices = getAssetsPrice([aId, bId]) | |
391 | 391 | let dPriceA = prices[0] | |
392 | 392 | let dPriceB = prices[1] | |
393 | 393 | if (if ((0 > dPriceA)) | |
394 | 394 | then true | |
395 | 395 | else (0 > dPriceB)) | |
396 | 396 | then -1 | |
397 | 397 | else { | |
398 | 398 | let shareSupply = getShareSupply(poolAddr, pType, shareId) | |
399 | 399 | let APrecision = pow(10, 0, getAssetDecimals(aId), 0, 0, DOWN) | |
400 | 400 | let BPrecision = pow(10, 0, getAssetDecimals(bId), 0, 0, DOWN) | |
401 | 401 | let sharePrecision = pow(10, 0, getAssetDecimals(shareId), 0, 0, DOWN) | |
402 | 402 | let sum = (fraction(aBalance, dPriceA, APrecision) + fraction(bBalance, dPriceB, BPrecision)) | |
403 | 403 | fraction(sum, sharePrecision, shareSupply) | |
404 | 404 | } | |
405 | 405 | } | |
406 | 406 | ||
407 | 407 | ||
408 | 408 | func getSharePrices (shareIds) = { | |
409 | 409 | func getPrices (a,shareId) = (a :+ getSharePrice(shareId)) | |
410 | 410 | ||
411 | 411 | let $l = shareIds | |
412 | 412 | let $s = size($l) | |
413 | 413 | let $acc0 = nil | |
414 | 414 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
415 | 415 | then $a | |
416 | 416 | else getPrices($a, $l[$i]) | |
417 | 417 | ||
418 | 418 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
419 | 419 | then $a | |
420 | 420 | else throw("List size exceeds 20") | |
421 | 421 | ||
422 | 422 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
423 | 423 | } | |
424 | 424 | ||
425 | 425 | ||
426 | 426 | func getCursEntries (aId,bId,shareId,wAmounts) = { | |
427 | 427 | let assetsPrices = getAssetsPrice([aId, bId]) | |
428 | 428 | let sharePrice = getSharePrice(shareId) | |
429 | 429 | let prices = ([toString(assetsPrices[0]), toString(assetsPrices[1]), toString(sharePrice)] ++ wAmounts) | |
430 | 430 | [StringEntry(kTokenLastPrice, makeString(prices, ","))] | |
431 | 431 | } | |
432 | 432 | ||
433 | 433 | ||
434 | 434 | func calcReplenishByTwoTokens (pType,poolAddr,pmtA,aId,pmtB,bId,balA,balB) = if ((pType == SF_POOL)) | |
435 | 435 | then { | |
436 | 436 | let repl = { | |
437 | 437 | let @ = invoke(poolAddr, "callFunction", ["calcLPReplenishTwoTokensREADONLY", [toString(pmtA), toString(pmtB)]], nil) | |
438 | 438 | if ($isInstanceOf(@, "List[Any]")) | |
439 | 439 | then @ | |
440 | 440 | else throw(($getType(@) + " couldn't be cast to List[Any]")) | |
441 | 441 | } | |
442 | 442 | if ((repl == repl)) | |
443 | 443 | then $Tuple5({ | |
444 | 444 | let @ = repl[3] | |
445 | 445 | if ($isInstanceOf(@, "Int")) | |
446 | 446 | then @ | |
447 | 447 | else throw(($getType(@) + " couldn't be cast to Int")) | |
448 | 448 | }, { | |
449 | 449 | let @ = repl[4] | |
450 | 450 | if ($isInstanceOf(@, "Int")) | |
451 | 451 | then @ | |
452 | 452 | else throw(($getType(@) + " couldn't be cast to Int")) | |
453 | 453 | }, { | |
454 | 454 | let @ = repl[1] | |
455 | 455 | if ($isInstanceOf(@, "Int")) | |
456 | 456 | then @ | |
457 | 457 | else throw(($getType(@) + " couldn't be cast to Int")) | |
458 | 458 | }, assetIdToStr(repl[2]), { | |
459 | 459 | let @ = repl[0] | |
460 | 460 | if ($isInstanceOf(@, "Int")) | |
461 | 461 | then @ | |
462 | 462 | else throw(($getType(@) + " couldn't be cast to Int")) | |
463 | 463 | }) | |
464 | 464 | else throw("Strict value is not equal to itself.") | |
465 | 465 | } | |
466 | 466 | else if ((pType == WX_POOL)) | |
467 | 467 | then { | |
468 | 468 | let $t01331513565 = $Tuple2(split({ | |
469 | 469 | let @ = invoke(poolAddr, "evaluatePutByAmountAssetREADONLY", [pmtA], nil) | |
470 | 470 | if ($isInstanceOf(@, "String")) | |
471 | 471 | then @ | |
472 | 472 | else throw(($getType(@) + " couldn't be cast to String")) | |
473 | 473 | }, "__"), split({ | |
474 | 474 | let @ = invoke(poolAddr, "evaluatePutByPriceAssetREADONLY", [pmtB], nil) | |
475 | 475 | if ($isInstanceOf(@, "String")) | |
476 | 476 | then @ | |
477 | 477 | else throw(($getType(@) + " couldn't be cast to String")) | |
478 | 478 | }, "__")) | |
479 | 479 | if (($t01331513565 == $t01331513565)) | |
480 | 480 | then { | |
481 | 481 | let evalPutInB = $t01331513565._2 | |
482 | 482 | let evalPutInA = $t01331513565._1 | |
483 | 483 | let lpInA = parseIntValue(evalPutInA[1]) | |
484 | 484 | let lpInB = parseIntValue(evalPutInB[1]) | |
485 | 485 | if ((lpInB > lpInA)) | |
486 | 486 | then { | |
487 | 487 | let pmt = parseIntValue(evalPutInA[8]) | |
488 | 488 | $Tuple5(pmtA, pmt, (pmtB - pmt), bId, lpInB) | |
489 | 489 | } | |
490 | 490 | else { | |
491 | 491 | let pmt = parseIntValue(evalPutInB[7]) | |
492 | 492 | $Tuple5(pmt, pmtB, (pmtA - pmt), aId, lpInA) | |
493 | 493 | } | |
494 | 494 | } | |
495 | 495 | else throw("Strict value is not equal to itself.") | |
496 | 496 | } | |
497 | 497 | else unknownPoolType() | |
498 | 498 | ||
499 | 499 | ||
500 | 500 | func replenishTwoTokensByType (poolAddr,pType,pmtA,aId,pmtB,bId) = { | |
501 | 501 | let payments = [AttachedPayment(assetIdFromStr(aId), pmtA), AttachedPayment(assetIdFromStr(bId), pmtB)] | |
502 | 502 | if ((pType == SF_POOL)) | |
503 | 503 | then invoke(poolAddr, "callFunction", ["replenishWithTwoTokens", ["false", "0"]], payments) | |
504 | 504 | else if ((pType == WX_POOL)) | |
505 | 505 | then invoke(poolAddr, "put", [1000000, false], payments) | |
506 | 506 | else unknownPoolType() | |
507 | 507 | } | |
508 | 508 | ||
509 | 509 | ||
510 | 510 | func replenishOneTokenByType (poolAddr,pType,pmt,pmtId) = { | |
511 | 511 | let payments = [AttachedPayment(assetIdFromStr(pmtId), pmt)] | |
512 | 512 | if ((pType == SF_POOL)) | |
513 | 513 | then invoke(poolAddr, "callFunction", ["replenishWithOneToken", ["0", "false", "0"]], payments) | |
514 | 514 | else if ((pType == WX_POOL)) | |
515 | 515 | then invoke(poolAddr, "putOneTkn", [0, false], payments) | |
516 | 516 | else unknownPoolType() | |
517 | 517 | } | |
518 | 518 | ||
519 | 519 | ||
520 | 520 | func stakeLP (pool,pType,shareId,amount) = { | |
521 | 521 | let payments = [AttachedPayment(fromBase58String(shareId), amount)] | |
522 | 522 | if ((pType == SF_POOL)) | |
523 | 523 | then invoke(getSFFarmingAddr(), "lockShareTokens", [pool, 0], payments) | |
524 | 524 | else if ((pType == WX_POOL)) | |
525 | 525 | then invoke(getWXFarmingAddr(addressFromStringValue(pool)), "stake", nil, payments) | |
526 | 526 | else unknownPoolType() | |
527 | 527 | } | |
528 | 528 | ||
529 | 529 | ||
530 | 530 | func unstakeLP (pool,pType,shareId,amount) = { | |
531 | 531 | let $t01522415574 = if ((pType == SF_POOL)) | |
532 | 532 | then $Tuple3(getSFFarmingAddr(), "withdrawShareTokens", [pool, amount]) | |
533 | 533 | else if ((pType == WX_POOL)) | |
534 | 534 | then $Tuple3(getWXFarmingAddr(Address(fromBase58String(pool))), "unstake", [shareId, amount]) | |
535 | 535 | else unknownPoolType() | |
536 | 536 | let farmAddr = $t01522415574._1 | |
537 | 537 | let fName = $t01522415574._2 | |
538 | 538 | let params = $t01522415574._3 | |
539 | 539 | let inv = invoke(farmAddr, fName, params, nil) | |
540 | 540 | if ((inv == inv)) | |
541 | 541 | then amount | |
542 | 542 | else throw("Strict value is not equal to itself.") | |
543 | 543 | } | |
544 | 544 | ||
545 | 545 | ||
546 | 546 | func calcAmountToPaySF (pool,assetIdA,assetIdB,balA,balB,amountTokenToGet,assetTokenToGet) = { | |
547 | 547 | let poolAddr = Address(fromBase58String(pool)) | |
548 | 548 | let feeScale6 = 1000000 | |
549 | 549 | let fee = getIntegerValue(poolAddr, kSFPoolFee) | |
550 | 550 | let amntGetNoFee = fraction(amountTokenToGet, feeScale6, (feeScale6 - fee), CEILING) | |
551 | 551 | let $t01599616302 = if ((assetTokenToGet == assetIdA)) | |
552 | 552 | then { | |
553 | 553 | let amountToPay = fraction(amntGetNoFee, balB, (balA - amntGetNoFee), CEILING) | |
554 | 554 | $Tuple2(amountToPay, assetIdB) | |
555 | 555 | } | |
556 | 556 | else { | |
557 | 557 | let amountToPay = fraction(amntGetNoFee, balA, (balB - amntGetNoFee), CEILING) | |
558 | 558 | $Tuple2(amountToPay, assetIdA) | |
559 | 559 | } | |
560 | 560 | let amountToPay = $t01599616302._1 | |
561 | 561 | let assetToPay = $t01599616302._2 | |
562 | 562 | $Tuple2(assetToPay, amountToPay) | |
563 | 563 | } | |
564 | 564 | ||
565 | 565 | ||
566 | 566 | func getWXSwapFees (pool) = { | |
567 | 567 | let poolAddr = addressFromStringValue(pool) | |
568 | 568 | let fContract = addressFromStringValue(valueOrErrorMessage(getString(poolAddr, "%s__factoryContract"), "Can't get WX factory contract addr")) | |
569 | 569 | let poolFeeDefault = value(getInteger(wxSwapContract, "%s__poolFee")) | |
570 | 570 | let protocolFeeDefault = value(getInteger(wxSwapContract, "%s__protocolFee")) | |
571 | 571 | match invoke(fContract, "getSwapFeeREADONLY", [toString(poolAddr)], nil) { | |
572 | 572 | case fees: (Int, Int) => | |
573 | 573 | $Tuple2(fees._1, fees._2) | |
574 | 574 | case _ => | |
575 | 575 | $Tuple2(poolFeeDefault, protocolFeeDefault) | |
576 | 576 | } | |
577 | 577 | } | |
578 | 578 | ||
579 | 579 | ||
580 | 580 | func calcAmountToPayWX (pool,assetIdA,assetIdB,balA,balB,amountTokenToGet,assetTokenToGet) = { | |
581 | 581 | let $t01704217081 = getWXSwapFees(pool) | |
582 | 582 | let pFee = $t01704217081._1 | |
583 | 583 | let prFee = $t01704217081._2 | |
584 | 584 | let feeScale = toBigInt(100000000) | |
585 | 585 | let $t01712117429 = if ((assetTokenToGet == assetIdA)) | |
586 | 586 | then { | |
587 | 587 | let amountToPay = fraction(amountTokenToGet, balB, (balA - amountTokenToGet)) | |
588 | 588 | $Tuple2(amountToPay, assetIdB) | |
589 | 589 | } | |
590 | 590 | else { | |
591 | 591 | let amountToPay = fraction(amountTokenToGet, balA, (balB - amountTokenToGet)) | |
592 | 592 | $Tuple2(amountToPay, assetIdA) | |
593 | 593 | } | |
594 | 594 | let amountToPay = $t01712117429._1 | |
595 | 595 | let assetToPay = $t01712117429._2 | |
596 | 596 | let amountToPayWithFee = toInt(fraction(toBigInt(amountToPay), feeScale, (feeScale - toBigInt((prFee + pFee))), CEILING)) | |
597 | 597 | $Tuple2(assetToPay, amountToPayWithFee) | |
598 | 598 | } | |
599 | 599 | ||
600 | 600 | ||
601 | 601 | func exchangeDirectly (pType,pool,assetIdA,assetIdB,balA,balB,amountTokenToGet,assetTokenToGet) = if ((pType == SF_POOL)) | |
602 | 602 | then { | |
603 | 603 | let $t01777617898 = calcAmountToPaySF(pool, assetIdA, assetIdB, balA, balB, amountTokenToGet, assetTokenToGet) | |
604 | 604 | let assetToPay = $t01777617898._1 | |
605 | 605 | let amountToPay = $t01777617898._2 | |
606 | 606 | invoke(addressFromStringValue(pool), "callFunction", ["exchange", [toString(amountTokenToGet)]], [AttachedPayment(assetIdFromStr(assetToPay), amountToPay)]) | |
607 | 607 | } | |
608 | 608 | else if ((pType == WX_POOL)) | |
609 | 609 | then { | |
610 | 610 | let $t01809818220 = calcAmountToPayWX(pool, assetIdA, assetIdB, balA, balB, amountTokenToGet, assetTokenToGet) | |
611 | 611 | let assetToPay = $t01809818220._1 | |
612 | 612 | let amountToPay = $t01809818220._2 | |
613 | 613 | invoke(wxSwapContract, "swap", [amountTokenToGet, assetTokenToGet, toString(this)], [AttachedPayment(assetIdFromStr(assetToPay), amountToPay)]) | |
614 | 614 | } | |
615 | 615 | else unknownPoolType() | |
616 | 616 | ||
617 | 617 | ||
618 | 618 | func calcWithdrawLPFromPoolVirt (poolAddr,pType,shareId,userCanWithdraw) = { | |
619 | 619 | let $t01850718971 = if ((pType == SF_POOL)) | |
620 | 620 | then { | |
621 | 621 | let inv = { | |
622 | 622 | let @ = invoke(poolAddr, "callFunction", ["withdrawREADONLY", [toString(userCanWithdraw)]], nil) | |
623 | 623 | if ($isInstanceOf(@, "List[Any]")) | |
624 | 624 | then @ | |
625 | 625 | else throw(($getType(@) + " couldn't be cast to List[Any]")) | |
626 | 626 | } | |
627 | 627 | if ((inv == inv)) | |
628 | 628 | then $Tuple2({ | |
629 | 629 | let @ = inv[0] | |
630 | 630 | if ($isInstanceOf(@, "Int")) | |
631 | 631 | then @ | |
632 | 632 | else throw(($getType(@) + " couldn't be cast to Int")) | |
633 | 633 | }, { | |
634 | 634 | let @ = inv[1] | |
635 | 635 | if ($isInstanceOf(@, "Int")) | |
636 | 636 | then @ | |
637 | 637 | else throw(($getType(@) + " couldn't be cast to Int")) | |
638 | 638 | }) | |
639 | 639 | else throw("Strict value is not equal to itself.") | |
640 | 640 | } | |
641 | 641 | else if ((pType == WX_POOL)) | |
642 | 642 | then { | |
643 | 643 | let inv = split({ | |
644 | 644 | let @ = invoke(poolAddr, "evaluateGetREADONLY", [shareId, userCanWithdraw], nil) | |
645 | 645 | if ($isInstanceOf(@, "String")) | |
646 | 646 | then @ | |
647 | 647 | else throw(($getType(@) + " couldn't be cast to String")) | |
648 | 648 | }, "__") | |
649 | 649 | if ((inv == inv)) | |
650 | 650 | then $Tuple2(parseIntValue(inv[1]), parseIntValue(inv[2])) | |
651 | 651 | else throw("Strict value is not equal to itself.") | |
652 | 652 | } | |
653 | 653 | else unknownPoolType() | |
654 | 654 | let amountA = $t01850718971._1 | |
655 | 655 | let amountB = $t01850718971._2 | |
656 | 656 | $Tuple2(amountA, amountB) | |
657 | 657 | } | |
658 | 658 | ||
659 | 659 | ||
660 | 660 | func claimFarmed (pType,pool) = if ((pType == SF_POOL)) | |
661 | 661 | then { | |
662 | 662 | let balBefore = accountBalance(SWOPID) | |
663 | 663 | if ((balBefore == balBefore)) | |
664 | 664 | then { | |
665 | 665 | let inv = invoke(getSFFarmingAddr(), "claim", [pool], nil) | |
666 | 666 | if ((inv == inv)) | |
667 | 667 | then { | |
668 | 668 | let balAfter = accountBalance(SWOPID) | |
669 | 669 | $Tuple2((balAfter - balBefore), SWOPID) | |
670 | 670 | } | |
671 | 671 | else throw("Strict value is not equal to itself.") | |
672 | 672 | } | |
673 | 673 | else throw("Strict value is not equal to itself.") | |
674 | 674 | } | |
675 | 675 | else if ((pType == WX_POOL)) | |
676 | 676 | then { | |
677 | 677 | let $t01933919418 = getWXPoolData(addressFromStringValue(pool)) | |
678 | 678 | let aId = $t01933919418._1 | |
679 | 679 | let bId = $t01933919418._2 | |
680 | 680 | let aBal = $t01933919418._3 | |
681 | 681 | let bBal = $t01933919418._4 | |
682 | 682 | let lpId = $t01933919418._5 | |
683 | 683 | let balBefore = accountBalance(WXID) | |
684 | 684 | if ((balBefore == balBefore)) | |
685 | 685 | then { | |
686 | 686 | let inv = invoke(getWXFarmingAddr(addressFromStringValue(pool)), "claimWx", [lpId], nil) | |
687 | 687 | if ((inv == inv)) | |
688 | 688 | then { | |
689 | 689 | let balAfter = accountBalance(WXID) | |
690 | 690 | $Tuple2((balAfter - balBefore), WXID) | |
691 | 691 | } | |
692 | 692 | else throw("Strict value is not equal to itself.") | |
693 | 693 | } | |
694 | 694 | else throw("Strict value is not equal to itself.") | |
695 | 695 | } | |
696 | 696 | else unknownPoolType() | |
697 | 697 | ||
698 | 698 | ||
699 | 699 | func replenishByType (pType,pool,feeType,pmtA,aId,pmtB,bId,balA,balB,LPId) = { | |
700 | 700 | let lpBalanceBefore = accountBalance(fromBase58String(LPId)) | |
701 | 701 | if ((lpBalanceBefore == lpBalanceBefore)) | |
702 | 702 | then { | |
703 | 703 | let poolAddr = addressFromStringValue(pool) | |
704 | 704 | let $t02001620432 = if (if ((pmtA > 0)) | |
705 | 705 | then (pmtB > 0) | |
706 | 706 | else false) | |
707 | 707 | then { | |
708 | 708 | let $t02008220198 = calcReplenishByTwoTokens(pType, poolAddr, pmtA, aId, pmtB, bId, balA, balB) | |
709 | 709 | let pmtInA = $t02008220198._1 | |
710 | 710 | let pmtInB = $t02008220198._2 | |
711 | 711 | let change = $t02008220198._3 | |
712 | 712 | let changeId = $t02008220198._4 | |
713 | 713 | let inv = replenishTwoTokensByType(poolAddr, pType, pmtInA, aId, pmtInB, bId) | |
714 | 714 | if ((inv == inv)) | |
715 | 715 | then $Tuple2(change, changeId) | |
716 | 716 | else throw("Strict value is not equal to itself.") | |
717 | 717 | } | |
718 | 718 | else if ((pmtA > 0)) | |
719 | 719 | then $Tuple2(pmtA, aId) | |
720 | 720 | else if ((pmtB > 0)) | |
721 | 721 | then $Tuple2(pmtB, bId) | |
722 | 722 | else throw("pmts must be > 0") | |
723 | 723 | let change = $t02001620432._1 | |
724 | 724 | let changeId = $t02001620432._2 | |
725 | 725 | let inv = if ((change > 0)) | |
726 | 726 | then replenishOneTokenByType(poolAddr, pType, change, changeId) | |
727 | 727 | else nil | |
728 | 728 | if ((inv == inv)) | |
729 | 729 | then { | |
730 | 730 | let lpBalanceAfter = accountBalance(fromBase58String(LPId)) | |
731 | 731 | let totalStaked = (lpBalanceAfter - lpBalanceBefore) | |
732 | 732 | let axlyFeeAmount = fraction(totalStaked, getAxlyFee(pool, feeType), FEE_SCALE6) | |
733 | 733 | let userShareForStake = (totalStaked - axlyFeeAmount) | |
734 | 734 | if ((0 >= userShareForStake)) | |
735 | 735 | then throw("amount of staked sharetokens must be > 0") | |
736 | 736 | else { | |
737 | 737 | let invLP = stakeLP(pool, pType, LPId, userShareForStake) | |
738 | 738 | if ((invLP == invLP)) | |
739 | 739 | then $Tuple2(userShareForStake, axlyFeeAmount) | |
740 | 740 | else throw("Strict value is not equal to itself.") | |
741 | 741 | } | |
742 | 742 | } | |
743 | 743 | else throw("Strict value is not equal to itself.") | |
744 | 744 | } | |
745 | 745 | else throw("Strict value is not equal to itself.") | |
746 | 746 | } | |
747 | 747 | ||
748 | 748 | ||
749 | 749 | func replenishEntries (pool,user,stakedAmount,axlyFeeAmount,posNum,shareId,type,withLoan) = { | |
750 | 750 | let totalAmount = getPoolTotalShare(pool) | |
751 | 751 | let totalAmountLoan = getPoolTotalShareWithLoan(pool) | |
752 | 752 | let $t02128921527 = if (withLoan) | |
753 | 753 | then $Tuple2(getIntegerValue(this, (pool + kPoolInterestLoan)), (totalAmountLoan + stakedAmount)) | |
754 | 754 | else $Tuple2(getIntegerValue(this, (pool + kPoolInterestNoLoan)), totalAmountLoan) | |
755 | 755 | let curPoolInterest = $t02128921527._1 | |
756 | 756 | let totalStakedWithLoan = $t02128921527._2 | |
757 | 757 | [IntegerEntry((pool + kPoolTotal), (totalAmount + stakedAmount)), IntegerEntry((pool + kPoolTotalLoan), totalStakedWithLoan), IntegerEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserPosition), stakedAmount), IntegerEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserPositionInterest), curPoolInterest), StringEntry((((user + "_") + toString(posNum)) + kUserPositionPool), pool), IntegerEntry((user + kUserPositionNum), posNum), ScriptTransfer(moneyBox, axlyFeeAmount, fromBase58String(shareId))] | |
758 | 758 | } | |
759 | 759 | ||
760 | 760 | ||
761 | 761 | func exchangeKeeper (toToken,pmtAmount,pmtAsset,amountsIn,addresses,assetsToReceive,estReceived,slippageTolerance,minReceived,options) = { | |
762 | 762 | let tokenBalanceBefore = accountBalance(assetIdFromStr(toToken)) | |
763 | 763 | if ((tokenBalanceBefore == tokenBalanceBefore)) | |
764 | 764 | then { | |
765 | 765 | let inv = invoke(exContract, "swap", [amountsIn, addresses, assetsToReceive, estReceived, slippageTolerance, minReceived, options], [AttachedPayment(pmtAsset, pmtAmount)]) | |
766 | 766 | if ((inv == inv)) | |
767 | 767 | then (accountBalance(assetIdFromStr(toToken)) - tokenBalanceBefore) | |
768 | 768 | else throw("Strict value is not equal to itself.") | |
769 | 769 | } | |
770 | 770 | else throw("Strict value is not equal to itself.") | |
771 | 771 | } | |
772 | 772 | ||
773 | 773 | ||
774 | 774 | func exchangePuzzle (toToken,pmtAmount,pmtAsset,routesStr,minToReceive,options) = { | |
775 | 775 | let tokenBalanceBefore = accountBalance(assetIdFromStr(toToken)) | |
776 | 776 | if ((tokenBalanceBefore == tokenBalanceBefore)) | |
777 | 777 | then { | |
778 | 778 | let inv = invoke(exContract, "puzzleSwap", [routesStr, minToReceive, options], [AttachedPayment(pmtAsset, pmtAmount)]) | |
779 | 779 | if ((inv == inv)) | |
780 | 780 | then (accountBalance(assetIdFromStr(toToken)) - tokenBalanceBefore) | |
781 | 781 | else throw("Strict value is not equal to itself.") | |
782 | 782 | } | |
783 | 783 | else throw("Strict value is not equal to itself.") | |
784 | 784 | } | |
785 | 785 | ||
786 | 786 | ||
787 | 787 | func exchangeSwopFi (toToken,pmtAmount,pmtAsset,exchangers,exchangersType,args1,args2,routingAssetsKeys,minAmountToReceive,options) = { | |
788 | 788 | let tokenBalanceBefore = accountBalance(assetIdFromStr(toToken)) | |
789 | 789 | if ((tokenBalanceBefore == tokenBalanceBefore)) | |
790 | 790 | then { | |
791 | 791 | let inv = invoke(exContract, "swopfiSwap", [exchangers, exchangersType, args1, args2, routingAssetsKeys, minAmountToReceive, options], [AttachedPayment(pmtAsset, pmtAmount)]) | |
792 | 792 | if ((inv == inv)) | |
793 | 793 | then (accountBalance(assetIdFromStr(toToken)) - tokenBalanceBefore) | |
794 | 794 | else throw("Strict value is not equal to itself.") | |
795 | 795 | } | |
796 | 796 | else throw("Strict value is not equal to itself.") | |
797 | 797 | } | |
798 | 798 | ||
799 | 799 | ||
800 | 800 | func capitalize (pool,pType,tokenId,tokenAmount) = { | |
801 | 801 | let poolAddr = Address(fromBase58String(pool)) | |
802 | 802 | let $t02388123947 = getPoolData(poolAddr, pType) | |
803 | 803 | let AId = $t02388123947._1 | |
804 | 804 | let BId = $t02388123947._2 | |
805 | 805 | let balA = $t02388123947._3 | |
806 | 806 | let balB = $t02388123947._4 | |
807 | 807 | let shareId = $t02388123947._5 | |
808 | 808 | if (if ((tokenId != AId)) | |
809 | 809 | then (tokenId != BId) | |
810 | 810 | else false) | |
811 | 811 | then throw("Wrong asset") | |
812 | 812 | else { | |
813 | 813 | let totalShareAmount = getPoolTotalShare(pool) | |
814 | 814 | let totalShareAmountWithLoan = getPoolTotalShareWithLoan(pool) | |
815 | 815 | let loanPercent = fraction(totalShareAmountWithLoan, SCALE8, totalShareAmount) | |
816 | 816 | let tokensForFeeLoan = fraction(tokenAmount, loanPercent, SCALE8) | |
817 | 817 | let tokensForFeeNoLoan = (tokenAmount - tokensForFeeLoan) | |
818 | 818 | let axlyFeeLoan = fraction(tokensForFeeLoan, getAxlyFee(pool, CAP_FEE_LOAN), FEE_SCALE6) | |
819 | 819 | let axlyFeeNoLoan = fraction(tokensForFeeNoLoan, getAxlyFee(pool, CAP_FEE_NO_LOAN), FEE_SCALE6) | |
820 | 820 | let axlyFee = (axlyFeeLoan + axlyFeeNoLoan) | |
821 | 821 | let $t02458724687 = if ((tokenId == AId)) | |
822 | 822 | then $Tuple2((tokenAmount - axlyFee), 0) | |
823 | 823 | else $Tuple2(0, (tokenAmount - axlyFee)) | |
824 | 824 | let pmtA = $t02458724687._1 | |
825 | 825 | let pmtB = $t02458724687._2 | |
826 | 826 | let $t02469024794 = replenishByType(pType, pool, NO_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId) | |
827 | 827 | let stakedAmount = $t02469024794._1 | |
828 | 828 | let nf = $t02469024794._2 | |
829 | 829 | let curPoolInterestLoan = valueOrElse(getInteger(this, (pool + kPoolInterestLoan)), 0) | |
830 | 830 | let curPoolInterestNoLoan = valueOrElse(getInteger(this, (pool + kPoolInterestNoLoan)), 0) | |
831 | 831 | let stakedLoan = fraction(stakedAmount, loanPercent, SCALE8) | |
832 | 832 | let stakedNoLoan = (stakedAmount - stakedLoan) | |
833 | 833 | let newInterestLoan = if ((totalShareAmountWithLoan > 0)) | |
834 | 834 | then (curPoolInterestLoan + fraction(stakedLoan, SCALE10, totalShareAmountWithLoan)) | |
835 | 835 | else 0 | |
836 | 836 | let newInterestNoLoan = if (((totalShareAmount - totalShareAmountWithLoan) > 0)) | |
837 | 837 | then (curPoolInterestNoLoan + fraction(stakedNoLoan, SCALE10, (totalShareAmount - totalShareAmountWithLoan))) | |
838 | 838 | else 0 | |
839 | 839 | ([IntegerEntry((pool + kPoolInterestLoan), newInterestLoan), IntegerEntry((pool + kPoolInterestNoLoan), newInterestNoLoan), IntegerEntry((pool + kPoolTotal), (totalShareAmount + stakedAmount)), IntegerEntry((pool + kPoolTotalLoan), (totalShareAmountWithLoan + stakedLoan)), ScriptTransfer(moneyBox, axlyFee, fromBase58String(tokenId))] ++ getCursEntries(AId, BId, shareId, nil)) | |
840 | 840 | } | |
841 | 841 | } | |
842 | 842 | ||
843 | 843 | ||
844 | 844 | func userCanWithdrawShareCalc (user,pool,posId,borrowed) = { | |
845 | 845 | let pAmount = valueOrErrorMessage(getInteger(this, (((((pool + "_") + user) + "_") + posId) + kUserPosition)), "Unknown position") | |
846 | 846 | let userInterest = getIntegerValue(this, (((((pool + "_") + user) + "_") + posId) + kUserPositionInterest)) | |
847 | 847 | let poolInterest = if (borrowed) | |
848 | 848 | then getIntegerValue(this, (pool + kPoolInterestLoan)) | |
849 | 849 | else getIntegerValue(this, (pool + kPoolInterestNoLoan)) | |
850 | 850 | (pAmount + fraction(pAmount, (poolInterest - userInterest), SCALE10)) | |
851 | 851 | } | |
852 | 852 | ||
853 | 853 | ||
854 | 854 | func calcStopLossFee (pool,isBorrowed,stopLoss,lpWithdraw) = { | |
855 | 855 | let feeType = if (isBorrowed) | |
856 | 856 | then STOPLOSS_LOAN | |
857 | 857 | else STOPLOSS_FEE_NO_LOAN | |
858 | 858 | if (stopLoss) | |
859 | 859 | then fraction(lpWithdraw, getAxlyFee(pool, feeType), FEE_SCALE6) | |
860 | 860 | else 0 | |
861 | 861 | } | |
862 | 862 | ||
863 | 863 | ||
864 | 864 | func withdrawToUser (user,pool,posId,stopLoss) = { | |
865 | 865 | let pAmount = valueOrErrorMessage(getInteger(this, (((((pool + "_") + user) + "_") + posId) + kUserPosition)), "Unknown position") | |
866 | 866 | let isBorrowed = (valueOrElse(getInteger(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAmount)), 0) > 0) | |
867 | 867 | let userCanWithdraw = userCanWithdrawShareCalc(user, pool, posId, isBorrowed) | |
868 | 868 | let poolTotalShare = getPoolTotalShare(pool) | |
869 | 869 | let poolTotalShareLoan = getPoolTotalShareWithLoan(pool) | |
870 | 870 | let userAddr = Address(fromBase58String(user)) | |
871 | 871 | let poolAddr = Address(fromBase58String(pool)) | |
872 | 872 | let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Unknown pool") | |
873 | 873 | let $t02732527397 = getPoolData(poolAddr, pType) | |
874 | 874 | let idAStr = $t02732527397._1 | |
875 | 875 | let idBStr = $t02732527397._2 | |
876 | 876 | let balA = $t02732527397._3 | |
877 | 877 | let balB = $t02732527397._4 | |
878 | 878 | let shareId = $t02732527397._5 | |
879 | 879 | let $t02740027467 = $Tuple2(assetIdFromStr(idAStr), assetIdFromStr(idBStr)) | |
880 | 880 | let idA = $t02740027467._1 | |
881 | 881 | let idB = $t02740027467._2 | |
882 | 882 | let stopLossFee = calcStopLossFee(pool, isBorrowed, stopLoss, userCanWithdraw) | |
883 | 883 | let cBalABefore = accountBalance(idA) | |
884 | 884 | if ((cBalABefore == cBalABefore)) | |
885 | 885 | then { | |
886 | 886 | let cBalBBefore = accountBalance(idB) | |
887 | 887 | if ((cBalBBefore == cBalBBefore)) | |
888 | 888 | then { | |
889 | 889 | let inv = if ((pType == SF_POOL)) | |
890 | 890 | then { | |
891 | 891 | let inv = unstakeLP(pool, pType, shareId, stopLossFee) | |
892 | 892 | if ((inv == inv)) | |
893 | 893 | then invoke(poolAddr, "callFunction", ["withdraw", [toString(userCanWithdraw)]], nil) | |
894 | 894 | else throw("Strict value is not equal to itself.") | |
895 | 895 | } | |
896 | 896 | else if ((pType == WX_POOL)) | |
897 | 897 | then { | |
898 | 898 | let inv = unstakeLP(pool, pType, shareId, (userCanWithdraw + stopLossFee)) | |
899 | 899 | if ((inv == inv)) | |
900 | 900 | then invoke(poolAddr, "get", nil, [AttachedPayment(assetIdFromStr(shareId), userCanWithdraw)]) | |
901 | 901 | else throw("Strict value is not equal to itself.") | |
902 | 902 | } | |
903 | 903 | else unknownPoolType() | |
904 | 904 | if ((inv == inv)) | |
905 | 905 | then { | |
906 | 906 | let cBalAAfter = accountBalance(idA) | |
907 | 907 | if ((cBalAAfter == cBalAAfter)) | |
908 | 908 | then { | |
909 | 909 | let cBalBAfter = accountBalance(idB) | |
910 | 910 | if ((cBalBAfter == cBalBAfter)) | |
911 | 911 | then { | |
912 | 912 | let $t02816228251 = $Tuple2((cBalAAfter - cBalABefore), (cBalBAfter - cBalBBefore)) | |
913 | 913 | let tokensAmountA = $t02816228251._1 | |
914 | 914 | let tokensAmountB = $t02816228251._2 | |
915 | 915 | let $t02825429490 = if (isBorrowed) | |
916 | 916 | then { | |
917 | 917 | let borrowAsset = getStringValue(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAssetId)) | |
918 | 918 | let debt = { | |
919 | 919 | let @ = invoke(getLendSrvAddr(), "getAssetDebt", [false, ((user + "_") + posId), borrowAsset], nil) | |
920 | 920 | if ($isInstanceOf(@, "Int")) | |
921 | 921 | then @ | |
922 | 922 | else throw(($getType(@) + " couldn't be cast to Int")) | |
923 | 923 | } | |
924 | 924 | if ((debt == debt)) | |
925 | 925 | then { | |
926 | 926 | let amountToGetEx = if (if ((borrowAsset == idAStr)) | |
927 | 927 | then (debt > tokensAmountA) | |
928 | 928 | else false) | |
929 | 929 | then (debt - tokensAmountA) | |
930 | 930 | else if (if ((borrowAsset == idBStr)) | |
931 | 931 | then (debt > tokensAmountB) | |
932 | 932 | else false) | |
933 | 933 | then (debt - tokensAmountB) | |
934 | 934 | else 0 | |
935 | 935 | let exInv = if ((amountToGetEx > 0)) | |
936 | 936 | then exchangeDirectly(pType, pool, idAStr, idBStr, (balA - tokensAmountA), (balB - tokensAmountB), amountToGetEx, borrowAsset) | |
937 | 937 | else nil | |
938 | 938 | if ((exInv == exInv)) | |
939 | 939 | then { | |
940 | 940 | let cBalAAfterRepay = accountBalance(idA) | |
941 | 941 | if ((cBalAAfterRepay == cBalAAfterRepay)) | |
942 | 942 | then { | |
943 | 943 | let cBalBAfterRepay = accountBalance(idB) | |
944 | 944 | if ((cBalBAfterRepay == cBalBAfterRepay)) | |
945 | 945 | then { | |
946 | 946 | let closeDbtInv = if ((debt > 0)) | |
947 | 947 | then invoke(getLendSrvAddr(), "repayFor", [((user + "_") + posId)], [AttachedPayment(assetIdFromStr(borrowAsset), debt)]) | |
948 | 948 | else 0 | |
949 | 949 | if ((closeDbtInv == closeDbtInv)) | |
950 | 950 | then if ((borrowAsset == idAStr)) | |
951 | 951 | then $Tuple2(((cBalAAfterRepay - cBalABefore) - debt), (cBalBAfterRepay - cBalBBefore)) | |
952 | 952 | else $Tuple2((cBalAAfterRepay - cBalABefore), ((cBalBAfterRepay - cBalBBefore) - debt)) | |
953 | 953 | else throw("Strict value is not equal to itself.") | |
954 | 954 | } | |
955 | 955 | else throw("Strict value is not equal to itself.") | |
956 | 956 | } | |
957 | 957 | else throw("Strict value is not equal to itself.") | |
958 | 958 | } | |
959 | 959 | else throw("Strict value is not equal to itself.") | |
960 | 960 | } | |
961 | 961 | else throw("Strict value is not equal to itself.") | |
962 | 962 | } | |
963 | 963 | else $Tuple2(tokensAmountA, tokensAmountB) | |
964 | 964 | let toUserA = $t02825429490._1 | |
965 | 965 | let toUserB = $t02825429490._2 | |
966 | 966 | let poolTotalLoanEntries = if (isBorrowed) | |
967 | 967 | then [IntegerEntry((pool + kPoolTotalLoan), ((poolTotalShareLoan - userCanWithdraw) - stopLossFee))] | |
968 | 968 | else nil | |
969 | 969 | let entries = (([DeleteEntry((((((pool + "_") + user) + "_") + posId) + kUserPosition)), DeleteEntry((((user + "_") + posId) + kUserPositionPool)), DeleteEntry((((((pool + "_") + user) + "_") + posId) + kUserBorrowAmount)), DeleteEntry((((((pool + "_") + user) + "_") + posId) + kUserBorrowAssetId)), DeleteEntry((((((pool + "_") + user) + "_") + posId) + kUserPositionInterest)), IntegerEntry((pool + kPoolTotal), ((poolTotalShare - userCanWithdraw) - stopLossFee)), ScriptTransfer(userAddr, toUserA, idA), ScriptTransfer(userAddr, toUserB, idB), ScriptTransfer(moneyBox, stopLossFee, fromBase58String(shareId))] ++ poolTotalLoanEntries) ++ getCursEntries(idAStr, idBStr, shareId, nil)) | |
970 | 970 | $Tuple2(entries, [toUserA, toUserB]) | |
971 | 971 | } | |
972 | 972 | else throw("Strict value is not equal to itself.") | |
973 | 973 | } | |
974 | 974 | else throw("Strict value is not equal to itself.") | |
975 | 975 | } | |
976 | 976 | else throw("Strict value is not equal to itself.") | |
977 | 977 | } | |
978 | 978 | else throw("Strict value is not equal to itself.") | |
979 | 979 | } | |
980 | 980 | else throw("Strict value is not equal to itself.") | |
981 | 981 | } | |
982 | 982 | ||
983 | 983 | ||
984 | 984 | func parseRequest (requestId) = { | |
985 | 985 | let request = split(valueOrErrorMessage(getString(this, (requestId + kRequestId)), ("No request with id " + requestId)), ",") | |
986 | 986 | let user = request[0] | |
987 | 987 | let pool = request[1] | |
988 | 988 | let pmtA = parseIntValue(request[2]) | |
989 | 989 | let AId = request[3] | |
990 | 990 | let pmtB = parseIntValue(request[4]) | |
991 | 991 | let BId = request[5] | |
992 | 992 | let balA = parseIntValue(request[6]) | |
993 | 993 | let balB = parseIntValue(request[7]) | |
994 | 994 | let shareId = request[8] | |
995 | 995 | let bwAsset = request[9] | |
996 | 996 | let bwAmount = parseIntValue(request[10]) | |
997 | 997 | $Tuple11(user, pool, pmtA, AId, pmtB, BId, balA, balB, shareId, bwAsset, bwAmount) | |
998 | 998 | } | |
999 | 999 | ||
1000 | 1000 | ||
1001 | 1001 | func calcBorrowAmount (pmtA,pmtB,aId,bId,leverage,borrowId) = if (if ((borrowId != aId)) | |
1002 | 1002 | then (borrowId != bId) | |
1003 | 1003 | else false) | |
1004 | 1004 | then throw("Wrong borrow asset") | |
1005 | 1005 | else { | |
1006 | 1006 | let dPriceA = getIntegerValue(priceOracleAddr, (aId + kPriceInOracle)) | |
1007 | 1007 | let dPriceB = getIntegerValue(priceOracleAddr, (bId + kPriceInOracle)) | |
1008 | 1008 | let decPrA = pow(10, 0, getAssetDecimals(aId), 0, 0, DOWN) | |
1009 | 1009 | let decPrB = pow(10, 0, getAssetDecimals(bId), 0, 0, DOWN) | |
1010 | 1010 | let paydInDollar = (fraction(dPriceA, pmtA, decPrA) + fraction(dPriceB, pmtB, decPrB)) | |
1011 | 1011 | let $t03147231569 = if ((borrowId == aId)) | |
1012 | 1012 | then $Tuple2(dPriceA, decPrA) | |
1013 | 1013 | else $Tuple2(dPriceB, decPrB) | |
1014 | 1014 | let borrowPrice = $t03147231569._1 | |
1015 | 1015 | let borrowDecPr = $t03147231569._2 | |
1016 | 1016 | fraction(fraction(paydInDollar, (leverage - 100), 100), borrowDecPr, borrowPrice) | |
1017 | 1017 | } | |
1018 | 1018 | ||
1019 | 1019 | ||
1020 | 1020 | func parseReplenishPmts (pmts,AId,BId) = if ((size(pmts) == 2)) | |
1021 | 1021 | then if ((assetIdToStr(pmts[0].assetId) != AId)) | |
1022 | 1022 | then throw("Wrong payment asset A") | |
1023 | 1023 | else if ((assetIdToStr(pmts[1].assetId) != BId)) | |
1024 | 1024 | then throw("Wrong payment asset B") | |
1025 | 1025 | else $Tuple2(pmts[0].amount, pmts[1].amount) | |
1026 | 1026 | else if ((size(pmts) == 1)) | |
1027 | 1027 | then if ((assetIdToStr(pmts[0].assetId) == AId)) | |
1028 | 1028 | then $Tuple2(pmts[0].amount, 0) | |
1029 | 1029 | else if ((assetIdToStr(pmts[0].assetId) == BId)) | |
1030 | 1030 | then $Tuple2(0, pmts[0].amount) | |
1031 | 1031 | else throw("Wrong payment") | |
1032 | 1032 | else throw("One or two payments expected") | |
1033 | 1033 | ||
1034 | 1034 | ||
1035 | 1035 | func calcPriceImpact (balA,balB,newBalA,newBalB) = { | |
1036 | 1036 | let pri = ((SCALE8 - fraction(fraction(balB, SCALE8, balA), SCALE8, fraction(newBalB, SCALE8, newBalA))) * 100) | |
1037 | 1037 | if ((0 > pri)) | |
1038 | 1038 | then (pri * -1) | |
1039 | 1039 | else pri | |
1040 | 1040 | } | |
1041 | 1041 | ||
1042 | 1042 | ||
1043 | 1043 | func claimAndCheckAmnt (pool,pType,claim,amount,change) = { | |
1044 | 1044 | let $t03256932828 = if (claim) | |
1045 | 1045 | then claimFarmed(pType, pool) | |
1046 | 1046 | else { | |
1047 | 1047 | let claimedAsset = if ((pType == SF_POOL)) | |
1048 | 1048 | then SWOPID | |
1049 | 1049 | else if ((pType == WX_POOL)) | |
1050 | 1050 | then WXID | |
1051 | 1051 | else unknownPoolType() | |
1052 | 1052 | $Tuple2(amount, claimedAsset) | |
1053 | 1053 | } | |
1054 | 1054 | let claimAmount = $t03256932828._1 | |
1055 | 1055 | let claimAsset = $t03256932828._2 | |
1056 | 1056 | let bal = accountBalance(claimAsset) | |
1057 | 1057 | if (if ((amount > (claimAmount + change))) | |
1058 | 1058 | then true | |
1059 | 1059 | else (amount > bal)) | |
1060 | 1060 | then throw("To big amount to exchange") | |
1061 | 1061 | else $Tuple2(claimAmount, claimAsset) | |
1062 | 1062 | } | |
1063 | 1063 | ||
1064 | 1064 | ||
1065 | 1065 | @Callable(i) | |
1066 | 1066 | func getPoolInfoREADONLY (pool) = { | |
1067 | 1067 | let poolAddr = addressFromStringValue(pool) | |
1068 | 1068 | let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited") | |
1069 | 1069 | let $t03322533315 = getPoolData(Address(fromBase58String(pool)), pType) | |
1070 | 1070 | let AId = $t03322533315._1 | |
1071 | 1071 | let BId = $t03322533315._2 | |
1072 | 1072 | let balA = $t03322533315._3 | |
1073 | 1073 | let balB = $t03322533315._4 | |
1074 | 1074 | let shareId = $t03322533315._5 | |
1075 | 1075 | let shareSupply = getShareSupply(poolAddr, pType, shareId) | |
1076 | 1076 | $Tuple2(nil, $Tuple6(AId, BId, shareId, balA, balB, shareSupply)) | |
1077 | 1077 | } | |
1078 | 1078 | ||
1079 | 1079 | ||
1080 | 1080 | ||
1081 | 1081 | @Callable(i) | |
1082 | 1082 | func getShareAssetPriceREADONLY (shareId) = { | |
1083 | 1083 | let sharePrices = getSharePrice(shareId) | |
1084 | 1084 | $Tuple2(nil, sharePrices) | |
1085 | 1085 | } | |
1086 | 1086 | ||
1087 | 1087 | ||
1088 | 1088 | ||
1089 | 1089 | @Callable(i) | |
1090 | 1090 | func getUserPositionShareAmountREADONLY (user,posNum) = { | |
1091 | 1091 | let pool = valueOrErrorMessage(getString(this, (((user + "_") + posNum) + kUserPositionPool)), "Unknown position") | |
1092 | 1092 | let borrowAmount = getIntegerValue(this, (((((pool + "_") + user) + "_") + posNum) + kUserBorrowAmount)) | |
1093 | 1093 | let userCanWithdraw = userCanWithdrawShareCalc(user, pool, posNum, (borrowAmount > 0)) | |
1094 | 1094 | $Tuple2(nil, userCanWithdraw) | |
1095 | 1095 | } | |
1096 | 1096 | ||
1097 | 1097 | ||
1098 | 1098 | ||
1099 | 1099 | @Callable(i) | |
1100 | 1100 | func getUserPositionREADONLY (user,pools,posNum) = { | |
1101 | 1101 | func userPos (a,pool) = { | |
1102 | 1102 | let $t03418834258 = a | |
1103 | 1103 | let wAmountsA = $t03418834258._1 | |
1104 | 1104 | let wAmountsB = $t03418834258._2 | |
1105 | 1105 | let debts = $t03418834258._3 | |
1106 | 1106 | let eqWAmountsA = $t03418834258._4 | |
1107 | 1107 | let eqWAmountsB = $t03418834258._5 | |
1108 | 1108 | let index = $t03418834258._6 | |
1109 | 1109 | if (!(isDefined(getInteger(this, (((((pool + "_") + user) + "_") + posNum[index]) + kUserPosition))))) | |
1110 | 1110 | then $Tuple6((wAmountsA :+ 0), (wAmountsB :+ 0), (debts :+ 0), (eqWAmountsA :+ 0), (eqWAmountsB :+ 0), (index + 1)) | |
1111 | 1111 | else { | |
1112 | 1112 | let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited") | |
1113 | 1113 | let $t03453734627 = getPoolData(Address(fromBase58String(pool)), pType) | |
1114 | 1114 | let AId = $t03453734627._1 | |
1115 | 1115 | let BId = $t03453734627._2 | |
1116 | 1116 | let balA = $t03453734627._3 | |
1117 | 1117 | let balB = $t03453734627._4 | |
1118 | 1118 | let shareId = $t03453734627._5 | |
1119 | 1119 | let borrowAmount = valueOrElse(getInteger(this, (((((pool + "_") + user) + "_") + posNum[index]) + kUserBorrowAmount)), 0) | |
1120 | 1120 | let userCanWithdraw = userCanWithdrawShareCalc(user, pool, posNum[index], (borrowAmount > 0)) | |
1121 | 1121 | let $t03484334963 = calcWithdrawLPFromPoolVirt(Address(fromBase58String(pool)), pType, shareId, userCanWithdraw) | |
1122 | 1122 | let wAmountA = $t03484334963._1 | |
1123 | 1123 | let wAmountB = $t03484334963._2 | |
1124 | 1124 | if ((borrowAmount > 0)) | |
1125 | 1125 | then { | |
1126 | 1126 | let borrowAsset = getStringValue(this, (((((pool + "_") + user) + "_") + posNum[index]) + kUserBorrowAssetId)) | |
1127 | 1127 | let debt = { | |
1128 | 1128 | let @ = invoke(getLendSrvAddr(), "getAssetDebt", [false, ((user + "_") + posNum[index]), borrowAsset], nil) | |
1129 | 1129 | if ($isInstanceOf(@, "Int")) | |
1130 | 1130 | then @ | |
1131 | 1131 | else throw(($getType(@) + " couldn't be cast to Int")) | |
1132 | 1132 | } | |
1133 | 1133 | if ((debt == debt)) | |
1134 | 1134 | then { | |
1135 | 1135 | let amountToGetEx = if (if ((borrowAsset == AId)) | |
1136 | 1136 | then (debt > wAmountA) | |
1137 | 1137 | else false) | |
1138 | 1138 | then (debt - wAmountA) | |
1139 | 1139 | else if (if ((borrowAsset == BId)) | |
1140 | 1140 | then (debt > wAmountB) | |
1141 | 1141 | else false) | |
1142 | 1142 | then (debt - wAmountB) | |
1143 | 1143 | else 0 | |
1144 | 1144 | let amountToPay = if ((amountToGetEx > 0)) | |
1145 | 1145 | then if ((pType == SF_POOL)) | |
1146 | 1146 | then { | |
1147 | 1147 | let ex = calcAmountToPaySF(pool, AId, BId, balA, balB, amountToGetEx, borrowAsset) | |
1148 | 1148 | ex._2 | |
1149 | 1149 | } | |
1150 | 1150 | else if ((pType == WX_POOL)) | |
1151 | 1151 | then { | |
1152 | 1152 | let ex = calcAmountToPayWX(pool, AId, BId, balA, balB, amountToGetEx, borrowAsset) | |
1153 | 1153 | ex._2 | |
1154 | 1154 | } | |
1155 | 1155 | else unknownPoolType() | |
1156 | 1156 | else 0 | |
1157 | 1157 | let $t03587536094 = if ((borrowAsset == AId)) | |
1158 | 1158 | then $Tuple2(((wAmountA + amountToGetEx) - debt), (wAmountB - amountToPay)) | |
1159 | 1159 | else $Tuple2((wAmountA - amountToPay), ((wAmountB + amountToGetEx) - debt)) | |
1160 | 1160 | let eqWAmountA = $t03587536094._1 | |
1161 | 1161 | let eqWAmountB = $t03587536094._2 | |
1162 | 1162 | $Tuple6((wAmountsA :+ wAmountA), (wAmountsB :+ wAmountB), (debts :+ debt), (eqWAmountsA :+ eqWAmountA), (eqWAmountsB :+ eqWAmountB), (index + 1)) | |
1163 | 1163 | } | |
1164 | 1164 | else throw("Strict value is not equal to itself.") | |
1165 | 1165 | } | |
1166 | 1166 | else $Tuple6((wAmountsA :+ wAmountA), (wAmountsB :+ wAmountB), debts, (wAmountsA :+ wAmountA), (wAmountsB :+ wAmountB), (index + 1)) | |
1167 | 1167 | } | |
1168 | 1168 | } | |
1169 | 1169 | ||
1170 | 1170 | let $t03634936460 = { | |
1171 | 1171 | let $l = pools | |
1172 | 1172 | let $s = size($l) | |
1173 | 1173 | let $acc0 = $Tuple6(nil, nil, nil, nil, nil, 0) | |
1174 | 1174 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1175 | 1175 | then $a | |
1176 | 1176 | else userPos($a, $l[$i]) | |
1177 | 1177 | ||
1178 | 1178 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1179 | 1179 | then $a | |
1180 | 1180 | else throw("List size exceeds 20") | |
1181 | 1181 | ||
1182 | 1182 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
1183 | 1183 | } | |
1184 | 1184 | let wAmountsA = $t03634936460._1 | |
1185 | 1185 | let wAmountsB = $t03634936460._2 | |
1186 | 1186 | let debts = $t03634936460._3 | |
1187 | 1187 | let eqWAmountsA = $t03634936460._4 | |
1188 | 1188 | let eqWAmountsB = $t03634936460._5 | |
1189 | 1189 | $Tuple2(nil, $Tuple5(wAmountsA, wAmountsB, debts, eqWAmountsA, eqWAmountsB)) | |
1190 | 1190 | } | |
1191 | 1191 | ||
1192 | 1192 | ||
1193 | 1193 | ||
1194 | 1194 | @Callable(i) | |
1195 | 1195 | func replenish (pool,leverage,borrowId) = valueOrElse(isActiveForUsers(), { | |
1196 | 1196 | let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited") | |
1197 | 1197 | if (!(isPoolActive(pool, pType))) | |
1198 | 1198 | then throw("Pool not active at this moment") | |
1199 | 1199 | else if (if ((100 > leverage)) | |
1200 | 1200 | then true | |
1201 | 1201 | else (leverage > 300)) | |
1202 | 1202 | then throw("Leverage can't be <100 and >300") | |
1203 | 1203 | else if (if (!(getBooleanValue(this, (pool + kPoolCanBorrow)))) | |
1204 | 1204 | then (leverage > 100) | |
1205 | 1205 | else false) | |
1206 | 1206 | then throw("You can't borrow in this pool") | |
1207 | 1207 | else { | |
1208 | 1208 | let $t03705837148 = getPoolData(Address(fromBase58String(pool)), pType) | |
1209 | 1209 | let AId = $t03705837148._1 | |
1210 | 1210 | let BId = $t03705837148._2 | |
1211 | 1211 | let balA = $t03705837148._3 | |
1212 | 1212 | let balB = $t03705837148._4 | |
1213 | 1213 | let shareId = $t03705837148._5 | |
1214 | 1214 | if (if ((borrowId != AId)) | |
1215 | 1215 | then (borrowId != BId) | |
1216 | 1216 | else false) | |
1217 | 1217 | then throw("Wrong borrow asset") | |
1218 | 1218 | else { | |
1219 | 1219 | let $t03722937288 = parseReplenishPmts(i.payments, AId, BId) | |
1220 | 1220 | let pmtA = $t03722937288._1 | |
1221 | 1221 | let pmtB = $t03722937288._2 | |
1222 | 1222 | let user = toString(i.caller) | |
1223 | 1223 | let newPosNum = getNewUserPositionNumber(user) | |
1224 | 1224 | if ((leverage > 100)) | |
1225 | 1225 | then { | |
1226 | 1226 | let borrowAmount = calcBorrowAmount(pmtA, pmtB, AId, BId, leverage, borrowId) | |
1227 | 1227 | let request = makeString([user, pool, toString(pmtA), AId, toString(pmtB), BId, toString(balA), toString(balB), shareId, borrowId, toString(borrowAmount)], ",") | |
1228 | 1228 | let newRequestId = { | |
1229 | 1229 | let @ = invoke(this, "createNewRequest", [request], nil) | |
1230 | 1230 | if ($isInstanceOf(@, "Int")) | |
1231 | 1231 | then @ | |
1232 | 1232 | else throw(($getType(@) + " couldn't be cast to Int")) | |
1233 | 1233 | } | |
1234 | 1234 | if ((newRequestId == newRequestId)) | |
1235 | 1235 | then { | |
1236 | 1236 | let args = [((user + "_") + toString(newPosNum)), shareId, borrowId, borrowAmount, toString(this), "replenishFromLand", toString(valueOrErrorMessage(newRequestId, "Can't create new request"))] | |
1237 | 1237 | let inv = reentrantInvoke(getLendSrvAddr(), "flashPosition", args, nil) | |
1238 | 1238 | if ((inv == inv)) | |
1239 | 1239 | then { | |
1240 | 1240 | let userStaked = getIntegerValue(this, (((((pool + "_") + user) + "_") + toString(newPosNum)) + kUserPosition)) | |
1241 | 1241 | let $t03827738371 = getPoolBalances(Address(fromBase58String(pool)), pType, AId, BId) | |
1242 | 1242 | if (($t03827738371 == $t03827738371)) | |
1243 | 1243 | then { | |
1244 | 1244 | let newBalB = $t03827738371._2 | |
1245 | 1245 | let newBalA = $t03827738371._1 | |
1246 | 1246 | let prImpact = calcPriceImpact(balA, balB, newBalA, newBalB) | |
1247 | 1247 | let $t03844138556 = calcWithdrawLPFromPoolVirt(Address(fromBase58String(pool)), pType, shareId, userStaked) | |
1248 | 1248 | let wAmountA = $t03844138556._1 | |
1249 | 1249 | let wAmountB = $t03844138556._2 | |
1250 | 1250 | $Tuple2(nil, [prImpact, wAmountA, wAmountB]) | |
1251 | 1251 | } | |
1252 | 1252 | else throw("Strict value is not equal to itself.") | |
1253 | 1253 | } | |
1254 | 1254 | else throw("Strict value is not equal to itself.") | |
1255 | 1255 | } | |
1256 | 1256 | else throw("Strict value is not equal to itself.") | |
1257 | 1257 | } | |
1258 | 1258 | else { | |
1259 | 1259 | let $t03860938724 = replenishByType(pType, pool, NO_LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId) | |
1260 | 1260 | if (($t03860938724 == $t03860938724)) | |
1261 | 1261 | then { | |
1262 | 1262 | let axlyFee = $t03860938724._2 | |
1263 | 1263 | let userStaked = $t03860938724._1 | |
1264 | 1264 | let $t03873038824 = getPoolBalances(Address(fromBase58String(pool)), pType, AId, BId) | |
1265 | 1265 | if (($t03873038824 == $t03873038824)) | |
1266 | 1266 | then { | |
1267 | 1267 | let newBalB = $t03873038824._2 | |
1268 | 1268 | let newBalA = $t03873038824._1 | |
1269 | 1269 | let prImpact = calcPriceImpact(balA, balB, newBalA, newBalB) | |
1270 | 1270 | let $t03889439009 = calcWithdrawLPFromPoolVirt(Address(fromBase58String(pool)), pType, shareId, userStaked) | |
1271 | 1271 | let wAmountA = $t03889439009._1 | |
1272 | 1272 | let wAmountB = $t03889439009._2 | |
1273 | 1273 | $Tuple2((replenishEntries(pool, user, userStaked, axlyFee, newPosNum, shareId, pType, false) ++ getCursEntries(AId, BId, shareId, [toString(wAmountA), toString(wAmountB)])), [prImpact, wAmountA, wAmountB]) | |
1274 | 1274 | } | |
1275 | 1275 | else throw("Strict value is not equal to itself.") | |
1276 | 1276 | } | |
1277 | 1277 | else throw("Strict value is not equal to itself.") | |
1278 | 1278 | } | |
1279 | 1279 | } | |
1280 | 1280 | } | |
1281 | 1281 | }) | |
1282 | 1282 | ||
1283 | 1283 | ||
1284 | 1284 | ||
1285 | 1285 | @Callable(i) | |
1286 | 1286 | func withdraw (pool,posId) = valueOrElse(isActiveForUsers(), { | |
1287 | 1287 | let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited") | |
1288 | 1288 | if (!(isPoolActive(pool, pType))) | |
1289 | 1289 | then throw("Pool not active at this moment") | |
1290 | 1290 | else withdrawToUser(toString(i.caller), pool, toString(posId), false) | |
1291 | 1291 | }) | |
1292 | 1292 | ||
1293 | 1293 | ||
1294 | 1294 | ||
1295 | 1295 | @Callable(i) | |
1296 | 1296 | func createUpdateStopLoss (posId,poolId,assetId,price) = valueOrElse(isActiveForUsers(), { | |
1297 | 1297 | let tokenOraclePrice = getIntegerValue(priceOracleAddr, (assetId + kPriceInOracle)) | |
1298 | 1298 | let pType = valueOrErrorMessage(getString(this, (kPool + poolId)), "Pool is not inited") | |
1299 | 1299 | if (!(isPoolActive(poolId, pType))) | |
1300 | 1300 | then throw("Pool not active at this moment") | |
1301 | 1301 | else if (!(isDefined(getInteger(this, (((((poolId + "_") + toString(i.caller)) + "_") + toString(posId)) + kUserPosition))))) | |
1302 | 1302 | then throw("There are no user position") | |
1303 | 1303 | else if ((0 >= price)) | |
1304 | 1304 | then throw("Price must be greater than 0") | |
1305 | 1305 | else if ((price > tokenOraclePrice)) | |
1306 | 1306 | then throw("Price must be less than current token price") | |
1307 | 1307 | else [IntegerEntry((((((((toString(i.caller) + "_") + toString(posId)) + "_") + poolId) + "_") + assetId) + kUserStopLoss), price)] | |
1308 | 1308 | }) | |
1309 | 1309 | ||
1310 | 1310 | ||
1311 | 1311 | ||
1312 | 1312 | @Callable(i) | |
1313 | 1313 | func deleteStopLoss (posId,poolId,assetId) = valueOrElse(isActiveForUsers(), { | |
1314 | 1314 | let pType = valueOrErrorMessage(getString(this, (kPool + poolId)), "Pool is not inited") | |
1315 | 1315 | if (!(isPoolActive(poolId, pType))) | |
1316 | 1316 | then throw("Pool not active at this moment") | |
1317 | 1317 | else if (!(isDefined(getInteger(this, (((((((toString(i.caller) + "_") + toString(posId)) + "_") + poolId) + "_") + assetId) + kUserStopLoss))))) | |
1318 | 1318 | then throw("No entry") | |
1319 | 1319 | else [DeleteEntry((((((((toString(i.caller) + "_") + toString(posId)) + "_") + poolId) + "_") + assetId) + kUserStopLoss))] | |
1320 | 1320 | }) | |
1321 | 1321 | ||
1322 | 1322 | ||
1323 | 1323 | ||
1324 | 1324 | @Callable(i) | |
1325 | 1325 | func init (moneyBoxAddr,sfFarmingAddr,lendAddr,priceOracleAddr,keeperExContract,wxSwapContract,swopAssetId,wxAssetId,operatorPubKey,group1Admin1PubKey,group1Admin2PubKey,group2Admin1PubKey,group2Admin2PubKey) = valueOrElse(isSelfCall(i), if (isDefined(getString(kOperatorCallPK))) | |
1326 | 1326 | then throw("Already inited") | |
1327 | 1327 | else if (!(isDefined(addressFromString(moneyBoxAddr)))) | |
1328 | 1328 | then throw("moneyBoxAddr is not correct address") | |
1329 | 1329 | else if (!(isDefined(addressFromString(sfFarmingAddr)))) | |
1330 | 1330 | then throw("sfFarmingAddr is not correct address") | |
1331 | 1331 | else if (!(isDefined(addressFromString(lendAddr)))) | |
1332 | 1332 | then throw("lendAddr is not correct address") | |
1333 | 1333 | else if (!(isDefined(addressFromString(priceOracleAddr)))) | |
1334 | 1334 | then throw("priceOracleAddr is not correct address") | |
1335 | 1335 | else if (!(isDefined(addressFromString(keeperExContract)))) | |
1336 | 1336 | then throw("keeperExContract is not correct address") | |
1337 | 1337 | else if (!(isDefined(assetInfo(fromBase58String(swopAssetId))))) | |
1338 | 1338 | then throw("swopAssetId is not correct asset id") | |
1339 | 1339 | else if (!(isDefined(assetInfo(fromBase58String(wxAssetId))))) | |
1340 | 1340 | then throw("swopAssetId is not correct asset id") | |
1341 | 1341 | else if ((size(fromBase58String(operatorPubKey)) != 32)) | |
1342 | 1342 | then throw("operatorPubKey is not correct") | |
1343 | 1343 | else if ((size(fromBase58String(group1Admin1PubKey)) != 32)) | |
1344 | 1344 | then throw("group1Admin1PubKey is not correct") | |
1345 | 1345 | else if ((size(fromBase58String(group1Admin2PubKey)) != 32)) | |
1346 | 1346 | then throw("group1Admin2PubKey is not correct") | |
1347 | 1347 | else if ((size(fromBase58String(group2Admin1PubKey)) != 32)) | |
1348 | 1348 | then throw("group2Admin1PubKey is not correct") | |
1349 | 1349 | else if ((size(fromBase58String(group2Admin2PubKey)) != 32)) | |
1350 | 1350 | then throw("group2Admin2PubKey is not correct") | |
1351 | 1351 | else [StringEntry(kMoneyBox, moneyBoxAddr), StringEntry(kSFFarmingAddr, sfFarmingAddr), StringEntry(kLendService, lendAddr), StringEntry(kPriceOracle, priceOracleAddr), StringEntry(kExContract, keeperExContract), StringEntry(kWxSwapContract, wxSwapContract), StringEntry(kSwopId, swopAssetId), StringEntry(kWxId, wxAssetId), StringEntry(kOperatorCallPK, operatorPubKey), StringEntry(kGroup1Admin1PK, group1Admin1PubKey), StringEntry(kGroup1Admin2PK, group1Admin2PubKey), StringEntry(kGroup2Admin1PK, group2Admin1PubKey), StringEntry(kGroup2Admin2PK, group2Admin2PubKey)]) | |
1352 | 1352 | ||
1353 | 1353 | ||
1354 | 1354 | ||
1355 | 1355 | @Callable(i) | |
1356 | 1356 | func createNewRequest (params) = valueOrElse(isSelfCall(i), { | |
1357 | 1357 | let newRequestId = (valueOrElse(getInteger(this, kRequestIter), 0) + 1) | |
1358 | 1358 | $Tuple2([StringEntry((toString(newRequestId) + kRequestId), params), IntegerEntry(kRequestIter, newRequestId)], newRequestId) | |
1359 | 1359 | }) | |
1360 | 1360 | ||
1361 | 1361 | ||
1362 | 1362 | ||
1363 | 1363 | @Callable(i) | |
1364 | 1364 | func replenishFromLand (requestId) = valueOrElse(isActive(), valueOrElse(isLandCall(i), { | |
1365 | 1365 | let $t04384843952 = parseRequest(requestId) | |
1366 | 1366 | let user = $t04384843952._1 | |
1367 | 1367 | let pool = $t04384843952._2 | |
1368 | 1368 | let pmtA = $t04384843952._3 | |
1369 | 1369 | let AId = $t04384843952._4 | |
1370 | 1370 | let pmtB = $t04384843952._5 | |
1371 | 1371 | let BId = $t04384843952._6 | |
1372 | 1372 | let balA = $t04384843952._7 | |
1373 | 1373 | let balB = $t04384843952._8 | |
1374 | 1374 | let shareId = $t04384843952._9 | |
1375 | 1375 | let bwAsset = $t04384843952._10 | |
1376 | 1376 | let bwAmount = $t04384843952._11 | |
1377 | 1377 | if ((size(i.payments) != 1)) | |
1378 | 1378 | then throw("Wrong payment size") | |
1379 | 1379 | else if (if ((assetIdToStr(i.payments[0].assetId) != bwAsset)) | |
1380 | 1380 | then true | |
1381 | 1381 | else (i.payments[0].amount != bwAmount)) | |
1382 | 1382 | then throw("Wrong payment") | |
1383 | 1383 | else { | |
1384 | 1384 | let $t04414244242 = if ((AId == bwAsset)) | |
1385 | 1385 | then $Tuple2((pmtA + bwAmount), pmtB) | |
1386 | 1386 | else $Tuple2(pmtA, (pmtB + bwAmount)) | |
1387 | 1387 | let pmtAllA = $t04414244242._1 | |
1388 | 1388 | let pmtAllB = $t04414244242._2 | |
1389 | 1389 | let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Unknown pool") | |
1390 | 1390 | let $t04432444439 = replenishByType(pType, pool, LOAN_FEE, pmtAllA, AId, pmtAllB, BId, balA, balB, shareId) | |
1391 | 1391 | let userStaked = $t04432444439._1 | |
1392 | 1392 | let axlyFee = $t04432444439._2 | |
1393 | 1393 | let posNum = getNewUserPositionNumber(user) | |
1394 | 1394 | let borrowEntries = [IntegerEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserBorrowAmount), bwAmount), StringEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserBorrowAssetId), bwAsset)] | |
1395 | 1395 | let entries = replenishEntries(pool, user, userStaked, axlyFee, posNum, shareId, pType, true) | |
1396 | 1396 | let $t04479944914 = calcWithdrawLPFromPoolVirt(Address(fromBase58String(pool)), pType, shareId, userStaked) | |
1397 | 1397 | let wAmountA = $t04479944914._1 | |
1398 | 1398 | let wAmountB = $t04479944914._2 | |
1399 | 1399 | $Tuple2((((entries ++ getCursEntries(AId, BId, shareId, [toString(wAmountA), toString(wAmountB)])) ++ borrowEntries) :+ DeleteEntry((requestId + kRequestId))), userStaked) | |
1400 | 1400 | } | |
1401 | 1401 | })) | |
1402 | 1402 | ||
1403 | 1403 | ||
1404 | 1404 | ||
1405 | 1405 | @Callable(i) | |
1406 | 1406 | func liquidate (user,posId,liquidateAmount) = valueOrElse(isActive(), valueOrElse(isLandCall(i), { | |
1407 | 1407 | let pool = valueOrErrorMessage(getString(this, (((user + "_") + posId) + kUserPositionPool)), "no position") | |
1408 | 1408 | let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited") | |
1409 | 1409 | let $t04543545525 = getPoolData(Address(fromBase58String(pool)), pType) | |
1410 | 1410 | let AId = $t04543545525._1 | |
1411 | 1411 | let BId = $t04543545525._2 | |
1412 | 1412 | let balA = $t04543545525._3 | |
1413 | 1413 | let balB = $t04543545525._4 | |
1414 | 1414 | let shareId = $t04543545525._5 | |
1415 | 1415 | let amount = unstakeLP(pool, pType, shareId, liquidateAmount) | |
1416 | 1416 | let borrowAmount = getIntegerValue(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAmount)) | |
1417 | 1417 | let borrowAsset = getStringValue(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAssetId)) | |
1418 | 1418 | let userCanWithdraw = userCanWithdrawShareCalc(user, pool, posId, (borrowAmount > 0)) | |
1419 | 1419 | if ((liquidateAmount > userCanWithdraw)) | |
1420 | 1420 | then throw("You can't liquidate more than user have") | |
1421 | 1421 | else if ((borrowAmount == 0)) | |
1422 | 1422 | then throw("You can't liquidate position without borrow") | |
1423 | 1423 | else [IntegerEntry((((((pool + "_") + user) + "_") + posId) + kUserPositionInterest), getIntegerValue(this, (pool + kPoolInterestLoan))), IntegerEntry((pool + kPoolTotalLoan), (getPoolTotalShareWithLoan(pool) - liquidateAmount)), IntegerEntry((pool + kPoolTotal), (getPoolTotalShare(pool) - liquidateAmount)), IntegerEntry((((((pool + "_") + user) + "_") + posId) + kUserPosition), (userCanWithdraw - liquidateAmount)), ScriptTransfer(i.caller, amount, fromBase58String(shareId))] | |
1424 | 1424 | })) | |
1425 | 1425 | ||
1426 | 1426 | ||
1427 | 1427 | ||
1428 | 1428 | @Callable(i) | |
1429 | 1429 | func stopLoss (user,posId,pool,assetId) = valueOrElse(isActive(), valueOrElse(isOperatorCall(i), { | |
1430 | 1430 | let tokenOraclePrice = getIntegerValue(priceOracleAddr, (assetId + kPriceInOracle)) | |
1431 | 1431 | let stopLossPrice = valueOrErrorMessage(getInteger(this, (((((((user + "_") + toString(posId)) + "_") + pool) + "_") + assetId) + kUserStopLoss)), "No entry") | |
1432 | 1432 | if ((tokenOraclePrice > stopLossPrice)) | |
1433 | 1433 | then throw("Token price greater stop loss price") | |
1434 | 1434 | else { | |
1435 | 1435 | let res = withdrawToUser(user, pool, toString(posId), true) | |
1436 | 1436 | $Tuple2((res._1 :+ DeleteEntry((((((((user + "_") + toString(posId)) + "_") + pool) + "_") + assetId) + kUserStopLoss))), res._2) | |
1437 | 1437 | } | |
1438 | 1438 | })) | |
1439 | 1439 | ||
1440 | 1440 | ||
1441 | 1441 | ||
1442 | 1442 | @Callable(i) | |
1443 | 1443 | func capitalizeExKeeper (pool,tokenToId,amountToExchange,claim,amountsIn,addresses,assetsToReceive,estReceived,slippageTolerance,minReceived,options) = valueOrElse(isActive(), valueOrElse(isOperatorCall(i), { | |
1444 | 1444 | let pType = getStringValue(this, (kPool + pool)) | |
1445 | 1445 | let change = valueOrElse(getInteger(this, (pool + kPoolCapChange)), 0) | |
1446 | 1446 | let $t04767447773 = claimAndCheckAmnt(pool, pType, claim, amountToExchange, change) | |
1447 | 1447 | let claimedAmount = $t04767447773._1 | |
1448 | 1448 | let claimedAsset = $t04767447773._2 | |
1449 | 1449 | let exchangedAmount = exchangeKeeper(tokenToId, amountToExchange, claimedAsset, amountsIn, addresses, assetsToReceive, estReceived, slippageTolerance, minReceived, options) | |
1450 | 1450 | let newChange = ((claimedAmount + change) - amountToExchange) | |
1451 | 1451 | let changeEntry = if ((newChange >= 0)) | |
1452 | 1452 | then [IntegerEntry((pool + kPoolCapChange), newChange)] | |
1453 | 1453 | else throw("Negative change") | |
1454 | 1454 | (capitalize(pool, pType, tokenToId, exchangedAmount) ++ changeEntry) | |
1455 | 1455 | })) | |
1456 | 1456 | ||
1457 | 1457 | ||
1458 | 1458 | ||
1459 | 1459 | @Callable(i) | |
1460 | 1460 | func capitalizeExPuzzle (pool,tokenToId,amountToExchange,claim,routesStr,minToReceive,options) = valueOrElse(isActive(), valueOrElse(isOperatorCall(i), { | |
1461 | 1461 | let pType = getStringValue(this, (kPool + pool)) | |
1462 | 1462 | let change = valueOrElse(getInteger(this, (pool + kPoolCapChange)), 0) | |
1463 | 1463 | let $t04857348672 = claimAndCheckAmnt(pool, pType, claim, amountToExchange, change) | |
1464 | 1464 | let claimedAmount = $t04857348672._1 | |
1465 | 1465 | let claimedAsset = $t04857348672._2 | |
1466 | 1466 | let exchangedAmount = exchangePuzzle(tokenToId, amountToExchange, claimedAsset, routesStr, minToReceive, options) | |
1467 | 1467 | let newChange = ((claimedAmount + change) - amountToExchange) | |
1468 | 1468 | let changeEntry = if ((newChange >= 0)) | |
1469 | 1469 | then [IntegerEntry((pool + kPoolCapChange), newChange)] | |
1470 | 1470 | else nil | |
1471 | 1471 | (capitalize(pool, pType, tokenToId, exchangedAmount) ++ changeEntry) | |
1472 | 1472 | })) | |
1473 | 1473 | ||
1474 | 1474 | ||
1475 | 1475 | ||
1476 | 1476 | @Callable(i) | |
1477 | 1477 | func capitalizeExSwopFi (pool,tokenToId,amountToExchange,claim,exchangers,exchangersType,args1,args2,routingAssetsKeys,minAmountToReceive,options) = valueOrElse(isActive(), valueOrElse(isOperatorCall(i), { | |
1478 | 1478 | let pType = getStringValue(this, (kPool + pool)) | |
1479 | 1479 | let change = valueOrElse(getInteger(this, (pool + kPoolCapChange)), 0) | |
1480 | 1480 | let $t04951749616 = claimAndCheckAmnt(pool, pType, claim, amountToExchange, change) | |
1481 | 1481 | let claimedAmount = $t04951749616._1 | |
1482 | 1482 | let claimedAsset = $t04951749616._2 | |
1483 | 1483 | let exchangedAmount = exchangeSwopFi(tokenToId, amountToExchange, claimedAsset, exchangers, exchangersType, args1, args2, routingAssetsKeys, minAmountToReceive, options) | |
1484 | 1484 | let newChange = ((claimedAmount + change) - amountToExchange) | |
1485 | 1485 | let changeEntry = if ((newChange >= 0)) | |
1486 | 1486 | then [IntegerEntry((pool + kPoolCapChange), newChange)] | |
1487 | 1487 | else nil | |
1488 | 1488 | (capitalize(pool, pType, tokenToId, exchangedAmount) ++ changeEntry) | |
1489 | 1489 | })) | |
1490 | 1490 | ||
1491 | 1491 | ||
1492 | 1492 | ||
1493 | 1493 | @Callable(i) | |
1494 | 1494 | func capitalizeNoEx (pool,claim,amountFromBalance) = valueOrElse(isActive(), valueOrElse(isOperatorCall(i), { | |
1495 | 1495 | let pType = getStringValue(this, (kPool + pool)) | |
1496 | 1496 | let $t05021350308 = claimAndCheckAmnt(pool, pType, claim, amountFromBalance, 0) | |
1497 | 1497 | let claimedAmount = $t05021350308._1 | |
1498 | 1498 | let claimedAsset = $t05021350308._2 | |
1499 | 1499 | capitalize(pool, pType, assetIdToStr(claimedAsset), (claimedAmount + amountFromBalance)) | |
1500 | 1500 | })) | |
1501 | 1501 | ||
1502 | 1502 | ||
1503 | 1503 | ||
1504 | 1504 | @Callable(i) | |
1505 | 1505 | func initNewPool (type,poolAddr,inFeeNoLoan,inFeeLoan,capFeeNoLoan,capFeeWithLoan,stoplossFeeNoLoan,stoplossFeeWithLoan,canBorrow) = valueOrElse(isActive(), valueOrElse(isAdminCall(i), if (if ((type != SF_POOL)) | |
1506 | 1506 | then (type != WX_POOL) | |
1507 | 1507 | else false) | |
1508 | 1508 | then throw("Wrong type") | |
1509 | 1509 | else { | |
1510 | 1510 | let $t05073450828 = getPoolData(Address(fromBase58String(poolAddr)), type) | |
1511 | 1511 | let aId = $t05073450828._1 | |
1512 | 1512 | let bId = $t05073450828._2 | |
1513 | 1513 | let aBal = $t05073450828._3 | |
1514 | 1514 | let bBal = $t05073450828._4 | |
1515 | 1515 | let shareId = $t05073450828._5 | |
1516 | 1516 | if ((0 > inFeeNoLoan)) | |
1517 | 1517 | then throw("inFeeNoLoan must be greater than 0") | |
1518 | 1518 | else if ((0 > inFeeLoan)) | |
1519 | 1519 | then throw("inFeeLoan must be greater than 0") | |
1520 | 1520 | else if ((0 > capFeeNoLoan)) | |
1521 | 1521 | then throw("capFeeNoLoan must be greater than 0") | |
1522 | 1522 | else if ((0 > capFeeWithLoan)) | |
1523 | 1523 | then throw("capFeeWithLoan must be greater than 0") | |
1524 | 1524 | else if ((0 > stoplossFeeNoLoan)) | |
1525 | 1525 | then throw("stoplossFeeNoLoan must be greater than 0") | |
1526 | 1526 | else if ((0 > stoplossFeeWithLoan)) | |
1527 | 1527 | then throw("stoplossFeeWithLoan must be greater than 0") | |
1528 | 1528 | else [IntegerEntry((poolAddr + kAxlyInFeeWithoutLoan), inFeeNoLoan), IntegerEntry((poolAddr + kAxlyInFeeWithLoan), inFeeLoan), IntegerEntry((poolAddr + kAxlyNoLoanCapFee), capFeeNoLoan), IntegerEntry((poolAddr + kAxlyWithLoanCapFee), capFeeWithLoan), IntegerEntry((poolAddr + kAxlyStopLossNoLoanFee), stoplossFeeNoLoan), IntegerEntry((poolAddr + kAxlyStopLossLoanFee), stoplossFeeWithLoan), IntegerEntry((poolAddr + kPoolInterestLoan), 0), IntegerEntry((poolAddr + kPoolInterestNoLoan), 0), StringEntry((kPool + poolAddr), type), StringEntry((shareId + kSharePool), poolAddr), BooleanEntry((poolAddr + kPoolCanBorrow), canBorrow)] | |
1529 | 1529 | })) | |
1530 | 1530 | ||
1531 | 1531 | ||
1532 | 1532 | ||
1533 | 1533 | @Callable(i) | |
1534 | 1534 | func updatePoolFees (poolAddr,inFeeNoLoan,inFeeLoan,capFeeNoLoan,capFeeWithLoan,stoplossFeeNoLoan,stoplossFeeWithLoan) = valueOrElse(isActive(), valueOrElse(isAdminCall(i), if (!(isDefined(getString(this, (kPool + poolAddr))))) | |
1535 | 1535 | then throw(("Can't find pool with addr " + poolAddr)) | |
1536 | 1536 | else if ((0 > inFeeNoLoan)) | |
1537 | 1537 | then throw("inFeeNoLoan must be greater than 0") | |
1538 | 1538 | else if ((0 > inFeeLoan)) | |
1539 | 1539 | then throw("inFeeLoan must be greater than 0") | |
1540 | 1540 | else if ((0 > capFeeNoLoan)) | |
1541 | 1541 | then throw("capFeeNoLoan must be greater than 0") | |
1542 | 1542 | else if ((0 > capFeeWithLoan)) | |
1543 | 1543 | then throw("capFeeWithLoan must be greater than 0") | |
1544 | 1544 | else if ((0 > stoplossFeeNoLoan)) | |
1545 | 1545 | then throw("stoplossFeeNoLoan must be greater than 0") | |
1546 | 1546 | else if ((0 > stoplossFeeWithLoan)) | |
1547 | 1547 | then throw("stoplossFeeWithLoan must be greater than 0") | |
1548 | 1548 | else [IntegerEntry((poolAddr + kAxlyInFeeWithoutLoan), inFeeNoLoan), IntegerEntry((poolAddr + kAxlyInFeeWithLoan), inFeeLoan), IntegerEntry((poolAddr + kAxlyNoLoanCapFee), capFeeNoLoan), IntegerEntry((poolAddr + kAxlyWithLoanCapFee), capFeeWithLoan), IntegerEntry((poolAddr + kAxlyStopLossNoLoanFee), stoplossFeeNoLoan), IntegerEntry((poolAddr + kAxlyStopLossLoanFee), stoplossFeeWithLoan)])) | |
1549 | 1549 | ||
1550 | 1550 | ||
1551 | 1551 | ||
1552 | 1552 | @Callable(i) | |
1553 | 1553 | func activate () = valueOrElse(isAdminCall(i), if (valueOrElse(getBoolean(this, kActive), true)) | |
1554 | 1554 | then throw("dApp already active") | |
1555 | 1555 | else [BooleanEntry(kActive, true)]) | |
1556 | 1556 | ||
1557 | 1557 | ||
1558 | 1558 | ||
1559 | 1559 | @Callable(i) | |
1560 | 1560 | func shutdown () = valueOrElse(isAdminCall(i), if (!(valueOrElse(getBoolean(this, kActive), true))) | |
1561 | 1561 | then throw("dApp already shutdown") | |
1562 | 1562 | else [BooleanEntry(kActive, false)]) | |
1563 | 1563 | ||
1564 | 1564 | ||
1565 | 1565 | ||
1566 | 1566 | @Callable(i) | |
1567 | 1567 | func activateForUsers () = valueOrElse(isAdminCall(i), if (valueOrElse(getBoolean(this, kActiveUsers), true)) | |
1568 | 1568 | then throw("dApp already active for users") | |
1569 | 1569 | else [BooleanEntry(kActiveUsers, true)]) | |
1570 | 1570 | ||
1571 | 1571 | ||
1572 | 1572 | ||
1573 | 1573 | @Callable(i) | |
1574 | 1574 | func shutdownForUsers () = valueOrElse(isAdminCall(i), if (!(valueOrElse(getBoolean(this, kActiveUsers), true))) | |
1575 | 1575 | then throw("dApp already shutdown for users") | |
1576 | 1576 | else [BooleanEntry(kActiveUsers, false)]) | |
1577 | 1577 | ||
1578 | 1578 | ||
1579 | 1579 | ||
1580 | 1580 | @Callable(i) | |
1581 | 1581 | func activateSF () = valueOrElse(isAdminCall(i), if (valueOrElse(getBoolean(this, (SF_POOL + kActiveSFWX)), true)) | |
1582 | 1582 | then throw("SWOPFI already active") | |
1583 | 1583 | else [BooleanEntry((SF_POOL + kActiveSFWX), true)]) | |
1584 | 1584 | ||
1585 | 1585 | ||
1586 | 1586 | ||
1587 | 1587 | @Callable(i) | |
1588 | 1588 | func shutdownSF () = valueOrElse(isAdminCall(i), if (!(valueOrElse(getBoolean(this, (SF_POOL + kActiveSFWX)), true))) | |
1589 | 1589 | then throw("SWOPFI already shutdown") | |
1590 | 1590 | else [BooleanEntry((SF_POOL + kActiveSFWX), false)]) | |
1591 | 1591 | ||
1592 | 1592 | ||
1593 | 1593 | ||
1594 | 1594 | @Callable(i) | |
1595 | 1595 | func activateWX () = valueOrElse(isAdminCall(i), if (valueOrElse(getBoolean(this, (WX_POOL + kActiveSFWX)), true)) | |
1596 | 1596 | then throw("WX already active") | |
1597 | 1597 | else [BooleanEntry((WX_POOL + kActiveSFWX), true)]) | |
1598 | 1598 | ||
1599 | 1599 | ||
1600 | 1600 | ||
1601 | 1601 | @Callable(i) | |
1602 | 1602 | func shutdownWX () = valueOrElse(isAdminCall(i), if (!(valueOrElse(getBoolean(this, (WX_POOL + kActiveSFWX)), true))) | |
1603 | 1603 | then throw("WX already shutdown") | |
1604 | 1604 | else [BooleanEntry((WX_POOL + kActiveSFWX), false)]) | |
1605 | 1605 | ||
1606 | 1606 | ||
1607 | 1607 | ||
1608 | 1608 | @Callable(i) | |
1609 | 1609 | func activatePool (pool) = valueOrElse(isAdminCall(i), if (!(isDefined(getString(this, (kPool + pool))))) | |
1610 | 1610 | then throw("Unknown pool") | |
1611 | 1611 | else if (valueOrElse(getBoolean(this, (pool + kPoolActive)), true)) | |
1612 | 1612 | then throw("Pool already active") | |
1613 | 1613 | else [BooleanEntry((pool + kPoolActive), true)]) | |
1614 | 1614 | ||
1615 | 1615 | ||
1616 | 1616 | ||
1617 | 1617 | @Callable(i) | |
1618 | 1618 | func shutdownPool (pool) = valueOrElse(isAdminCall(i), if (!(isDefined(getString(this, (kPool + pool))))) | |
1619 | 1619 | then throw("Unknown pool") | |
1620 | 1620 | else if (!(valueOrElse(getBoolean(this, (pool + kPoolActive)), true))) | |
1621 | 1621 | then throw("Pool already shutdown") | |
1622 | 1622 | else [BooleanEntry((pool + kPoolActive), false)]) | |
1623 | 1623 | ||
1624 | 1624 |
github/deemru/w8io/026f985 317.75 ms ◑