tx · GcqP6R7ct1uNxW47L3RMfT3kn1oXUYdE3xHmE2KZ9EUy 3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS: -0.04700000 Waves 2023.07.20 13:50 [2674088] smart account 3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS > SELF 0.00000000 Waves
{ "type": 13, "id": "GcqP6R7ct1uNxW47L3RMfT3kn1oXUYdE3xHmE2KZ9EUy", "fee": 4700000, "feeAssetId": null, "timestamp": 1689850253992, "version": 2, "chainId": 84, "sender": "3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS", "senderPublicKey": "HP8sssVq1866F7CaPQJwgFrt6fsqhQjKwM84cL1wjD2a", "proofs": [ "4EmpPnBrV9rC3vRi5EEUfJC39kLBbCf8zwBPMN9h2yT2dypoKJfnWZ3UfeVemEZ3GD39h3ANRWAxs7KHTRaMUmSV" ], "script": "base64:BgKmAQgCEgMKAQgSBAoCCAgSBQoDCBgYEgUKAwgBCBIECgIIARIGCgQBCAgBEgUKAwEICBILCgkICAgICAgICAgSAwoBCBIDCgEIEgUKAwgIARIGCgQIAQgIEg0KCwgIAQQRGBgRAQEYEgkKBwgIAQQIARgSDQoLCAgBBBgYGBgYARgSCwoJCAgBAQEBAQEEEgASABIAEgASABIAEgASABIDCgEIEgMKAQh3AAdTRl9QT09MAgJTRgAHV1hfUE9PTAICV1gAD0NBUF9GRUVfTk9fTE9BTgIJY2FwTm9Mb2FuAAxDQVBfRkVFX0xPQU4CB2NhcExvYW4AFFNUT1BMT1NTX0ZFRV9OT19MT0FOAg5zdG9wTG9zc05vTG9hbgANU1RPUExPU1NfTE9BTgIMc3RvcExvc3NMb2FuAAhMT0FOX0ZFRQIEbG9hbgALTk9fTE9BTl9GRUUCBm5vTG9hbgAGTk9fRkVFAgVub0ZlZQAGU0NBTEU4AIDC1y8AB1NDQUxFMTAAgMivoCUAB1NDQUxFMTYJALYCAQCAgIT+pt7hEQAKRkVFX1NDQUxFNgDAhD0AF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CCQCbCAIFBHRoaXMJAKwCAgUEcG9vbAULa1Bvb2xBY3RpdmUGCQACAQIVUG9vbCBhbHJlYWR5IHNodXRkb3duCQDMCAIJAQxCb29sZWFuRW50cnkCBQdrQWN0aXZlBwUDbmlsAQJ0eAEGdmVyaWZ5AAkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tledEdj0U=", "height": 2674088, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AyWWFYgP6wkUM1FC3xCMC9HYJ2goDhJSBVwsX2YoLdb9 Next: D97jizeEhZxPwBSwduiLFhDvKB5FZPNXe86phef7QfcF 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 = "_axlyFeeCapWithLoan" | |
71 | 71 | ||
72 | 72 | let kAxlyWithLoanCapFee = "_axlyFeeCapNoLoan" | |
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 kAdminCallPK = "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 moneyBox = Address(fromBase58String(valueOrErrorMessage(getString(this, kMoneyBox), "No axly moneyBox address"))) | |
121 | 121 | ||
122 | 122 | let exContract = Address(fromBase58String(valueOrErrorMessage(getString(this, kExContract), "No exchange contract address"))) | |
123 | 123 | ||
124 | 124 | let priceOracleAddr = Address(fromBase58String(valueOrErrorMessage(getString(this, kPriceOracle), "No price oracle address"))) | |
125 | 125 | ||
126 | 126 | let wxSwapContract = Address(fromBase58String(valueOrErrorMessage(getString(this, kWxSwapContract), "No wx swap address"))) | |
127 | 127 | ||
128 | 128 | let SWOPID = fromBase58String(valueOrErrorMessage(getString(this, kSwopId), "No swop id")) | |
129 | 129 | ||
130 | 130 | let WXID = fromBase58String(valueOrErrorMessage(getString(this, kWxId), "No wx id")) | |
131 | 131 | ||
132 | 132 | func unknownPoolType () = throw("Wrong pool type") | |
133 | 133 | ||
134 | 134 | ||
135 | 135 | func getLendSrvAddr () = Address(fromBase58String(valueOrErrorMessage(getString(this, kLendService), "Can't get lend service addr"))) | |
136 | 136 | ||
137 | 137 | ||
138 | 138 | func getAdminCallAddr () = addressFromPublicKey(fromBase58String(valueOrErrorMessage(getString(this, kAdminCallPK), "Can't get admin addr"))) | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | func isAdminCall (i) = if ((i.caller == getAdminCallAddr())) | |
142 | 142 | then unit | |
143 | 143 | else throw("Only admin can call this function") | |
144 | 144 | ||
145 | 145 | ||
146 | 146 | func isSelfCall (i) = if ((i.caller == this)) | |
147 | 147 | then unit | |
148 | 148 | else throw("Only contract itself can call this function") | |
149 | 149 | ||
150 | 150 | ||
151 | 151 | func isLandCall (i) = if ((i.caller == getLendSrvAddr())) | |
152 | 152 | then unit | |
153 | 153 | else throw("Only land contract can call this function") | |
154 | 154 | ||
155 | 155 | ||
156 | 156 | func isActive () = if ((valueOrElse(getBoolean(this, kActive), true) == true)) | |
157 | 157 | then unit | |
158 | 158 | else throw("DApp is inactive at this moment") | |
159 | 159 | ||
160 | 160 | ||
161 | 161 | func isActiveForUsers () = if (if (valueOrElse(getBoolean(this, kActive), true)) | |
162 | 162 | then (valueOrElse(getBoolean(this, kActiveUsers), true) == true) | |
163 | 163 | else false) | |
164 | 164 | then unit | |
165 | 165 | else throw("DApp is inactive for users at this moment") | |
166 | 166 | ||
167 | 167 | ||
168 | 168 | func isPoolActive (pool,type) = { | |
169 | 169 | let WXSFActive = valueOrElse(getBoolean(this, (type + kActiveSFWX)), true) | |
170 | 170 | let poolActive = valueOrElse(getBoolean(this, (pool + kPoolActive)), true) | |
171 | 171 | if (if (WXSFActive) | |
172 | 172 | then poolActive | |
173 | 173 | else false) | |
174 | 174 | then true | |
175 | 175 | else false | |
176 | 176 | } | |
177 | 177 | ||
178 | 178 | ||
179 | 179 | func accountBalance (assetId) = match assetId { | |
180 | 180 | case id: ByteVector => | |
181 | 181 | assetBalance(this, id) | |
182 | 182 | case waves: Unit => | |
183 | 183 | wavesBalance(this).available | |
184 | 184 | case _ => | |
185 | 185 | throw("Match error") | |
186 | 186 | } | |
187 | 187 | ||
188 | 188 | ||
189 | 189 | 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")) | |
190 | 190 | ||
191 | 191 | ||
192 | 192 | func getWXPoolBalances (poolAddr,aId,bId) = $Tuple2({ | |
193 | 193 | let @ = invoke(poolAddr, "getAccBalanceWrapperREADONLY", [aId], nil) | |
194 | 194 | if ($isInstanceOf(@, "Int")) | |
195 | 195 | then @ | |
196 | 196 | else throw(($getType(@) + " couldn't be cast to Int")) | |
197 | 197 | }, { | |
198 | 198 | let @ = invoke(poolAddr, "getAccBalanceWrapperREADONLY", [bId], nil) | |
199 | 199 | if ($isInstanceOf(@, "Int")) | |
200 | 200 | then @ | |
201 | 201 | else throw(($getType(@) + " couldn't be cast to Int")) | |
202 | 202 | }) | |
203 | 203 | ||
204 | 204 | ||
205 | 205 | func getPoolBalances (poolAddr,type,aId,bId) = if ((type == SF_POOL)) | |
206 | 206 | then getSFPoolBalances(poolAddr) | |
207 | 207 | else if ((type == WX_POOL)) | |
208 | 208 | then getWXPoolBalances(poolAddr, aId, bId) | |
209 | 209 | else unknownPoolType() | |
210 | 210 | ||
211 | 211 | ||
212 | 212 | func getSFPoolData (poolAddr) = { | |
213 | 213 | let $t070647113 = getSFPoolBalances(poolAddr) | |
214 | 214 | if (($t070647113 == $t070647113)) | |
215 | 215 | then { | |
216 | 216 | let balB = $t070647113._2 | |
217 | 217 | let balA = $t070647113._1 | |
218 | 218 | $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")) | |
219 | 219 | } | |
220 | 220 | else throw("Strict value is not equal to itself.") | |
221 | 221 | } | |
222 | 222 | ||
223 | 223 | ||
224 | 224 | func getWXPoolData (poolAddr) = { | |
225 | 225 | let cfg = { | |
226 | 226 | let @ = invoke(poolAddr, "getPoolConfigWrapperREADONLY", nil, nil) | |
227 | 227 | if ($isInstanceOf(@, "List[Any]")) | |
228 | 228 | then @ | |
229 | 229 | else throw(($getType(@) + " couldn't be cast to List[Any]")) | |
230 | 230 | } | |
231 | 231 | if ((cfg == cfg)) | |
232 | 232 | then { | |
233 | 233 | let aId = valueOrErrorMessage({ | |
234 | 234 | let @ = cfg[4] | |
235 | 235 | if ($isInstanceOf(@, "String")) | |
236 | 236 | then @ | |
237 | 237 | else unit | |
238 | 238 | }, "Can't get pool A asset id") | |
239 | 239 | let bId = valueOrErrorMessage({ | |
240 | 240 | let @ = cfg[5] | |
241 | 241 | if ($isInstanceOf(@, "String")) | |
242 | 242 | then @ | |
243 | 243 | else unit | |
244 | 244 | }, "Can't get pool B asset id") | |
245 | 245 | let shareId = valueOrErrorMessage({ | |
246 | 246 | let @ = cfg[3] | |
247 | 247 | if ($isInstanceOf(@, "String")) | |
248 | 248 | then @ | |
249 | 249 | else unit | |
250 | 250 | }, "Can't get pool LP asset id") | |
251 | 251 | let $t078107869 = getWXPoolBalances(poolAddr, aId, bId) | |
252 | 252 | if (($t078107869 == $t078107869)) | |
253 | 253 | then { | |
254 | 254 | let balB = $t078107869._2 | |
255 | 255 | let balA = $t078107869._1 | |
256 | 256 | $Tuple5(aId, bId, balA, balB, shareId) | |
257 | 257 | } | |
258 | 258 | else throw("Strict value is not equal to itself.") | |
259 | 259 | } | |
260 | 260 | else throw("Strict value is not equal to itself.") | |
261 | 261 | } | |
262 | 262 | ||
263 | 263 | ||
264 | 264 | func getPoolData (poolAddr,type) = if ((type == SF_POOL)) | |
265 | 265 | then getSFPoolData(poolAddr) | |
266 | 266 | else if ((type == WX_POOL)) | |
267 | 267 | then getWXPoolData(poolAddr) | |
268 | 268 | else unknownPoolType() | |
269 | 269 | ||
270 | 270 | ||
271 | 271 | func getShareSupply (poolAddr,type,shareId) = if ((type == SF_POOL)) | |
272 | 272 | then valueOrErrorMessage(getInteger(poolAddr, kSFPoolShareSupply), "Can't get share asset supply") | |
273 | 273 | else if ((type == WX_POOL)) | |
274 | 274 | then valueOrErrorMessage(assetInfo(fromBase58String(shareId)), "Wrong ShareId").quantity | |
275 | 275 | else unknownPoolType() | |
276 | 276 | ||
277 | 277 | ||
278 | 278 | func getPoolTotalShare (pool) = valueOrElse(getInteger(this, (pool + kPoolTotal)), 0) | |
279 | 279 | ||
280 | 280 | ||
281 | 281 | func getPoolTotalShareWithLoan (pool) = valueOrElse(getInteger(this, (pool + kPoolTotalLoan)), 0) | |
282 | 282 | ||
283 | 283 | ||
284 | 284 | func getNewUserPositionNumber (user) = (valueOrElse(getInteger(this, (user + kUserPositionNum)), 0) + 1) | |
285 | 285 | ||
286 | 286 | ||
287 | 287 | func getAxlyFee (pool,feeType) = if ((feeType == CAP_FEE_LOAN)) | |
288 | 288 | then getIntegerValue(this, (pool + kAxlyWithLoanCapFee)) | |
289 | 289 | else if ((feeType == CAP_FEE_NO_LOAN)) | |
290 | 290 | then getIntegerValue(this, (pool + kAxlyNoLoanCapFee)) | |
291 | 291 | else if ((feeType == LOAN_FEE)) | |
292 | 292 | then getIntegerValue(this, (pool + kAxlyInFeeWithLoan)) | |
293 | 293 | else if ((feeType == NO_LOAN_FEE)) | |
294 | 294 | then getIntegerValue(this, (pool + kAxlyInFeeWithoutLoan)) | |
295 | 295 | else if ((feeType == NO_FEE)) | |
296 | 296 | then 0 | |
297 | 297 | else throw("Wrong fee type") | |
298 | 298 | ||
299 | 299 | ||
300 | 300 | func getSFFarmingAddr () = Address(fromBase58String(valueOrErrorMessage(getString(this, kSFFarmingAddr), "Can't get swopfi farming addr"))) | |
301 | 301 | ||
302 | 302 | ||
303 | 303 | func getWXFarmingAddr (poolAddr) = { | |
304 | 304 | let fContract = Address(fromBase58String(valueOrErrorMessage(getString(poolAddr, "%s__factoryContract"), "Can't get WX factory contract addr"))) | |
305 | 305 | let factroyCfg = split(valueOrErrorMessage(getString(fContract, "%s__factoryConfig"), "Can't get WX factory cfg"), "__") | |
306 | 306 | Address(fromBase58String(factroyCfg[1])) | |
307 | 307 | } | |
308 | 308 | ||
309 | 309 | ||
310 | 310 | func assetIdToStr (assetId) = match assetId { | |
311 | 311 | case id: ByteVector => | |
312 | 312 | toBase58String(id) | |
313 | 313 | case waves: Unit => | |
314 | 314 | "WAVES" | |
315 | 315 | case _ => | |
316 | 316 | throw("Not Asset id") | |
317 | 317 | } | |
318 | 318 | ||
319 | 319 | ||
320 | 320 | func assetIdFromStr (assetId) = if ((assetId == "WAVES")) | |
321 | 321 | then unit | |
322 | 322 | else fromBase58String(assetId) | |
323 | 323 | ||
324 | 324 | ||
325 | 325 | func getAssetDecimals (assetId) = if ((assetId == "WAVES")) | |
326 | 326 | then 8 | |
327 | 327 | else match assetInfo(fromBase58String(assetId)) { | |
328 | 328 | case asset: Asset => | |
329 | 329 | asset.decimals | |
330 | 330 | case _ => | |
331 | 331 | throw("Can't find asset") | |
332 | 332 | } | |
333 | 333 | ||
334 | 334 | ||
335 | 335 | func getAssetPrecition (assetId) = pow(10, 0, getAssetDecimals(assetId), 0, 0, DOWN) | |
336 | 336 | ||
337 | 337 | ||
338 | 338 | func getAssetsPrice (assetIds) = { | |
339 | 339 | func getPrices (a,assetId) = { | |
340 | 340 | let assetPrice = getIntegerValue(priceOracleAddr, (assetId + kPriceInOracle)) | |
341 | 341 | (a :+ assetPrice) | |
342 | 342 | } | |
343 | 343 | ||
344 | 344 | let $l = assetIds | |
345 | 345 | let $s = size($l) | |
346 | 346 | let $acc0 = nil | |
347 | 347 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
348 | 348 | then $a | |
349 | 349 | else getPrices($a, $l[$i]) | |
350 | 350 | ||
351 | 351 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
352 | 352 | then $a | |
353 | 353 | else throw("List size exceeds 50") | |
354 | 354 | ||
355 | 355 | $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) | |
356 | 356 | } | |
357 | 357 | ||
358 | 358 | ||
359 | 359 | func getSharePrice (shareId) = { | |
360 | 360 | let pool = valueOrErrorMessage(getString(this, (shareId + kSharePool)), "Can't find pool addr by share id") | |
361 | 361 | let poolAddr = Address(fromBase58String(pool)) | |
362 | 362 | let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited") | |
363 | 363 | let $t01084710912 = getPoolData(poolAddr, pType) | |
364 | 364 | let aId = $t01084710912._1 | |
365 | 365 | let bId = $t01084710912._2 | |
366 | 366 | let aBalance = $t01084710912._3 | |
367 | 367 | let bBalance = $t01084710912._4 | |
368 | 368 | let dPriceA = getIntegerValue(priceOracleAddr, (aId + kPriceInOracle)) | |
369 | 369 | let dPriceB = getIntegerValue(priceOracleAddr, (bId + kPriceInOracle)) | |
370 | 370 | let shareSupply = getShareSupply(poolAddr, pType, shareId) | |
371 | 371 | let APrecision = pow(10, 0, getAssetDecimals(aId), 0, 0, DOWN) | |
372 | 372 | let BPrecision = pow(10, 0, getAssetDecimals(bId), 0, 0, DOWN) | |
373 | 373 | let sharePrecision = pow(10, 0, getAssetDecimals(shareId), 0, 0, DOWN) | |
374 | 374 | let sum = (fraction(aBalance, dPriceA, APrecision) + fraction(bBalance, dPriceB, BPrecision)) | |
375 | 375 | fraction(sum, sharePrecision, shareSupply) | |
376 | 376 | } | |
377 | 377 | ||
378 | 378 | ||
379 | 379 | func getSharePrices (shareIds) = { | |
380 | 380 | func getPrices (a,shareId) = (a :+ getSharePrice(shareId)) | |
381 | 381 | ||
382 | 382 | let $l = shareIds | |
383 | 383 | let $s = size($l) | |
384 | 384 | let $acc0 = nil | |
385 | 385 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
386 | 386 | then $a | |
387 | 387 | else getPrices($a, $l[$i]) | |
388 | 388 | ||
389 | 389 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
390 | 390 | then $a | |
391 | 391 | else throw("List size exceeds 20") | |
392 | 392 | ||
393 | 393 | $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) | |
394 | 394 | } | |
395 | 395 | ||
396 | 396 | ||
397 | 397 | func getCursEntries (aId,bId,shareId,wAmounts) = { | |
398 | 398 | let assetsPrices = getAssetsPrice([aId, bId]) | |
399 | 399 | let sharePrice = getSharePrice(shareId) | |
400 | 400 | let prices = ([toString(assetsPrices[0]), toString(assetsPrices[1]), toString(sharePrice)] ++ wAmounts) | |
401 | 401 | [StringEntry(kTokenLastPrice, makeString(prices, ","))] | |
402 | 402 | } | |
403 | 403 | ||
404 | 404 | ||
405 | 405 | func calcReplenishByTwoTokens (pType,poolAddr,pmtA,aId,pmtB,bId,balA,balB) = if ((pType == SF_POOL)) | |
406 | 406 | then { | |
407 | 407 | let repl = { | |
408 | 408 | let @ = invoke(poolAddr, "callFunction", ["calcLPReplenishTwoTokensREADONLY", [toString(pmtA), toString(pmtB)]], nil) | |
409 | 409 | if ($isInstanceOf(@, "List[Any]")) | |
410 | 410 | then @ | |
411 | 411 | else throw(($getType(@) + " couldn't be cast to List[Any]")) | |
412 | 412 | } | |
413 | 413 | if ((repl == repl)) | |
414 | 414 | then $Tuple5({ | |
415 | 415 | let @ = repl[3] | |
416 | 416 | if ($isInstanceOf(@, "Int")) | |
417 | 417 | then @ | |
418 | 418 | else throw(($getType(@) + " couldn't be cast to Int")) | |
419 | 419 | }, { | |
420 | 420 | let @ = repl[4] | |
421 | 421 | if ($isInstanceOf(@, "Int")) | |
422 | 422 | then @ | |
423 | 423 | else throw(($getType(@) + " couldn't be cast to Int")) | |
424 | 424 | }, { | |
425 | 425 | let @ = repl[1] | |
426 | 426 | if ($isInstanceOf(@, "Int")) | |
427 | 427 | then @ | |
428 | 428 | else throw(($getType(@) + " couldn't be cast to Int")) | |
429 | 429 | }, assetIdToStr(repl[2]), { | |
430 | 430 | let @ = repl[0] | |
431 | 431 | if ($isInstanceOf(@, "Int")) | |
432 | 432 | then @ | |
433 | 433 | else throw(($getType(@) + " couldn't be cast to Int")) | |
434 | 434 | }) | |
435 | 435 | else throw("Strict value is not equal to itself.") | |
436 | 436 | } | |
437 | 437 | else if ((pType == WX_POOL)) | |
438 | 438 | then { | |
439 | 439 | let $t01245712707 = $Tuple2(split({ | |
440 | 440 | let @ = invoke(poolAddr, "evaluatePutByAmountAssetREADONLY", [pmtA], nil) | |
441 | 441 | if ($isInstanceOf(@, "String")) | |
442 | 442 | then @ | |
443 | 443 | else throw(($getType(@) + " couldn't be cast to String")) | |
444 | 444 | }, "__"), split({ | |
445 | 445 | let @ = invoke(poolAddr, "evaluatePutByPriceAssetREADONLY", [pmtB], nil) | |
446 | 446 | if ($isInstanceOf(@, "String")) | |
447 | 447 | then @ | |
448 | 448 | else throw(($getType(@) + " couldn't be cast to String")) | |
449 | 449 | }, "__")) | |
450 | 450 | if (($t01245712707 == $t01245712707)) | |
451 | 451 | then { | |
452 | 452 | let evalPutInB = $t01245712707._2 | |
453 | 453 | let evalPutInA = $t01245712707._1 | |
454 | 454 | let lpInA = parseIntValue(evalPutInA[1]) | |
455 | 455 | let lpInB = parseIntValue(evalPutInB[1]) | |
456 | 456 | if ((lpInB > lpInA)) | |
457 | 457 | then { | |
458 | 458 | let pmt = parseIntValue(evalPutInA[8]) | |
459 | 459 | $Tuple5(pmtA, pmt, (pmtB - pmt), bId, lpInB) | |
460 | 460 | } | |
461 | 461 | else { | |
462 | 462 | let pmt = parseIntValue(evalPutInB[7]) | |
463 | 463 | $Tuple5(pmt, pmtB, (pmtA - pmt), aId, lpInA) | |
464 | 464 | } | |
465 | 465 | } | |
466 | 466 | else throw("Strict value is not equal to itself.") | |
467 | 467 | } | |
468 | 468 | else unknownPoolType() | |
469 | 469 | ||
470 | 470 | ||
471 | 471 | func replenishTwoTokensByType (poolAddr,pType,pmtA,aId,pmtB,bId) = { | |
472 | 472 | let payments = [AttachedPayment(assetIdFromStr(aId), pmtA), AttachedPayment(assetIdFromStr(bId), pmtB)] | |
473 | 473 | if ((pType == SF_POOL)) | |
474 | 474 | then invoke(poolAddr, "callFunction", ["replenishWithTwoTokens", ["false", "0"]], payments) | |
475 | 475 | else if ((pType == WX_POOL)) | |
476 | 476 | then invoke(poolAddr, "put", [1000000, false], payments) | |
477 | 477 | else unknownPoolType() | |
478 | 478 | } | |
479 | 479 | ||
480 | 480 | ||
481 | 481 | func replenishOneTokenByType (poolAddr,pType,pmt,pmtId) = { | |
482 | 482 | let payments = [AttachedPayment(assetIdFromStr(pmtId), pmt)] | |
483 | 483 | if ((pType == SF_POOL)) | |
484 | 484 | then invoke(poolAddr, "callFunction", ["replenishWithOneToken", ["0", "false", "0"]], payments) | |
485 | 485 | else if ((pType == WX_POOL)) | |
486 | 486 | then invoke(poolAddr, "putOneTkn", [0, false], payments) | |
487 | 487 | else unknownPoolType() | |
488 | 488 | } | |
489 | 489 | ||
490 | 490 | ||
491 | 491 | func stakeLP (pool,pType,shareId,amount) = { | |
492 | 492 | let payments = [AttachedPayment(fromBase58String(shareId), amount)] | |
493 | 493 | if ((pType == SF_POOL)) | |
494 | 494 | then invoke(getSFFarmingAddr(), "lockShareTokens", [pool, 0], payments) | |
495 | 495 | else if ((pType == WX_POOL)) | |
496 | 496 | then invoke(getWXFarmingAddr(addressFromStringValue(pool)), "stake", nil, payments) | |
497 | 497 | else unknownPoolType() | |
498 | 498 | } | |
499 | 499 | ||
500 | 500 | ||
501 | 501 | func unstakeLP (pool,pType,shareId,amount) = { | |
502 | 502 | let $t01436614716 = if ((pType == SF_POOL)) | |
503 | 503 | then $Tuple3(getSFFarmingAddr(), "withdrawShareTokens", [pool, amount]) | |
504 | 504 | else if ((pType == WX_POOL)) | |
505 | 505 | then $Tuple3(getWXFarmingAddr(Address(fromBase58String(pool))), "unstake", [shareId, amount]) | |
506 | 506 | else unknownPoolType() | |
507 | 507 | let farmAddr = $t01436614716._1 | |
508 | 508 | let fName = $t01436614716._2 | |
509 | 509 | let params = $t01436614716._3 | |
510 | 510 | let inv = invoke(farmAddr, fName, params, nil) | |
511 | 511 | if ((inv == inv)) | |
512 | 512 | then amount | |
513 | 513 | else throw("Strict value is not equal to itself.") | |
514 | 514 | } | |
515 | 515 | ||
516 | 516 | ||
517 | 517 | func calcAmountToPaySF (pool,assetIdA,assetIdB,balA,balB,amountTokenToGet,assetTokenToGet) = { | |
518 | 518 | let poolAddr = Address(fromBase58String(pool)) | |
519 | 519 | let feeScale6 = 1000000 | |
520 | 520 | let fee = getIntegerValue(poolAddr, kSFPoolFee) | |
521 | 521 | let amntGetNoFee = fraction(amountTokenToGet, feeScale6, (feeScale6 - fee), CEILING) | |
522 | 522 | let $t01513815444 = if ((assetTokenToGet == assetIdA)) | |
523 | 523 | then { | |
524 | 524 | let amountToPay = fraction(amntGetNoFee, balB, (balA - amntGetNoFee), CEILING) | |
525 | 525 | $Tuple2(amountToPay, assetIdB) | |
526 | 526 | } | |
527 | 527 | else { | |
528 | 528 | let amountToPay = fraction(amntGetNoFee, balA, (balB - amntGetNoFee), CEILING) | |
529 | 529 | $Tuple2(amountToPay, assetIdA) | |
530 | 530 | } | |
531 | 531 | let amountToPay = $t01513815444._1 | |
532 | 532 | let assetToPay = $t01513815444._2 | |
533 | 533 | $Tuple2(assetToPay, amountToPay) | |
534 | 534 | } | |
535 | 535 | ||
536 | 536 | ||
537 | 537 | func calcAmountToPayWX (pool,assetIdA,assetIdB,balA,balB,amountTokenToGet,assetTokenToGet) = { | |
538 | 538 | let prFee = getIntegerValue(wxSwapContract, "%s__protocolFee") | |
539 | 539 | let pFee = getIntegerValue(wxSwapContract, "%s__poolFee") | |
540 | 540 | let feeScale = toBigInt(100000000) | |
541 | 541 | let $t01578316091 = if ((assetTokenToGet == assetIdA)) | |
542 | 542 | then { | |
543 | 543 | let amountToPay = fraction(amountTokenToGet, balB, (balA - amountTokenToGet)) | |
544 | 544 | $Tuple2(amountToPay, assetIdB) | |
545 | 545 | } | |
546 | 546 | else { | |
547 | 547 | let amountToPay = fraction(amountTokenToGet, balA, (balB - amountTokenToGet)) | |
548 | 548 | $Tuple2(amountToPay, assetIdA) | |
549 | 549 | } | |
550 | 550 | let amountToPay = $t01578316091._1 | |
551 | 551 | let assetToPay = $t01578316091._2 | |
552 | 552 | let amountToPayWithFee = toInt(fraction(toBigInt(amountToPay), feeScale, (feeScale - toBigInt((prFee + pFee))), CEILING)) | |
553 | 553 | $Tuple2(assetToPay, amountToPayWithFee) | |
554 | 554 | } | |
555 | 555 | ||
556 | 556 | ||
557 | 557 | func exchangeDirectly (pType,pool,assetIdA,assetIdB,balA,balB,amountTokenToGet,assetTokenToGet) = if ((pType == SF_POOL)) | |
558 | 558 | then { | |
559 | 559 | let $t01643816560 = calcAmountToPaySF(pool, assetIdA, assetIdB, balA, balB, amountTokenToGet, assetTokenToGet) | |
560 | 560 | let assetToPay = $t01643816560._1 | |
561 | 561 | let amountToPay = $t01643816560._2 | |
562 | 562 | invoke(addressFromStringValue(pool), "callFunction", ["exchange", [toString(amountTokenToGet)]], [AttachedPayment(assetIdFromStr(assetToPay), amountToPay)]) | |
563 | 563 | } | |
564 | 564 | else if ((pType == WX_POOL)) | |
565 | 565 | then { | |
566 | 566 | let $t01676016882 = calcAmountToPayWX(pool, assetIdA, assetIdB, balA, balB, amountTokenToGet, assetTokenToGet) | |
567 | 567 | let assetToPay = $t01676016882._1 | |
568 | 568 | let amountToPay = $t01676016882._2 | |
569 | 569 | invoke(wxSwapContract, "swap", [amountTokenToGet, assetTokenToGet, toString(this)], [AttachedPayment(assetIdFromStr(assetToPay), amountToPay)]) | |
570 | 570 | } | |
571 | 571 | else unknownPoolType() | |
572 | 572 | ||
573 | 573 | ||
574 | 574 | func calcWithdrawLPFromPoolVirt (poolAddr,pType,shareId,userCanWithdraw) = { | |
575 | 575 | let $t01716917608 = if ((pType == SF_POOL)) | |
576 | 576 | then { | |
577 | 577 | let inv = { | |
578 | 578 | let @ = invoke(poolAddr, "callFunction", ["withdrawREADONLY", [toString(userCanWithdraw)]], nil) | |
579 | 579 | if ($isInstanceOf(@, "(Int, Int)")) | |
580 | 580 | then @ | |
581 | 581 | else throw(($getType(@) + " couldn't be cast to (Int, Int)")) | |
582 | 582 | } | |
583 | 583 | if ((inv == inv)) | |
584 | 584 | then $Tuple2(inv._1, inv._2) | |
585 | 585 | else throw("Strict value is not equal to itself.") | |
586 | 586 | } | |
587 | 587 | else if ((pType == WX_POOL)) | |
588 | 588 | then { | |
589 | 589 | let inv = split({ | |
590 | 590 | let @ = invoke(poolAddr, "evaluateGetREADONLY", [shareId, userCanWithdraw], nil) | |
591 | 591 | if ($isInstanceOf(@, "String")) | |
592 | 592 | then @ | |
593 | 593 | else throw(($getType(@) + " couldn't be cast to String")) | |
594 | 594 | }, "__") | |
595 | 595 | if ((inv == inv)) | |
596 | 596 | then $Tuple2(parseIntValue(inv[1]), parseIntValue(inv[2])) | |
597 | 597 | else throw("Strict value is not equal to itself.") | |
598 | 598 | } | |
599 | 599 | else unknownPoolType() | |
600 | 600 | let amountA = $t01716917608._1 | |
601 | 601 | let amountB = $t01716917608._2 | |
602 | 602 | $Tuple2(amountA, amountB) | |
603 | 603 | } | |
604 | 604 | ||
605 | 605 | ||
606 | 606 | func claimFarmed (pType,pool) = if ((pType == SF_POOL)) | |
607 | 607 | then { | |
608 | 608 | let balBefore = accountBalance(SWOPID) | |
609 | 609 | if ((balBefore == balBefore)) | |
610 | 610 | then { | |
611 | 611 | let inv = invoke(getSFFarmingAddr(), "claim", [pool], nil) | |
612 | 612 | if ((inv == inv)) | |
613 | 613 | then { | |
614 | 614 | let balAfter = accountBalance(SWOPID) | |
615 | 615 | $Tuple2((balAfter - balBefore), SWOPID) | |
616 | 616 | } | |
617 | 617 | else throw("Strict value is not equal to itself.") | |
618 | 618 | } | |
619 | 619 | else throw("Strict value is not equal to itself.") | |
620 | 620 | } | |
621 | 621 | else if ((pType == WX_POOL)) | |
622 | 622 | then { | |
623 | 623 | let balBefore = accountBalance(WXID) | |
624 | 624 | if ((balBefore == balBefore)) | |
625 | 625 | then { | |
626 | 626 | let inv = invoke(getWXFarmingAddr(Address(fromBase58String(pool))), "claimWX", [pool], nil) | |
627 | 627 | if ((inv == inv)) | |
628 | 628 | then { | |
629 | 629 | let balAfter = accountBalance(WXID) | |
630 | 630 | $Tuple2((balAfter - balBefore), WXID) | |
631 | 631 | } | |
632 | 632 | else throw("Strict value is not equal to itself.") | |
633 | 633 | } | |
634 | 634 | else throw("Strict value is not equal to itself.") | |
635 | 635 | } | |
636 | 636 | else unknownPoolType() | |
637 | 637 | ||
638 | 638 | ||
639 | 639 | func replenishByType (pType,pool,feeType,pmtA,aId,pmtB,bId,balA,balB,LPId) = { | |
640 | 640 | let lpBalanceBefore = accountBalance(fromBase58String(LPId)) | |
641 | 641 | if ((lpBalanceBefore == lpBalanceBefore)) | |
642 | 642 | then { | |
643 | 643 | let poolAddr = addressFromStringValue(pool) | |
644 | 644 | let $t01857318989 = if (if ((pmtA > 0)) | |
645 | 645 | then (pmtB > 0) | |
646 | 646 | else false) | |
647 | 647 | then { | |
648 | 648 | let $t01863918755 = calcReplenishByTwoTokens(pType, poolAddr, pmtA, aId, pmtB, bId, balA, balB) | |
649 | 649 | let pmtInA = $t01863918755._1 | |
650 | 650 | let pmtInB = $t01863918755._2 | |
651 | 651 | let change = $t01863918755._3 | |
652 | 652 | let changeId = $t01863918755._4 | |
653 | 653 | let inv = replenishTwoTokensByType(poolAddr, pType, pmtInA, aId, pmtInB, bId) | |
654 | 654 | if ((inv == inv)) | |
655 | 655 | then $Tuple2(change, changeId) | |
656 | 656 | else throw("Strict value is not equal to itself.") | |
657 | 657 | } | |
658 | 658 | else if ((pmtA > 0)) | |
659 | 659 | then $Tuple2(pmtA, aId) | |
660 | 660 | else if ((pmtB > 0)) | |
661 | 661 | then $Tuple2(pmtB, bId) | |
662 | 662 | else throw("pmts must be > 0") | |
663 | 663 | let change = $t01857318989._1 | |
664 | 664 | let changeId = $t01857318989._2 | |
665 | 665 | let inv = if ((change > 0)) | |
666 | 666 | then replenishOneTokenByType(poolAddr, pType, change, changeId) | |
667 | 667 | else nil | |
668 | 668 | if ((inv == inv)) | |
669 | 669 | then { | |
670 | 670 | let lpBalanceAfter = accountBalance(fromBase58String(LPId)) | |
671 | 671 | let totalStaked = (lpBalanceAfter - lpBalanceBefore) | |
672 | 672 | let axlyFeeAmount = fraction(totalStaked, getAxlyFee(pool, feeType), FEE_SCALE6) | |
673 | 673 | let userShareForStake = (totalStaked - axlyFeeAmount) | |
674 | 674 | if ((0 >= userShareForStake)) | |
675 | 675 | then throw("amount of staked sharetokens must be > 0") | |
676 | 676 | else { | |
677 | 677 | let invLP = stakeLP(pool, pType, LPId, userShareForStake) | |
678 | 678 | if ((invLP == invLP)) | |
679 | 679 | then $Tuple2(userShareForStake, axlyFeeAmount) | |
680 | 680 | else throw("Strict value is not equal to itself.") | |
681 | 681 | } | |
682 | 682 | } | |
683 | 683 | else throw("Strict value is not equal to itself.") | |
684 | 684 | } | |
685 | 685 | else throw("Strict value is not equal to itself.") | |
686 | 686 | } | |
687 | 687 | ||
688 | 688 | ||
689 | 689 | func replenishEntries (pool,user,stakedAmount,axlyFeeAmount,posNum,shareId,type,withLoan) = { | |
690 | 690 | let totalAmount = getPoolTotalShare(pool) | |
691 | 691 | let totalAmountLoan = getPoolTotalShareWithLoan(pool) | |
692 | 692 | let $t01984720085 = if (withLoan) | |
693 | 693 | then $Tuple2(getIntegerValue(this, (pool + kPoolInterestLoan)), (totalAmountLoan + stakedAmount)) | |
694 | 694 | else $Tuple2(getIntegerValue(this, (pool + kPoolInterestNoLoan)), totalAmountLoan) | |
695 | 695 | let curPoolInterest = $t01984720085._1 | |
696 | 696 | let totalStakedWithLoan = $t01984720085._2 | |
697 | 697 | [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))] | |
698 | 698 | } | |
699 | 699 | ||
700 | 700 | ||
701 | 701 | func exchangeKeeper (toToken,pmtAmount,pmtAsset,amountsIn,addresses,assetsToReceive,estReceived,slippageTolerance,minReceived,options) = { | |
702 | 702 | let tokenBalanceBefore = accountBalance(assetIdFromStr(toToken)) | |
703 | 703 | if ((tokenBalanceBefore == tokenBalanceBefore)) | |
704 | 704 | then { | |
705 | 705 | let inv = invoke(exContract, "swap", [amountsIn, addresses, assetsToReceive, estReceived, slippageTolerance, minReceived, options], [AttachedPayment(pmtAsset, pmtAmount)]) | |
706 | 706 | if ((inv == inv)) | |
707 | 707 | then (accountBalance(assetIdFromStr(toToken)) - tokenBalanceBefore) | |
708 | 708 | else throw("Strict value is not equal to itself.") | |
709 | 709 | } | |
710 | 710 | else throw("Strict value is not equal to itself.") | |
711 | 711 | } | |
712 | 712 | ||
713 | 713 | ||
714 | 714 | func exchangePuzzle (toToken,pmtAmount,pmtAsset,routesStr,minToReceive,options) = { | |
715 | 715 | let tokenBalanceBefore = accountBalance(assetIdFromStr(toToken)) | |
716 | 716 | if ((tokenBalanceBefore == tokenBalanceBefore)) | |
717 | 717 | then { | |
718 | 718 | let inv = invoke(exContract, "puzzleSwap", [routesStr, minToReceive, options], [AttachedPayment(pmtAsset, pmtAmount)]) | |
719 | 719 | if ((inv == inv)) | |
720 | 720 | then (accountBalance(assetIdFromStr(toToken)) - tokenBalanceBefore) | |
721 | 721 | else throw("Strict value is not equal to itself.") | |
722 | 722 | } | |
723 | 723 | else throw("Strict value is not equal to itself.") | |
724 | 724 | } | |
725 | 725 | ||
726 | 726 | ||
727 | 727 | func exchangeSwopFi (toToken,pmtAmount,pmtAsset,exchangers,exchangersType,args1,args2,routingAssetsKeys,minAmountToReceive,options) = { | |
728 | 728 | let tokenBalanceBefore = accountBalance(assetIdFromStr(toToken)) | |
729 | 729 | if ((tokenBalanceBefore == tokenBalanceBefore)) | |
730 | 730 | then { | |
731 | 731 | let inv = invoke(exContract, "swopfiSwap", [exchangers, exchangersType, args1, args2, routingAssetsKeys, minAmountToReceive, options], [AttachedPayment(pmtAsset, pmtAmount)]) | |
732 | 732 | if ((inv == inv)) | |
733 | 733 | then (accountBalance(assetIdFromStr(toToken)) - tokenBalanceBefore) | |
734 | 734 | else throw("Strict value is not equal to itself.") | |
735 | 735 | } | |
736 | 736 | else throw("Strict value is not equal to itself.") | |
737 | 737 | } | |
738 | 738 | ||
739 | 739 | ||
740 | 740 | func capitalize (pool,pType,tokenId,tokenAmount) = { | |
741 | 741 | let poolAddr = Address(fromBase58String(pool)) | |
742 | 742 | let $t02243622502 = getPoolData(poolAddr, pType) | |
743 | 743 | let AId = $t02243622502._1 | |
744 | 744 | let BId = $t02243622502._2 | |
745 | 745 | let balA = $t02243622502._3 | |
746 | 746 | let balB = $t02243622502._4 | |
747 | 747 | let shareId = $t02243622502._5 | |
748 | 748 | if (if ((tokenId != AId)) | |
749 | 749 | then (tokenId != BId) | |
750 | 750 | else false) | |
751 | 751 | then throw("Wrong asset") | |
752 | 752 | else { | |
753 | 753 | let $t02258722667 = if ((tokenId == AId)) | |
754 | 754 | then $Tuple2(tokenAmount, 0) | |
755 | 755 | else $Tuple2(0, tokenAmount) | |
756 | 756 | let pmtA = $t02258722667._1 | |
757 | 757 | let pmtB = $t02258722667._2 | |
758 | 758 | let $t02267022774 = replenishByType(pType, pool, NO_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId) | |
759 | 759 | let stakedAmount = $t02267022774._1 | |
760 | 760 | let nf = $t02267022774._2 | |
761 | 761 | let curPoolInterestLoan = valueOrElse(getInteger(this, (pool + kPoolInterestLoan)), 0) | |
762 | 762 | let curPoolInterestNoLoan = valueOrElse(getInteger(this, (pool + kPoolInterestNoLoan)), 0) | |
763 | 763 | let totalShareAmount = getPoolTotalShare(pool) | |
764 | 764 | let totalShareAmountWithLoan = getPoolTotalShareWithLoan(pool) | |
765 | 765 | let loanPercent = fraction(totalShareAmountWithLoan, SCALE8, totalShareAmount) | |
766 | 766 | let stakedLoan = fraction(stakedAmount, loanPercent, SCALE8) | |
767 | 767 | let stakedNoLoan = (stakedAmount - stakedLoan) | |
768 | 768 | let newInterestLoan = if ((totalShareAmountWithLoan > 0)) | |
769 | 769 | then (curPoolInterestLoan + fraction(stakedLoan, SCALE10, totalShareAmountWithLoan)) | |
770 | 770 | else 0 | |
771 | 771 | let newInterestNoLoan = if (((totalShareAmount - totalShareAmountWithLoan) > 0)) | |
772 | 772 | then (curPoolInterestNoLoan + fraction(stakedNoLoan, SCALE10, (totalShareAmount - totalShareAmountWithLoan))) | |
773 | 773 | else 0 | |
774 | 774 | let axlyFeeLoan = fraction(stakedLoan, getAxlyFee(pool, CAP_FEE_LOAN), FEE_SCALE6) | |
775 | 775 | let axlyFeeNoLoan = fraction(stakedNoLoan, getAxlyFee(pool, CAP_FEE_NO_LOAN), FEE_SCALE6) | |
776 | 776 | let axlyFee = unstakeLP(pool, pType, shareId, (axlyFeeLoan + axlyFeeNoLoan)) | |
777 | 777 | if ((axlyFee == axlyFee)) | |
778 | 778 | then ([IntegerEntry((pool + kPoolInterestLoan), newInterestLoan), IntegerEntry((pool + kPoolInterestNoLoan), newInterestNoLoan), IntegerEntry((pool + kPoolTotal), ((totalShareAmount + stakedAmount) - axlyFee)), IntegerEntry((pool + kPoolTotalLoan), ((totalShareAmountWithLoan + stakedLoan) - axlyFeeLoan)), ScriptTransfer(moneyBox, (axlyFeeLoan + axlyFeeNoLoan), fromBase58String(shareId))] ++ getCursEntries(AId, BId, shareId, nil)) | |
779 | 779 | else throw("Strict value is not equal to itself.") | |
780 | 780 | } | |
781 | 781 | } | |
782 | 782 | ||
783 | 783 | ||
784 | 784 | func withdrawAmountCalc (pool,userCanWithdraw,debt,borrowAsset,stopLossFee) = { | |
785 | 785 | let poolAddr = Address(fromBase58String(pool)) | |
786 | 786 | let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Unknown pool") | |
787 | 787 | let $t02456424640 = getPoolData(poolAddr, pType) | |
788 | 788 | let assetIdA = $t02456424640._1 | |
789 | 789 | let assetIdB = $t02456424640._2 | |
790 | 790 | let balA = $t02456424640._3 | |
791 | 791 | let balB = $t02456424640._4 | |
792 | 792 | let shareId = $t02456424640._5 | |
793 | 793 | let cBalABefore = accountBalance(assetIdFromStr(assetIdA)) | |
794 | 794 | if ((cBalABefore == cBalABefore)) | |
795 | 795 | then { | |
796 | 796 | let cBalBBefore = accountBalance(assetIdFromStr(assetIdB)) | |
797 | 797 | if ((cBalBBefore == cBalBBefore)) | |
798 | 798 | then { | |
799 | 799 | let inv = if ((pType == SF_POOL)) | |
800 | 800 | then { | |
801 | 801 | let inv = unstakeLP(pool, pType, shareId, stopLossFee) | |
802 | 802 | if ((inv == inv)) | |
803 | 803 | then invoke(poolAddr, "callFunction", ["withdraw", [toString(userCanWithdraw)]], nil) | |
804 | 804 | else throw("Strict value is not equal to itself.") | |
805 | 805 | } | |
806 | 806 | else if ((pType == WX_POOL)) | |
807 | 807 | then { | |
808 | 808 | let inv = unstakeLP(pool, pType, shareId, (userCanWithdraw + stopLossFee)) | |
809 | 809 | if ((inv == inv)) | |
810 | 810 | then invoke(poolAddr, "get", nil, [AttachedPayment(assetIdFromStr(shareId), userCanWithdraw)]) | |
811 | 811 | else throw("Strict value is not equal to itself.") | |
812 | 812 | } | |
813 | 813 | else unknownPoolType() | |
814 | 814 | if ((inv == inv)) | |
815 | 815 | then { | |
816 | 816 | let cBalAAfter = accountBalance(assetIdFromStr(assetIdA)) | |
817 | 817 | let cBalBAfter = accountBalance(assetIdFromStr(assetIdB)) | |
818 | 818 | let $t02533325422 = $Tuple2((cBalAAfter - cBalABefore), (cBalBAfter - cBalBBefore)) | |
819 | 819 | let tokensAmountA = $t02533325422._1 | |
820 | 820 | let tokensAmountB = $t02533325422._2 | |
821 | 821 | let $t02542526279 = if ((debt > 0)) | |
822 | 822 | then { | |
823 | 823 | let amountToGetEx = if (if ((borrowAsset == assetIdA)) | |
824 | 824 | then (debt > tokensAmountA) | |
825 | 825 | else false) | |
826 | 826 | then (debt - tokensAmountA) | |
827 | 827 | else if (if ((borrowAsset == assetIdB)) | |
828 | 828 | then (debt > tokensAmountB) | |
829 | 829 | else false) | |
830 | 830 | then (debt - tokensAmountB) | |
831 | 831 | else 0 | |
832 | 832 | let exInv = if ((amountToGetEx > 0)) | |
833 | 833 | then exchangeDirectly(pType, pool, assetIdA, assetIdB, (balA - tokensAmountA), (balB - tokensAmountB), amountToGetEx, borrowAsset) | |
834 | 834 | else nil | |
835 | 835 | if ((exInv == exInv)) | |
836 | 836 | then { | |
837 | 837 | let cBalAAfterRepay = accountBalance(assetIdFromStr(assetIdA)) | |
838 | 838 | let cBalBAfterRepay = accountBalance(assetIdFromStr(assetIdB)) | |
839 | 839 | if ((borrowAsset == assetIdA)) | |
840 | 840 | then $Tuple2(((cBalAAfterRepay - cBalABefore) - debt), (cBalBAfterRepay - cBalBBefore)) | |
841 | 841 | else $Tuple2((cBalAAfterRepay - cBalABefore), ((cBalBAfterRepay - cBalBBefore) - debt)) | |
842 | 842 | } | |
843 | 843 | else throw("Strict value is not equal to itself.") | |
844 | 844 | } | |
845 | 845 | else $Tuple2(tokensAmountA, tokensAmountB) | |
846 | 846 | let toUserA = $t02542526279._1 | |
847 | 847 | let toUserB = $t02542526279._2 | |
848 | 848 | $Tuple5(toUserA, assetIdA, toUserB, assetIdB, shareId) | |
849 | 849 | } | |
850 | 850 | else throw("Strict value is not equal to itself.") | |
851 | 851 | } | |
852 | 852 | else throw("Strict value is not equal to itself.") | |
853 | 853 | } | |
854 | 854 | else throw("Strict value is not equal to itself.") | |
855 | 855 | } | |
856 | 856 | ||
857 | 857 | ||
858 | 858 | func userCanWithdrawShareCalc (user,pool,posId,borrowed) = { | |
859 | 859 | let pAmount = valueOrErrorMessage(getInteger(this, (((((pool + "_") + user) + "_") + posId) + kUserPosition)), "Unknown position") | |
860 | 860 | let userInterest = getIntegerValue(this, (((((pool + "_") + user) + "_") + posId) + kUserPositionInterest)) | |
861 | 861 | let poolInterest = if (borrowed) | |
862 | 862 | then getIntegerValue(this, (pool + kPoolInterestLoan)) | |
863 | 863 | else getIntegerValue(this, (pool + kPoolInterestNoLoan)) | |
864 | 864 | (pAmount + fraction(pAmount, (poolInterest - userInterest), SCALE10)) | |
865 | 865 | } | |
866 | 866 | ||
867 | 867 | ||
868 | 868 | func withdrawToUser (user,pool,posId,stopLoss) = { | |
869 | 869 | let pAmount = valueOrErrorMessage(getInteger(this, (((((pool + "_") + user) + "_") + posId) + kUserPosition)), "Unknown position") | |
870 | 870 | let borrowAmount = valueOrElse(getInteger(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAmount)), 0) | |
871 | 871 | let userCanWithdraw = userCanWithdrawShareCalc(user, pool, posId, (borrowAmount > 0)) | |
872 | 872 | let poolTotalShare = getPoolTotalShare(pool) | |
873 | 873 | let userAddr = Address(fromBase58String(user)) | |
874 | 874 | let borrowAsset = valueOrElse(getString(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAssetId)), "") | |
875 | 875 | let $t02747727711 = if ((borrowAmount > 0)) | |
876 | 876 | then $Tuple2({ | |
877 | 877 | let @ = invoke(getLendSrvAddr(), "getAssetDebt", [false, ((user + "_") + posId), borrowAsset], nil) | |
878 | 878 | if ($isInstanceOf(@, "Int")) | |
879 | 879 | then @ | |
880 | 880 | else throw(($getType(@) + " couldn't be cast to Int")) | |
881 | 881 | }, STOPLOSS_LOAN) | |
882 | 882 | else $Tuple2(0, STOPLOSS_FEE_NO_LOAN) | |
883 | 883 | let debt = $t02747727711._1 | |
884 | 884 | let feeType = $t02747727711._2 | |
885 | 885 | let stopLossFee = if (stopLoss) | |
886 | 886 | then fraction(userCanWithdraw, getAxlyFee(pool, feeType), FEE_SCALE6) | |
887 | 887 | else 0 | |
888 | 888 | let $t02782827984 = withdrawAmountCalc(pool, (userCanWithdraw - stopLossFee), debt, borrowAsset, stopLossFee) | |
889 | 889 | if (($t02782827984 == $t02782827984)) | |
890 | 890 | then { | |
891 | 891 | let shareId = $t02782827984._5 | |
892 | 892 | let assetIdB = $t02782827984._4 | |
893 | 893 | let toUserAmountB = $t02782827984._3 | |
894 | 894 | let assetIdA = $t02782827984._2 | |
895 | 895 | let toUserAmountA = $t02782827984._1 | |
896 | 896 | let closeDbtInv = if ((debt > 0)) | |
897 | 897 | then invoke(getLendSrvAddr(), "repayFor", [((user + "_") + posId)], [AttachedPayment(assetIdFromStr(borrowAsset), debt)]) | |
898 | 898 | else 0 | |
899 | 899 | if ((closeDbtInv == closeDbtInv)) | |
900 | 900 | then ([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, toUserAmountA, assetIdFromStr(assetIdA)), ScriptTransfer(userAddr, toUserAmountB, assetIdFromStr(assetIdB)), ScriptTransfer(moneyBox, stopLossFee, fromBase58String(shareId))] ++ getCursEntries(assetIdA, assetIdB, shareId, nil)) | |
901 | 901 | else throw("Strict value is not equal to itself.") | |
902 | 902 | } | |
903 | 903 | else throw("Strict value is not equal to itself.") | |
904 | 904 | } | |
905 | 905 | ||
906 | 906 | ||
907 | 907 | func parseRequest (requestId) = { | |
908 | 908 | let request = split(valueOrErrorMessage(getString(this, (requestId + kRequestId)), ("No request with id " + requestId)), ",") | |
909 | 909 | let user = request[0] | |
910 | 910 | let pool = request[1] | |
911 | 911 | let pmtA = parseIntValue(request[2]) | |
912 | 912 | let AId = request[3] | |
913 | 913 | let pmtB = parseIntValue(request[4]) | |
914 | 914 | let BId = request[5] | |
915 | 915 | let balA = parseIntValue(request[6]) | |
916 | 916 | let balB = parseIntValue(request[7]) | |
917 | 917 | let shareId = request[8] | |
918 | 918 | let bwAsset = request[9] | |
919 | 919 | let bwAmount = parseIntValue(request[10]) | |
920 | 920 | $Tuple11(user, pool, pmtA, AId, pmtB, BId, balA, balB, shareId, bwAsset, bwAmount) | |
921 | 921 | } | |
922 | 922 | ||
923 | 923 | ||
924 | 924 | func calcBorrowAmount (pmtA,pmtB,aId,bId,leverage,borrowId) = if (if ((borrowId != aId)) | |
925 | 925 | then (borrowId != bId) | |
926 | 926 | else false) | |
927 | 927 | then throw("Wrong borrow asset") | |
928 | 928 | else { | |
929 | 929 | let dPriceA = getIntegerValue(priceOracleAddr, (aId + kPriceInOracle)) | |
930 | 930 | let dPriceB = getIntegerValue(priceOracleAddr, (bId + kPriceInOracle)) | |
931 | 931 | let decPrA = pow(10, 0, getAssetDecimals(aId), 0, 0, DOWN) | |
932 | 932 | let decPrB = pow(10, 0, getAssetDecimals(bId), 0, 0, DOWN) | |
933 | 933 | let paydInDollar = (fraction(dPriceA, pmtA, decPrA) + fraction(dPriceB, pmtB, decPrB)) | |
934 | 934 | let $t02998930086 = if ((borrowId == aId)) | |
935 | 935 | then $Tuple2(dPriceA, decPrA) | |
936 | 936 | else $Tuple2(dPriceB, decPrB) | |
937 | 937 | let borrowPrice = $t02998930086._1 | |
938 | 938 | let borrowDecPr = $t02998930086._2 | |
939 | 939 | fraction(fraction(paydInDollar, (leverage - 100), 100), borrowDecPr, borrowPrice) | |
940 | 940 | } | |
941 | 941 | ||
942 | 942 | ||
943 | 943 | func parseReplenishPmts (pmts,AId,BId) = if ((size(pmts) == 2)) | |
944 | 944 | then if ((assetIdToStr(pmts[0].assetId) != AId)) | |
945 | 945 | then throw("Wrong payment asset A") | |
946 | 946 | else if ((assetIdToStr(pmts[1].assetId) != BId)) | |
947 | 947 | then throw("Wrong payment asset B") | |
948 | 948 | else $Tuple2(pmts[0].amount, pmts[1].amount) | |
949 | 949 | else if ((size(pmts) == 1)) | |
950 | 950 | then if ((assetIdToStr(pmts[0].assetId) == AId)) | |
951 | 951 | then $Tuple2(pmts[0].amount, 0) | |
952 | 952 | else if ((assetIdToStr(pmts[0].assetId) == BId)) | |
953 | 953 | then $Tuple2(0, pmts[0].amount) | |
954 | 954 | else throw("Wrong payment") | |
955 | 955 | else throw("One or two payments expected") | |
956 | 956 | ||
957 | 957 | ||
958 | 958 | func calcPriceImpact (balA,balB,newBalA,newBalB) = { | |
959 | 959 | let pri = ((SCALE8 - fraction(fraction(balB, SCALE8, balA), SCALE8, fraction(newBalB, SCALE8, newBalA))) * 100) | |
960 | 960 | if ((0 > pri)) | |
961 | 961 | then (pri * -1) | |
962 | 962 | else pri | |
963 | 963 | } | |
964 | 964 | ||
965 | 965 | ||
966 | 966 | func claimAndCheckAmntEx (pool,pType,claim,amountToExchange,change) = { | |
967 | 967 | let $t03110031387 = if (claim) | |
968 | 968 | then claimFarmed(pType, pool) | |
969 | 969 | else { | |
970 | 970 | let claimedAsset = if ((pType == SF_POOL)) | |
971 | 971 | then SWOPID | |
972 | 972 | else if ((pType == WX_POOL)) | |
973 | 973 | then WXID | |
974 | 974 | else unknownPoolType() | |
975 | 975 | $Tuple2(amountToExchange, claimedAsset) | |
976 | 976 | } | |
977 | 977 | let claimAmount = $t03110031387._1 | |
978 | 978 | let claimAsset = $t03110031387._2 | |
979 | 979 | if ((amountToExchange > (claimAmount + change))) | |
980 | 980 | then throw("To big amount to exchange") | |
981 | 981 | else $Tuple2(claimAmount, claimAsset) | |
982 | 982 | } | |
983 | 983 | ||
984 | 984 | ||
985 | 985 | @Callable(i) | |
986 | 986 | func getShareAssetPriceREADONLY (shareId) = { | |
987 | 987 | let sharePrices = getSharePrice(shareId) | |
988 | 988 | $Tuple2(nil, sharePrices) | |
989 | 989 | } | |
990 | 990 | ||
991 | 991 | ||
992 | 992 | ||
993 | 993 | @Callable(i) | |
994 | 994 | func getUserPositionShareAmountREADONLY (user,posNum) = { | |
995 | 995 | let pool = valueOrErrorMessage(getString(this, (((user + "_") + posNum) + kUserPositionPool)), "Unknown position") | |
996 | 996 | let borrowAmount = getIntegerValue(this, (((((pool + "_") + user) + "_") + posNum) + kUserBorrowAmount)) | |
997 | 997 | let userCanWithdraw = userCanWithdrawShareCalc(user, pool, posNum, (borrowAmount > 0)) | |
998 | 998 | $Tuple2(nil, userCanWithdraw) | |
999 | 999 | } | |
1000 | 1000 | ||
1001 | 1001 | ||
1002 | 1002 | ||
1003 | 1003 | @Callable(i) | |
1004 | 1004 | func getUserPositionInDollarsREADONLY (user,pools,posNum) = { | |
1005 | 1005 | func userPos (a,pool) = { | |
1006 | 1006 | let $t03228332317 = a | |
1007 | 1007 | let totalPos = $t03228332317._1 | |
1008 | 1008 | let posDebt = $t03228332317._2 | |
1009 | 1009 | let index = $t03228332317._3 | |
1010 | 1010 | let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited") | |
1011 | 1011 | let $t03240932499 = getPoolData(Address(fromBase58String(pool)), pType) | |
1012 | 1012 | let AId = $t03240932499._1 | |
1013 | 1013 | let BId = $t03240932499._2 | |
1014 | 1014 | let balA = $t03240932499._3 | |
1015 | 1015 | let balB = $t03240932499._4 | |
1016 | 1016 | let shareId = $t03240932499._5 | |
1017 | 1017 | let borrowAmount = valueOrElse(getInteger(this, (((((pool + "_") + user) + "_") + posNum[index]) + kUserBorrowAmount)), 0) | |
1018 | 1018 | if (!(isDefined(getInteger(this, (((((pool + "_") + user) + "_") + posNum[index]) + kUserPosition))))) | |
1019 | 1019 | then $Tuple3((totalPos :+ 0), (posDebt :+ 0), (index + 1)) | |
1020 | 1020 | else { | |
1021 | 1021 | let userCanWithdraw = userCanWithdrawShareCalc(user, pool, posNum[index], (borrowAmount > 0)) | |
1022 | 1022 | let sharePrices = getSharePrice(shareId) | |
1023 | 1023 | let decPrShare = pow(10, 0, getAssetDecimals(shareId), 0, 0, DOWN) | |
1024 | 1024 | let shareD = fraction(userCanWithdraw, sharePrices, decPrShare) | |
1025 | 1025 | if ((borrowAmount == 0)) | |
1026 | 1026 | then $Tuple3((totalPos :+ shareD), (posDebt :+ 0), (index + 1)) | |
1027 | 1027 | else { | |
1028 | 1028 | let borrowAsset = getStringValue(this, (((((pool + "_") + user) + "_") + posNum[index]) + kUserBorrowAssetId)) | |
1029 | 1029 | let debt = { | |
1030 | 1030 | let @ = invoke(getLendSrvAddr(), "getAssetDebt", [false, ((user + "_") + posNum[index]), borrowAsset], nil) | |
1031 | 1031 | if ($isInstanceOf(@, "Int")) | |
1032 | 1032 | then @ | |
1033 | 1033 | else throw(($getType(@) + " couldn't be cast to Int")) | |
1034 | 1034 | } | |
1035 | 1035 | let borrowAssetPrice = getIntegerValue(priceOracleAddr, (borrowAsset + kPriceInOracle)) | |
1036 | 1036 | let decPrBorrowId = pow(10, 0, getAssetDecimals(borrowAsset), 0, 0, DOWN) | |
1037 | 1037 | let debtD = fraction(debt, borrowAssetPrice, decPrBorrowId) | |
1038 | 1038 | $Tuple3((totalPos :+ shareD), (posDebt :+ debtD), (index + 1)) | |
1039 | 1039 | } | |
1040 | 1040 | } | |
1041 | 1041 | } | |
1042 | 1042 | ||
1043 | 1043 | let $t03366333718 = { | |
1044 | 1044 | let $l = pools | |
1045 | 1045 | let $s = size($l) | |
1046 | 1046 | let $acc0 = $Tuple3(nil, nil, 0) | |
1047 | 1047 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1048 | 1048 | then $a | |
1049 | 1049 | else userPos($a, $l[$i]) | |
1050 | 1050 | ||
1051 | 1051 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1052 | 1052 | then $a | |
1053 | 1053 | else throw("List size exceeds 20") | |
1054 | 1054 | ||
1055 | 1055 | $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) | |
1056 | 1056 | } | |
1057 | 1057 | let pos = $t03366333718._1 | |
1058 | 1058 | let debt = $t03366333718._2 | |
1059 | 1059 | $Tuple2(nil, $Tuple2(pos, debt)) | |
1060 | 1060 | } | |
1061 | 1061 | ||
1062 | 1062 | ||
1063 | 1063 | ||
1064 | 1064 | @Callable(i) | |
1065 | 1065 | func replenish (pool,leverage,borrowId) = valueOrElse(isActiveForUsers(), if (if ((100 > leverage)) | |
1066 | 1066 | then true | |
1067 | 1067 | else (leverage > 300)) | |
1068 | 1068 | then throw("Leverage can't be <100 and >300") | |
1069 | 1069 | else if (if (!(getBooleanValue(this, (pool + kPoolCanBorrow)))) | |
1070 | 1070 | then (leverage > 100) | |
1071 | 1071 | else false) | |
1072 | 1072 | then throw("You can't borrow in this pool") | |
1073 | 1073 | else { | |
1074 | 1074 | let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited") | |
1075 | 1075 | let $t03418934279 = getPoolData(Address(fromBase58String(pool)), pType) | |
1076 | 1076 | let AId = $t03418934279._1 | |
1077 | 1077 | let BId = $t03418934279._2 | |
1078 | 1078 | let balA = $t03418934279._3 | |
1079 | 1079 | let balB = $t03418934279._4 | |
1080 | 1080 | let shareId = $t03418934279._5 | |
1081 | 1081 | if (if ((borrowId != AId)) | |
1082 | 1082 | then (borrowId != BId) | |
1083 | 1083 | else false) | |
1084 | 1084 | then throw("Wrong borrow asset") | |
1085 | 1085 | else { | |
1086 | 1086 | let $t03436034419 = parseReplenishPmts(i.payments, AId, BId) | |
1087 | 1087 | let pmtA = $t03436034419._1 | |
1088 | 1088 | let pmtB = $t03436034419._2 | |
1089 | 1089 | let user = toString(i.caller) | |
1090 | 1090 | let newPosNum = getNewUserPositionNumber(user) | |
1091 | 1091 | if ((leverage > 100)) | |
1092 | 1092 | then { | |
1093 | 1093 | let borrowAmount = calcBorrowAmount(pmtA, pmtB, AId, BId, leverage, borrowId) | |
1094 | 1094 | let request = makeString([user, pool, toString(pmtA), AId, toString(pmtB), BId, toString(balA), toString(balB), shareId, borrowId, toString(borrowAmount)], ",") | |
1095 | 1095 | let newRequestId = { | |
1096 | 1096 | let @ = invoke(this, "createNewRequest", [request], nil) | |
1097 | 1097 | if ($isInstanceOf(@, "Int")) | |
1098 | 1098 | then @ | |
1099 | 1099 | else throw(($getType(@) + " couldn't be cast to Int")) | |
1100 | 1100 | } | |
1101 | 1101 | if ((newRequestId == newRequestId)) | |
1102 | 1102 | then { | |
1103 | 1103 | let args = [((user + "_") + toString(newPosNum)), shareId, borrowId, borrowAmount, toString(this), "replenishFromLand", toString(valueOrErrorMessage(newRequestId, "Can't create new request"))] | |
1104 | 1104 | let inv = reentrantInvoke(getLendSrvAddr(), "flashPosition", args, nil) | |
1105 | 1105 | if ((inv == inv)) | |
1106 | 1106 | then { | |
1107 | 1107 | let userStaked = getIntegerValue(this, (((((pool + "_") + user) + "_") + toString(newPosNum)) + kUserPosition)) | |
1108 | 1108 | let $t03540835502 = getPoolBalances(Address(fromBase58String(pool)), pType, AId, BId) | |
1109 | 1109 | if (($t03540835502 == $t03540835502)) | |
1110 | 1110 | then { | |
1111 | 1111 | let newBalB = $t03540835502._2 | |
1112 | 1112 | let newBalA = $t03540835502._1 | |
1113 | 1113 | let prImpact = calcPriceImpact(balA, balB, newBalA, newBalB) | |
1114 | 1114 | let $t03557235687 = calcWithdrawLPFromPoolVirt(Address(fromBase58String(pool)), pType, shareId, userStaked) | |
1115 | 1115 | let wAmountA = $t03557235687._1 | |
1116 | 1116 | let wAmountB = $t03557235687._2 | |
1117 | 1117 | $Tuple2(nil, [prImpact, wAmountA, wAmountB]) | |
1118 | 1118 | } | |
1119 | 1119 | else throw("Strict value is not equal to itself.") | |
1120 | 1120 | } | |
1121 | 1121 | else throw("Strict value is not equal to itself.") | |
1122 | 1122 | } | |
1123 | 1123 | else throw("Strict value is not equal to itself.") | |
1124 | 1124 | } | |
1125 | 1125 | else { | |
1126 | 1126 | let $t03574035855 = replenishByType(pType, pool, NO_LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId) | |
1127 | 1127 | if (($t03574035855 == $t03574035855)) | |
1128 | 1128 | then { | |
1129 | 1129 | let axlyFee = $t03574035855._2 | |
1130 | 1130 | let userStaked = $t03574035855._1 | |
1131 | 1131 | let $t03586135955 = getPoolBalances(Address(fromBase58String(pool)), pType, AId, BId) | |
1132 | 1132 | if (($t03586135955 == $t03586135955)) | |
1133 | 1133 | then { | |
1134 | 1134 | let newBalB = $t03586135955._2 | |
1135 | 1135 | let newBalA = $t03586135955._1 | |
1136 | 1136 | let prImpact = calcPriceImpact(balA, balB, newBalA, newBalB) | |
1137 | 1137 | let $t03602536140 = calcWithdrawLPFromPoolVirt(Address(fromBase58String(pool)), pType, shareId, userStaked) | |
1138 | 1138 | let wAmountA = $t03602536140._1 | |
1139 | 1139 | let wAmountB = $t03602536140._2 | |
1140 | 1140 | $Tuple2((replenishEntries(pool, user, userStaked, axlyFee, newPosNum, shareId, pType, false) ++ getCursEntries(AId, BId, shareId, [toString(wAmountA), toString(wAmountB)])), [prImpact, wAmountA, wAmountB]) | |
1141 | 1141 | } | |
1142 | 1142 | else throw("Strict value is not equal to itself.") | |
1143 | 1143 | } | |
1144 | 1144 | else throw("Strict value is not equal to itself.") | |
1145 | 1145 | } | |
1146 | 1146 | } | |
1147 | 1147 | }) | |
1148 | 1148 | ||
1149 | 1149 | ||
1150 | 1150 | ||
1151 | 1151 | @Callable(i) | |
1152 | 1152 | func withdraw (pool,posId) = valueOrElse(isActiveForUsers(), withdrawToUser(toString(i.caller), pool, toString(posId), false)) | |
1153 | 1153 | ||
1154 | 1154 | ||
1155 | 1155 | ||
1156 | 1156 | @Callable(i) | |
1157 | 1157 | func createUpdateStopLoss (posId,poolId,assetId,price) = valueOrElse(isActiveForUsers(), { | |
1158 | 1158 | let tokenOraclePrice = getIntegerValue(priceOracleAddr, (assetId + kPriceInOracle)) | |
1159 | 1159 | if (!(isDefined(getInteger(this, (((((poolId + "_") + toString(i.caller)) + "_") + toString(posId)) + kUserPosition))))) | |
1160 | 1160 | then throw("There are no user position") | |
1161 | 1161 | else if ((0 >= price)) | |
1162 | 1162 | then throw("Price must be greater than 0") | |
1163 | 1163 | else if ((price > tokenOraclePrice)) | |
1164 | 1164 | then throw("Price must be less than current token price") | |
1165 | 1165 | else [IntegerEntry((((((((toString(i.caller) + "_") + toString(posId)) + "_") + poolId) + "_") + assetId) + kUserStopLoss), price)] | |
1166 | 1166 | }) | |
1167 | 1167 | ||
1168 | 1168 | ||
1169 | 1169 | ||
1170 | 1170 | @Callable(i) | |
1171 | 1171 | func deleteStopLoss (posId,poolId,assetId) = valueOrElse(isActiveForUsers(), if (!(isDefined(getInteger(this, (((((((toString(i.caller) + "_") + toString(posId)) + "_") + poolId) + "_") + assetId) + kUserStopLoss))))) | |
1172 | 1172 | then throw("No entry") | |
1173 | 1173 | else [DeleteEntry((((((((toString(i.caller) + "_") + toString(posId)) + "_") + poolId) + "_") + assetId) + kUserStopLoss))]) | |
1174 | 1174 | ||
1175 | 1175 | ||
1176 | 1176 | ||
1177 | 1177 | @Callable(i) | |
1178 | 1178 | func init (moneyBoxAddr,sfFarmingAddr,lendAddr,priceOracleAddr,keeperExContract,wxSwapContract,swopAssetId,wxAssetId,adminPubKey) = if ((toString(i.caller) != "3PG42y6FgT8zM3uX5tEDxJF5rqX8AKGJRAR")) | |
1179 | 1179 | then throw("Only admin can call this function") | |
1180 | 1180 | else if (isDefined(getString(kAdminCallPK))) | |
1181 | 1181 | then throw("Already inited") | |
1182 | 1182 | 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(kAdminCallPK, adminPubKey)] | |
1183 | 1183 | ||
1184 | 1184 | ||
1185 | 1185 | ||
1186 | 1186 | @Callable(i) | |
1187 | 1187 | func createNewRequest (params) = valueOrElse(isSelfCall(i), { | |
1188 | 1188 | let newRequestId = (valueOrElse(getInteger(this, kRequestIter), 0) + 1) | |
1189 | 1189 | $Tuple2([StringEntry((toString(newRequestId) + kRequestId), params), IntegerEntry(kRequestIter, newRequestId)], newRequestId) | |
1190 | 1190 | }) | |
1191 | 1191 | ||
1192 | 1192 | ||
1193 | 1193 | ||
1194 | 1194 | @Callable(i) | |
1195 | 1195 | func replenishFromLand (requestId) = valueOrElse(isActive(), valueOrElse(isLandCall(i), { | |
1196 | 1196 | let $t03890939013 = parseRequest(requestId) | |
1197 | 1197 | let user = $t03890939013._1 | |
1198 | 1198 | let pool = $t03890939013._2 | |
1199 | 1199 | let pmtA = $t03890939013._3 | |
1200 | 1200 | let AId = $t03890939013._4 | |
1201 | 1201 | let pmtB = $t03890939013._5 | |
1202 | 1202 | let BId = $t03890939013._6 | |
1203 | 1203 | let balA = $t03890939013._7 | |
1204 | 1204 | let balB = $t03890939013._8 | |
1205 | 1205 | let shareId = $t03890939013._9 | |
1206 | 1206 | let bwAsset = $t03890939013._10 | |
1207 | 1207 | let bwAmount = $t03890939013._11 | |
1208 | 1208 | if ((size(i.payments) != 1)) | |
1209 | 1209 | then throw("Wrong payment size") | |
1210 | 1210 | else if (if ((assetIdToStr(i.payments[0].assetId) != bwAsset)) | |
1211 | 1211 | then true | |
1212 | 1212 | else (i.payments[0].amount != bwAmount)) | |
1213 | 1213 | then throw("Wrong payment") | |
1214 | 1214 | else { | |
1215 | 1215 | let $t03920339303 = if ((AId == bwAsset)) | |
1216 | 1216 | then $Tuple2((pmtA + bwAmount), pmtB) | |
1217 | 1217 | else $Tuple2(pmtA, (pmtB + bwAmount)) | |
1218 | 1218 | let pmtAllA = $t03920339303._1 | |
1219 | 1219 | let pmtAllB = $t03920339303._2 | |
1220 | 1220 | let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Unknown pool") | |
1221 | 1221 | let $t03938539500 = replenishByType(pType, pool, LOAN_FEE, pmtAllA, AId, pmtAllB, BId, balA, balB, shareId) | |
1222 | 1222 | let userStaked = $t03938539500._1 | |
1223 | 1223 | let axlyFee = $t03938539500._2 | |
1224 | 1224 | let posNum = getNewUserPositionNumber(user) | |
1225 | 1225 | let borrowEntries = [IntegerEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserBorrowAmount), bwAmount), StringEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserBorrowAssetId), bwAsset)] | |
1226 | 1226 | let entries = replenishEntries(pool, user, userStaked, axlyFee, posNum, shareId, pType, true) | |
1227 | 1227 | let $t03986039975 = calcWithdrawLPFromPoolVirt(Address(fromBase58String(pool)), pType, shareId, userStaked) | |
1228 | 1228 | let wAmountA = $t03986039975._1 | |
1229 | 1229 | let wAmountB = $t03986039975._2 | |
1230 | 1230 | $Tuple2((((entries ++ getCursEntries(AId, BId, shareId, [toString(wAmountA), toString(wAmountB)])) ++ borrowEntries) :+ DeleteEntry((requestId + kRequestId))), userStaked) | |
1231 | 1231 | } | |
1232 | 1232 | })) | |
1233 | 1233 | ||
1234 | 1234 | ||
1235 | 1235 | ||
1236 | 1236 | @Callable(i) | |
1237 | 1237 | func liquidate (user,posId,liquidateAmount) = valueOrElse(isActive(), valueOrElse(isLandCall(i), { | |
1238 | 1238 | let pool = valueOrErrorMessage(getString(this, (((user + "_") + posId) + kUserPositionPool)), "no position") | |
1239 | 1239 | let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited") | |
1240 | 1240 | let $t04049640586 = getPoolData(Address(fromBase58String(pool)), pType) | |
1241 | 1241 | let AId = $t04049640586._1 | |
1242 | 1242 | let BId = $t04049640586._2 | |
1243 | 1243 | let balA = $t04049640586._3 | |
1244 | 1244 | let balB = $t04049640586._4 | |
1245 | 1245 | let shareId = $t04049640586._5 | |
1246 | 1246 | let amount = unstakeLP(pool, pType, shareId, liquidateAmount) | |
1247 | 1247 | let borrowAmount = getIntegerValue(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAmount)) | |
1248 | 1248 | let borrowAsset = getStringValue(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAssetId)) | |
1249 | 1249 | let userCanWithdraw = userCanWithdrawShareCalc(user, pool, posId, (borrowAmount > 0)) | |
1250 | 1250 | if ((liquidateAmount > userCanWithdraw)) | |
1251 | 1251 | then throw("You can't liquidate more than user have") | |
1252 | 1252 | else if ((borrowAmount == 0)) | |
1253 | 1253 | then throw("You can't liquidate position without borrow") | |
1254 | 1254 | 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))] | |
1255 | 1255 | })) | |
1256 | 1256 | ||
1257 | 1257 | ||
1258 | 1258 | ||
1259 | 1259 | @Callable(i) | |
1260 | 1260 | func stopLoss (user,posId,pool,assetId) = valueOrElse(isActive(), valueOrElse(isAdminCall(i), { | |
1261 | 1261 | let tokenOraclePrice = getIntegerValue(priceOracleAddr, (assetId + kPriceInOracle)) | |
1262 | 1262 | if ((tokenOraclePrice > tokenOraclePrice)) | |
1263 | 1263 | then throw("Token price greater stop loss price") | |
1264 | 1264 | else if (!(isDefined(getInteger(this, (((((((user + "_") + toString(posId)) + "_") + pool) + "_") + assetId) + kUserStopLoss))))) | |
1265 | 1265 | then throw("No entry") | |
1266 | 1266 | else (withdrawToUser(user, pool, toString(posId), true) :+ DeleteEntry((((((((user + "_") + toString(posId)) + "_") + pool) + "_") + assetId) + kUserStopLoss))) | |
1267 | 1267 | })) | |
1268 | 1268 | ||
1269 | 1269 | ||
1270 | 1270 | ||
1271 | 1271 | @Callable(i) | |
1272 | 1272 | func capitalizeExKeeper (pool,tokenToId,amountToExchange,claim,amountsIn,addresses,assetsToReceive,estReceived,slippageTolerance,minReceived,options) = valueOrElse(isActive(), valueOrElse(isAdminCall(i), { | |
1273 | 1273 | let pType = getStringValue(this, (kPool + pool)) | |
1274 | 1274 | let change = valueOrElse(getInteger(this, (pool + kPoolCapChange)), 0) | |
1275 | 1275 | let $t04268042781 = claimAndCheckAmntEx(pool, pType, claim, amountToExchange, change) | |
1276 | 1276 | let claimedAmount = $t04268042781._1 | |
1277 | 1277 | let claimedAsset = $t04268042781._2 | |
1278 | 1278 | let exchangedAmount = exchangeKeeper(tokenToId, amountToExchange, claimedAsset, amountsIn, addresses, assetsToReceive, estReceived, slippageTolerance, minReceived, options) | |
1279 | 1279 | let newChange = ((claimedAmount + change) - amountToExchange) | |
1280 | 1280 | let changeEntry = if ((newChange >= 0)) | |
1281 | 1281 | then [IntegerEntry((pool + kPoolCapChange), newChange)] | |
1282 | 1282 | else nil | |
1283 | 1283 | (capitalize(pool, pType, tokenToId, exchangedAmount) ++ changeEntry) | |
1284 | 1284 | })) | |
1285 | 1285 | ||
1286 | 1286 | ||
1287 | 1287 | ||
1288 | 1288 | @Callable(i) | |
1289 | 1289 | func capitalizeExPuzzle (pool,tokenToId,amountToExchange,claim,routesStr,minToReceive,options) = valueOrElse(isActive(), valueOrElse(isAdminCall(i), { | |
1290 | 1290 | let pType = getStringValue(this, (kPool + pool)) | |
1291 | 1291 | let change = valueOrElse(getInteger(this, (pool + kPoolCapChange)), 0) | |
1292 | 1292 | let $t04355643657 = claimAndCheckAmntEx(pool, pType, claim, amountToExchange, change) | |
1293 | 1293 | let claimedAmount = $t04355643657._1 | |
1294 | 1294 | let claimedAsset = $t04355643657._2 | |
1295 | 1295 | let exchangedAmount = exchangePuzzle(tokenToId, amountToExchange, claimedAsset, routesStr, minToReceive, options) | |
1296 | 1296 | let newChange = ((claimedAmount + change) - amountToExchange) | |
1297 | 1297 | let changeEntry = if ((newChange >= 0)) | |
1298 | 1298 | then [IntegerEntry((pool + kPoolCapChange), newChange)] | |
1299 | 1299 | else nil | |
1300 | 1300 | (capitalize(pool, pType, tokenToId, exchangedAmount) ++ changeEntry) | |
1301 | 1301 | })) | |
1302 | 1302 | ||
1303 | 1303 | ||
1304 | 1304 | ||
1305 | 1305 | @Callable(i) | |
1306 | 1306 | func capitalizeExSwopFi (pool,tokenToId,amountToExchange,claim,exchangers,exchangersType,args1,args2,routingAssetsKeys,minAmountToReceive,options) = valueOrElse(isActive(), valueOrElse(isAdminCall(i), { | |
1307 | 1307 | let pType = getStringValue(this, (kPool + pool)) | |
1308 | 1308 | let change = valueOrElse(getInteger(this, (pool + kPoolCapChange)), 0) | |
1309 | 1309 | let $t04449944600 = claimAndCheckAmntEx(pool, pType, claim, amountToExchange, change) | |
1310 | 1310 | let claimedAmount = $t04449944600._1 | |
1311 | 1311 | let claimedAsset = $t04449944600._2 | |
1312 | 1312 | let exchangedAmount = exchangeSwopFi(tokenToId, amountToExchange, claimedAsset, exchangers, exchangersType, args1, args2, routingAssetsKeys, minAmountToReceive, options) | |
1313 | 1313 | let newChange = ((claimedAmount + change) - amountToExchange) | |
1314 | 1314 | let changeEntry = if ((newChange >= 0)) | |
1315 | 1315 | then [IntegerEntry((pool + kPoolCapChange), newChange)] | |
1316 | 1316 | else nil | |
1317 | 1317 | (capitalize(pool, pType, tokenToId, exchangedAmount) ++ changeEntry) | |
1318 | 1318 | })) | |
1319 | 1319 | ||
1320 | 1320 | ||
1321 | 1321 | ||
1322 | 1322 | @Callable(i) | |
1323 | 1323 | func initNewPool (type,poolAddr,inFeeNoLoan,inFeeLoan,capFeeNoLoan,capFeeWithLoan,stoplossFeeNoLoan,stoplossFeeWithLoan,canBorrow) = valueOrElse(isActive(), valueOrElse(isAdminCall(i), if (if ((type != SF_POOL)) | |
1324 | 1324 | then (type != WX_POOL) | |
1325 | 1325 | else false) | |
1326 | 1326 | then throw("Wrong type") | |
1327 | 1327 | else { | |
1328 | 1328 | let $t04533145425 = getPoolData(Address(fromBase58String(poolAddr)), type) | |
1329 | 1329 | let aId = $t04533145425._1 | |
1330 | 1330 | let bId = $t04533145425._2 | |
1331 | 1331 | let aBal = $t04533145425._3 | |
1332 | 1332 | let bBal = $t04533145425._4 | |
1333 | 1333 | let shareId = $t04533145425._5 | |
1334 | 1334 | if ((0 > inFeeNoLoan)) | |
1335 | 1335 | then throw("inFeeNoLoan must be greater than 0") | |
1336 | 1336 | else if ((0 > inFeeLoan)) | |
1337 | 1337 | then throw("inFeeLoan must be greater than 0") | |
1338 | 1338 | else if ((0 > capFeeNoLoan)) | |
1339 | 1339 | then throw("capFeeNoLoan must be greater than 0") | |
1340 | 1340 | else if ((0 > capFeeWithLoan)) | |
1341 | 1341 | then throw("capFeeWithLoan must be greater than 0") | |
1342 | 1342 | else if ((0 > stoplossFeeNoLoan)) | |
1343 | 1343 | then throw("stoplossFeeNoLoan must be greater than 0") | |
1344 | 1344 | else if ((0 > stoplossFeeWithLoan)) | |
1345 | 1345 | then throw("stoplossFeeWithLoan must be greater than 0") | |
1346 | 1346 | 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)] | |
1347 | 1347 | })) | |
1348 | 1348 | ||
1349 | 1349 | ||
1350 | 1350 | ||
1351 | 1351 | @Callable(i) | |
1352 | 1352 | func activate () = valueOrElse(isAdminCall(i), if (valueOrElse(getBoolean(this, kActive), true)) | |
1353 | 1353 | then throw("dApp already active") | |
1354 | 1354 | else [BooleanEntry(kActive, true)]) | |
1355 | 1355 | ||
1356 | 1356 | ||
1357 | 1357 | ||
1358 | 1358 | @Callable(i) | |
1359 | 1359 | func shutdown () = valueOrElse(isAdminCall(i), if (!(valueOrElse(getBoolean(this, kActive), true))) | |
1360 | 1360 | then throw("dApp already shutdown") | |
1361 | 1361 | else [BooleanEntry(kActive, false)]) | |
1362 | 1362 | ||
1363 | 1363 | ||
1364 | 1364 | ||
1365 | 1365 | @Callable(i) | |
1366 | 1366 | func activateForUsers () = valueOrElse(isAdminCall(i), if (valueOrElse(getBoolean(this, kActiveUsers), true)) | |
1367 | 1367 | then throw("dApp already active for users") | |
1368 | 1368 | else [BooleanEntry(kActive, true)]) | |
1369 | 1369 | ||
1370 | 1370 | ||
1371 | 1371 | ||
1372 | 1372 | @Callable(i) | |
1373 | 1373 | func shutdownForUsers () = valueOrElse(isAdminCall(i), if (!(valueOrElse(getBoolean(this, kActiveUsers), true))) | |
1374 | 1374 | then throw("dApp already shutdown for users") | |
1375 | 1375 | else [BooleanEntry(kActive, false)]) | |
1376 | 1376 | ||
1377 | 1377 | ||
1378 | 1378 | ||
1379 | 1379 | @Callable(i) | |
1380 | 1380 | func activateSF () = valueOrElse(isAdminCall(i), if (valueOrElse(getBoolean(this, (SF_POOL + kActiveSFWX)), true)) | |
1381 | 1381 | then throw("SWOPFI already active") | |
1382 | 1382 | else [BooleanEntry(kActive, true)]) | |
1383 | 1383 | ||
1384 | 1384 | ||
1385 | 1385 | ||
1386 | 1386 | @Callable(i) | |
1387 | 1387 | func shutdownSF () = valueOrElse(isAdminCall(i), if (!(valueOrElse(getBoolean(this, (SF_POOL + kActiveSFWX)), true))) | |
1388 | 1388 | then throw("SWOPFI already shutdown") | |
1389 | 1389 | else [BooleanEntry(kActive, false)]) | |
1390 | 1390 | ||
1391 | 1391 | ||
1392 | 1392 | ||
1393 | 1393 | @Callable(i) | |
1394 | 1394 | func activateWX () = valueOrElse(isAdminCall(i), if (valueOrElse(getBoolean(this, (WX_POOL + kActiveSFWX)), true)) | |
1395 | 1395 | then throw("WX already active") | |
1396 | 1396 | else [BooleanEntry(kActive, true)]) | |
1397 | 1397 | ||
1398 | 1398 | ||
1399 | 1399 | ||
1400 | 1400 | @Callable(i) | |
1401 | 1401 | func shutdownWX () = valueOrElse(isAdminCall(i), if (!(valueOrElse(getBoolean(this, (WX_POOL + kActiveSFWX)), true))) | |
1402 | 1402 | then throw("WX already shutdown") | |
1403 | 1403 | else [BooleanEntry(kActive, false)]) | |
1404 | 1404 | ||
1405 | 1405 | ||
1406 | 1406 | ||
1407 | 1407 | @Callable(i) | |
1408 | 1408 | func activatePool (pool) = valueOrElse(isAdminCall(i), if (!(isDefined(getString(this, (kPool + pool))))) | |
1409 | 1409 | then throw("Unknown pool") | |
1410 | 1410 | else if (valueOrElse(getBoolean(this, (pool + kPoolActive)), true)) | |
1411 | 1411 | then throw("Pool already active") | |
1412 | 1412 | else [BooleanEntry(kActive, true)]) | |
1413 | 1413 | ||
1414 | 1414 | ||
1415 | 1415 | ||
1416 | 1416 | @Callable(i) | |
1417 | 1417 | func shutdownPool (pool) = valueOrElse(isAdminCall(i), if (!(isDefined(getString(this, (kPool + pool))))) | |
1418 | 1418 | then throw("Unknown pool") | |
1419 | 1419 | else if (!(valueOrElse(getBoolean(this, (pool + kPoolActive)), true))) | |
1420 | 1420 | then throw("Pool already shutdown") | |
1421 | 1421 | else [BooleanEntry(kActive, false)]) | |
1422 | 1422 | ||
1423 | 1423 | ||
1424 | 1424 | @Verifier(tx) | |
1425 | 1425 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
1426 | 1426 |
github/deemru/w8io/026f985 102.77 ms ◑