tx · AaJfjphPicUsARKyY6bVziu4JTwjbb2GnxMq7op9RaDu

3N2M4PztorHwrfENp7D6LhYGgGodjiD1fjn:  -0.02300000 Waves

2023.08.17 14:17 [2714523] smart account 3N2M4PztorHwrfENp7D6LhYGgGodjiD1fjn > SELF 0.00000000 Waves

{ "type": 13, "id": "AaJfjphPicUsARKyY6bVziu4JTwjbb2GnxMq7op9RaDu", "fee": 2300000, "feeAssetId": null, "timestamp": 1692271060974, "version": 2, "chainId": 84, "sender": "3N2M4PztorHwrfENp7D6LhYGgGodjiD1fjn", "senderPublicKey": "Fj9LPkCtmW3pDnVU6wPQnvqpZJCBieWSvZqY5FAGeCyp", "proofs": [ "5pBFn6HYy1WcgsU2n9YzwTz5tFeKvDaxjQSFtgTaoJ3J8YogYide1pyJPQsSNHrmXsiGhWXxEX8RCbzjnNo2fbR", "3r4425tz9fFfeKaHovJp6kMEjNy4VfASqFwWaQvwaVh4agSxAvG2gVe9n61pbghVPVUUv3kQsrCBgideibcrreMv" ], "script": "base64:BgIhCAISABIAEgQKAggIEgMKAQgSBwoFCAgIAQESAwoBCBIAUQAGU0NBTEU4AIDC1y8AC0xFTkRFUlNfQVBSCQDMCAIAlgEJAMwIAgB4CQDMCAIAZAkAzAgCAFAJAMwIAgA8CQDMCAIAKAkAzAgCAB4JAMwIAgAUCQDMCAIACgUDbmlsABNMRU5ERVJTX0FQUl9QRVJJT0RTCQDMCAICAzEtMQkAzAgCAgMyLTIJAMwIAgIDMy0zCQDMCAICAzQtNAkAzAgCAgM1LTgJAMwIAgIEOS0xMgkAzAgCAgcxNCAtIDE2CQDMCAICBTE3LTIwCQDMCAICBjIwLTEwNAUDbmlsABNMRU5ERVJTX01BWF9QRVJJT0RTAGgABkxQX0FQUgkAzAgCAJYBCQDMCAIAeAkAzAgCAGQJAMwIAgBQCQDMCAIAPAkAzAgCACgFA25pbAAOTFBfQVBSX1BFUklPRFMJAMwIAgIDMS0xCQDMCAICAzItMgkAzAgCAgMzLTMJAMwIA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FAnR4AwkAAQIFByRtYXRjaDACF0ludm9rZVNjcmlwdFRyYW5zYWN0aW9uBANpbnYFByRtYXRjaDAEBmlzU2VsZgkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleQQKaXNSaWdodEZlZQMJAAACCAUDaW52A2ZlZQCg9zYJAAACCAUDaW52CmZlZUFzc2V0SWQFBHVuaXQHBAppc0luaXRDYWxsCQAAAggFA2ludghmdW5jdGlvbgIEaW5pdAQMaXNub1BheW1lbnRzCQAAAgkAkAMBCAUDaW52CHBheW1lbnRzAAADAwMDBQppc1JpZ2h0RmVlBQppc0luaXRDYWxsBwUGaXNTZWxmBwUMaXNub1BheW1lbnRzBwYFE211bHRpU2lnbmVkQnlBZG1pbnMFE211bHRpU2lnbmVkQnlBZG1pbnPItJKT", "height": 2714523, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HsgABABQU9j6fhArukcLfhNuoyVrenxUQj7cujjbtTob Next: FtVbtHUpfGTH4pLVAJ4KdP5b1u6wLqq7sxbT3LNwVDSy Diff:
OldNewDifferences
458458 then throw("Wrong farming address")
459459 else if (!(isDefined(addressFromString(axlyTokenomicContractAddr))))
460460 then throw("Wrong main contract address")
461- else [StringEntry(kAxlyMainContract, axlyMainContractAddr), StringEntry(kAxlyTokenomicContract, axlyTokenomicContractAddr), StringEntry(kAxlyPool, axlyPoolAddr), IntegerEntry(kStartHeight, farmingStartHeight), StringEntry(kTokens, "")])
461+ else [StringEntry(kAxlyMainContract, axlyMainContractAddr), StringEntry(kAxlyTokenomicContract, axlyTokenomicContractAddr), StringEntry(kAxlyPool, axlyPoolAddr), IntegerEntry(kStartHeight, farmingStartHeight), IntegerEntry(kPeriodLength, periodLength), StringEntry(kTokens, "")])
462462
463463
464464
465465 @Callable(i)
466466 func initNewToken (tokenId) = valueOrElse(isAdminCall(i), if (isDefined(getInteger(this, (tokenId + kTokenInterest))))
467467 then throw("token already inited")
468- else if (!(contains(getStringValue(this, kLendSetupTokens), tokenId)))
468+ else if (!(contains(getStringValue(lendContract, kLendSetupTokens), tokenId)))
469469 then throw("no token on landing")
470470 else [IntegerEntry((tokenId + kTokenInterest), 0), IntegerEntry((tokenId + kTokenInterestHeight), height), StringEntry(kTokens, makeString((allTokens :+ tokenId), ",")), IntegerEntry(kTokenRewardPerBlock, 0)])
471471
477477 if (((lastUpdateHeight + periodLength) > height))
478478 then throw("rewards alredy updated in this period")
479479 else {
480- let $t01460314683 = getTotalSupplyAllTokens()
481- let totalSupply = $t01460314683._1
482- let totalSupplyUsd = $t01460314683._2
483- let totalSupplyUsdAll = $t01460314683._3
480+ let $t01465814738 = getTotalSupplyAllTokens()
481+ let totalSupply = $t01465814738._1
482+ let totalSupplyUsd = $t01465814738._2
483+ let totalSupplyUsdAll = $t01465814738._3
484484 let axlyPrice = getAssetPrice(axlyId)
485485 let axlyPrecision = getAssetPrecision(axlyId)
486486 let maxAPR = getAdoptedAPRByPeriod(curPeriod, LENDERS_APR_PERIODS, LENDERS_APR)
487487 func updateReward (a,tokenId) = {
488- let $t01492714952 = a
489- let enteries = $t01492714952._1
490- let index = $t01492714952._2
488+ let $t01498215007 = a
489+ let enteries = $t01498215007._1
490+ let index = $t01498215007._2
491491 if ((totalSupply[index] == 0))
492492 then $Tuple2((enteries ++ [IntegerEntry((tokenId + kTokenRewardPerBlock), 0), IntegerEntry((tokenId + kTokenInterest), calcNewTokenInterest(tokenId, totalSupply[index])), IntegerEntry((tokenId + kTokenInterestHeight), height)]), (index + 1))
493493 else {
508508 }
509509 }
510510
511- let $t01642316495 = {
511+ let $t01647816550 = {
512512 let $l = allTokens
513513 let $s = size($l)
514514 let $acc0 = $Tuple2(nil, 0)
522522
523523 $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($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)
524524 }
525- let tokensEnteries = $t01642316495._1
526- let index = $t01642316495._2
525+ let tokensEnteries = $t01647816550._1
526+ let index = $t01647816550._2
527527 let lpMaxAPR = getAdoptedAPRByPeriod(curPeriod, LP_APR_PERIODS, LP_APR)
528528 let lpTotalSupply = getIntegerValue(sfFarmingContract, (axlyPool + kSFTotalSupply))
529529 let preLPSupply = valueOrElse(getInteger(this, kPrevLPSupply), 0)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let SCALE8 = 100000000
55
66 let LENDERS_APR = [150, 120, 100, 80, 60, 40, 30, 20, 10]
77
88 let LENDERS_APR_PERIODS = ["1-1", "2-2", "3-3", "4-4", "5-8", "9-12", "14 - 16", "17-20", "20-104"]
99
1010 let LENDERS_MAX_PERIODS = 104
1111
1212 let LP_APR = [150, 120, 100, 80, 60, 40]
1313
1414 let LP_APR_PERIODS = ["1-1", "2-2", "3-3", "4-4", "5-8", "9-12"]
1515
1616 let LP_MAX_PERIODS = 12
1717
1818 let kStartHeight = "startHeight"
1919
2020 let kPeriodLength = "periodLength"
2121
2222 let kLendersMaxAmount = "lendRewardsAmount"
2323
2424 let kLPMaxAmount = "lpRewardAmount"
2525
2626 let kTokens = "tokens"
2727
2828 let kUserSupply = "_userTotalSupply"
2929
3030 let kTokenInterest = "_tokenInterest"
3131
3232 let kTokenInterestHeight = "_tokenInterestHeight"
3333
3434 let kTokenRewardPerBlock = "_tokenRewardPerBlock"
3535
3636 let kRewardUpdateHeight = "rewardUpdateHeight"
3737
3838 let kUserLendInterest = "_userLandInterest"
3939
4040 let kUserLendAvailableClaim = "_userLendAvailableClaim"
4141
4242 let kUserLpAvailableClaim = "_userLpAvailableClaim"
4343
4444 let kLpInterest = "lpInterest"
4545
4646 let kLpInterestHeight = "lpInterestHeight"
4747
4848 let kPrevLPSupply = "prevLPTotalSupply"
4949
5050 let kLpRewardPerBlock = "lpRewardPerBlock"
5151
5252 let kUserLpInterest = "_userLpInterest"
5353
5454 let kPriceInOracle = "_twap5B"
5555
5656 let kPrevLendTokenSupply = "_prevLendTotalSupply"
5757
5858 let kAXLYTokenId = "axlyTokenId"
5959
6060 let kLendTokenSupply = "total_supplied_"
6161
6262 let kLendUserSupply = "_supplied_"
6363
6464 let kLendSetupTokens = "setup_tokens"
6565
6666 let kSFTotalSupply = "_total_share_tokens_locked"
6767
6868 let kSFUserTotalSupply = "_share_tokens_locked"
6969
7070 let kAxlyPool = "axlyPool"
7171
7272 let kLpId = "share_asset_id"
7373
7474 let kPriceOracle = "price_oracle"
7575
7676 let kAxlyMainContract = "mainContract"
7777
7878 let kAxlyTokenomicContract = "tokenomicContract"
7979
8080 let kSFFarmingContract = "swopfi_farming_addr"
8181
8282 let kLendContract = "lend_service_addr"
8383
8484 let kAdmin1PK = "group1_admin1_pub_key"
8585
8686 let kAdmin2PK = "group1_admin2_pub_key"
8787
8888 let kAdmin3PK = "group1_admin3_pub_key"
8989
9090 let kOperatorCallPK = "admin_call_pub_key"
9191
9292 let axlyPool = valueOrErrorMessage(getString(this, kAxlyPool), "Can't get axlyPool key")
9393
9494 let mainContract = addressFromStringValue(valueOrErrorMessage(getString(this, kAxlyMainContract), "Can't get mainContact key"))
9595
9696 let tokenContract = addressFromStringValue(valueOrErrorMessage(getString(this, kAxlyTokenomicContract), "Can't get tokenomicContract key"))
9797
9898 let lendContract = addressFromStringValue(valueOrErrorMessage(getString(mainContract, kLendContract), "Can't get lend_service_addr key"))
9999
100100 let sfFarmingContract = addressFromStringValue(valueOrErrorMessage(getString(mainContract, kSFFarmingContract), "Can't get swopfi_farming_addr key"))
101101
102102 let priceOracleAddr = addressFromStringValue(valueOrErrorMessage(getString(mainContract, kPriceOracle), "Can't get price_oracle key"))
103103
104104 let admin1PK = fromBase58String(valueOrErrorMessage(getString(mainContract, kAdmin1PK), "Can't get admin1PK"))
105105
106106 let admin2PK = fromBase58String(valueOrErrorMessage(getString(mainContract, kAdmin2PK), "Can't get admin2PK"))
107107
108108 let admin3PK = fromBase58String(valueOrErrorMessage(getString(mainContract, kAdmin3PK), "Can't get operatorPK"))
109109
110110 let operatorPK = fromBase58String(valueOrErrorMessage(getString(this, kOperatorCallPK), "Can't get operatorPK"))
111111
112112 let axlyId = valueOrErrorMessage(getString(tokenContract, kAXLYTokenId), "Can't get Axly token id")
113113
114114 let startHeight = getIntegerValue(this, kStartHeight)
115115
116116 let periodLength = getIntegerValue(this, kPeriodLength)
117117
118118 let curPeriod = ((height - startHeight) / periodLength)
119119
120120 let lendMaxAmount = getIntegerValue(tokenContract, kLendersMaxAmount)
121121
122122 let lendMaxPeriodAmount = (lendMaxAmount / LENDERS_MAX_PERIODS)
123123
124124 let lpMaxAmount = getIntegerValue(tokenContract, kLPMaxAmount)
125125
126126 let lpMaxPeriodAmount = (lpMaxAmount / LP_MAX_PERIODS)
127127
128128 let allTokens = split(getStringValue(this, kTokens), ",")
129129
130130 func isAdminCall (i) = if (containsElement([admin1PK, admin2PK, admin3PK], i.callerPublicKey))
131131 then unit
132132 else throw("Only admin group1 can call this function")
133133
134134
135135 func isSelfCall (i) = if ((i.caller == this))
136136 then unit
137137 else throw("Only contract itself can call this function")
138138
139139
140140 func isOperatorCall (i) = if ((i.callerPublicKey == operatorPK))
141141 then unit
142142 else throw("Only operator can call this function")
143143
144144
145145 func isLandCall (i) = if ((i.caller == lendContract))
146146 then unit
147147 else throw("Only land contract can call this function")
148148
149149
150150 func isSFFarmingCall (i) = if ((i.caller == sfFarmingContract))
151151 then unit
152152 else throw("Only land contract can call this function")
153153
154154
155155 func getAssetPrice (assetId) = getIntegerValue(priceOracleAddr, (assetId + kPriceInOracle))
156156
157157
158158 func getAssetDecimals (assetId) = if ((assetId == "WAVES"))
159159 then 8
160160 else match assetInfo(fromBase58String(assetId)) {
161161 case asset: Asset =>
162162 asset.decimals
163163 case _ =>
164164 throw("Can't find asset")
165165 }
166166
167167
168168 func getAssetPrecision (assetId) = pow(10, 0, getAssetDecimals(assetId), 0, 0, DOWN)
169169
170170
171171 func getAdoptedAPRByPeriod (period,aprPeriods,apr) = {
172172 func for (a,aperiod) = {
173173 let $t053405362 = a
174174 let index = $t053405362._1
175175 let found = $t053405362._2
176176 let ft = split(aperiod, "-")
177177 let $t053995462 = $Tuple2(parseIntValue(ft[0]), parseIntValue(ft[1]))
178178 let from = $t053995462._1
179179 let to = $t053995462._2
180180 if (found)
181181 then a
182182 else if (if ((period >= from))
183183 then (to >= period)
184184 else false)
185185 then $Tuple2(index, true)
186186 else $Tuple2((index + 1), false)
187187 }
188188
189189 let $t055995665 = {
190190 let $l = LENDERS_APR_PERIODS
191191 let $s = size($l)
192192 let $acc0 = $Tuple2(0, false)
193193 func $f0_1 ($a,$i) = if (($i >= $s))
194194 then $a
195195 else for($a, $l[$i])
196196
197197 func $f0_2 ($a,$i) = if (($i >= $s))
198198 then $a
199199 else throw("List size exceeds 9")
200200
201201 $f0_2($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)
202202 }
203203 let index = $t055995665._1
204204 let found = $t055995665._2
205205 if (found)
206206 then fraction((LENDERS_APR[index] * SCALE8), 7, 365)
207207 else 0
208208 }
209209
210210
211211 func getTotalSupplyAllTokens () = {
212212 func for (a,tokenId) = {
213213 let $t058535909 = a
214214 let totalSupply = $t058535909._1
215215 let totalSupplyUsd = $t058535909._2
216216 let totalSupplyUsdAll = $t058535909._3
217217 let tSupply = valueOrElse(getInteger(lendContract, (kLendTokenSupply + tokenId)), 0)
218218 let assetPrice = getAssetPrice(tokenId)
219219 let assetPrecision = getAssetPrecision(tokenId)
220220 let tSupplyUsd = fraction(tSupply, assetPrice, assetPrecision)
221221 $Tuple3((totalSupply :+ tSupply), (totalSupplyUsd :+ tSupplyUsd), (totalSupplyUsdAll + tSupplyUsd))
222222 }
223223
224224 let $l = allTokens
225225 let $s = size($l)
226226 let $acc0 = $Tuple3(nil, nil, 0)
227227 func $f0_1 ($a,$i) = if (($i >= $s))
228228 then $a
229229 else for($a, $l[$i])
230230
231231 func $f0_2 ($a,$i) = if (($i >= $s))
232232 then $a
233233 else throw("List size exceeds 30")
234234
235235 $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($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)
236236 }
237237
238238
239239 func getTotalSupplyUsd (tokenId) = {
240240 let tSupply = valueOrElse(getInteger(lendContract, (kLendTokenSupply + tokenId)), 0)
241241 let assetPrice = getAssetPrice(tokenId)
242242 let assetPrecision = getAssetPrecision(tokenId)
243243 fraction(tSupply, assetPrice, assetPrecision)
244244 }
245245
246246
247247 func calcNewTokenInterest (tokenId,totalSupply) = if ((height >= startHeight))
248248 then 0
249249 else {
250250 let rewardPerBlock = getIntegerValue(this, (tokenId + kTokenRewardPerBlock))
251251 let oldInterest = getIntegerValue(this, (tokenId + kTokenInterest))
252252 let updateHeight = getIntegerValue(this, (tokenId + kTokenInterestHeight))
253253 let reward = ((height - updateHeight) * rewardPerBlock)
254254 let interest = if ((totalSupply > 0))
255255 then fraction(reward, SCALE8, totalSupply)
256256 else 0
257257 (oldInterest + interest)
258258 }
259259
260260
261261 func calcNewLpInterest (totalSupply) = if ((height >= startHeight))
262262 then 0
263263 else {
264264 let rewardPerBlock = getIntegerValue(this, kLpRewardPerBlock)
265265 let oldInterest = getIntegerValue(this, kLpInterest)
266266 let updateHeight = getIntegerValue(this, kLpInterestHeight)
267267 let reward = ((height - updateHeight) * rewardPerBlock)
268268 let interest = if ((totalSupply > 0))
269269 then fraction(reward, SCALE8, totalSupply)
270270 else 0
271271 (oldInterest + interest)
272272 }
273273
274274
275275 func calcLendUserReward (user,tokenId) = {
276276 let totalSupply = valueOrElse(getInteger(lendContract, (kLendTokenSupply + tokenId)), 0)
277277 let tokenInterest = calcNewTokenInterest(tokenId, totalSupply)
278278 let userSupply = valueOrElse(getInteger(lendContract, ((user + kLendUserSupply) + tokenId)), 0)
279279 let userTokenInterest = valueOrElse(getInteger(this, (((tokenId + "_") + user) + kUserLendInterest)), if ((userSupply == 0))
280280 then tokenInterest
281281 else 0)
282282 let reward = fraction(userSupply, (tokenInterest - userTokenInterest), SCALE8)
283283 $Tuple3(reward, tokenInterest, userSupply)
284284 }
285285
286286
287287 func calcLpUserReward (user) = {
288288 let totalSupply = valueOrElse(getInteger(sfFarmingContract, (axlyPool + kSFTotalSupply)), 0)
289289 let tokenInterest = calcNewLpInterest(totalSupply)
290290 let userSupply = valueOrElse(getInteger(lendContract, (((axlyPool + "_") + user) + kSFUserTotalSupply)), 0)
291291 let userTokenInterest = valueOrElse(getInteger(this, (user + kUserLpInterest)), if ((userSupply == 0))
292292 then tokenInterest
293293 else 0)
294294 let reward = fraction(userSupply, (tokenInterest - userTokenInterest), SCALE8)
295295 $Tuple3(reward, tokenInterest, userSupply)
296296 }
297297
298298
299299 func claimLenderRewardsCommon (user,readOnly) = {
300300 func claim (a,tokenId) = {
301301 let $t087538797 = a
302302 let tokenIds = $t087538797._1
303303 let cAmount = $t087538797._2
304304 let total = $t087538797._3
305305 let enteries = $t087538797._4
306306 let userAvailableClaim = valueOrElse(getInteger(this, (((tokenId + "_") + user) + kUserLendAvailableClaim)), 0)
307307 let $t089108989 = calcLendUserReward(user, tokenId)
308308 let uReward = $t089108989._1
309309 let newTokenInterest = $t089108989._2
310310 let userSupply = $t089108989._3
311311 let totalToClaim = (userAvailableClaim + uReward)
312312 if (if ((totalToClaim > 0))
313313 then true
314314 else (userSupply > 0))
315315 then {
316316 let newEntreries = if (if (readOnly)
317317 then true
318318 else (totalToClaim == 0))
319319 then enteries
320320 else (enteries ++ [IntegerEntry((((tokenId + "_") + user) + kUserLendInterest), newTokenInterest), IntegerEntry((((tokenId + "_") + user) + kUserLendAvailableClaim), 0), IntegerEntry((tokenId + kTokenInterest), newTokenInterest), IntegerEntry((tokenId + kTokenInterestHeight), height)])
321321 $Tuple4((tokenIds :+ tokenId), (cAmount :+ totalToClaim), (total + totalToClaim), newEntreries)
322322 }
323323 else $Tuple4(tokenIds, cAmount, total, enteries)
324324 }
325325
326326 let $l = allTokens
327327 let $s = size($l)
328328 let $acc0 = $Tuple4(nil, nil, 0, nil)
329329 func $f0_1 ($a,$i) = if (($i >= $s))
330330 then $a
331331 else claim($a, $l[$i])
332332
333333 func $f0_2 ($a,$i) = if (($i >= $s))
334334 then $a
335335 else throw("List size exceeds 30")
336336
337337 $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($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)
338338 }
339339
340340
341341 func claimLpRewardsCommon (user,readOnly) = {
342342 let userAvailableClaim = valueOrElse(getInteger(this, (user + kUserLpAvailableClaim)), 0)
343343 let $t099169981 = calcLpUserReward(user)
344344 let uReward = $t099169981._1
345345 let newLpInterest = $t099169981._2
346346 let userSupply = $t099169981._3
347347 let totalToClaim = (userAvailableClaim + uReward)
348348 if (if (readOnly)
349349 then true
350350 else (totalToClaim == 0))
351351 then $Tuple2(totalToClaim, nil)
352352 else $Tuple2(totalToClaim, [IntegerEntry((user + kUserLpInterest), newLpInterest), IntegerEntry((user + kUserLpAvailableClaim), 0), IntegerEntry(kLpInterest, newLpInterest), IntegerEntry(kLpInterestHeight, height)])
353353 }
354354
355355
356356 func getTokensAPRs () = {
357357 let axlyPrice = getAssetPrice(axlyId)
358358 let axlyPrecision = getAssetPrecision(axlyId)
359359 func tokensAprs (apr,tokenId) = {
360360 let rwpb = valueOrElse(getInteger(this, (tokenId + kTokenRewardPerBlock)), 0)
361361 let rwpbUsd = fraction(rwpb, axlyPrice, axlyPrecision)
362362 let rwYear = ((rwpbUsd * periodLength) * 52)
363363 let totalSupplyUsd = getTotalSupplyUsd(tokenId)
364364 (apr :+ fraction(rwYear, SCALE8, totalSupplyUsd))
365365 }
366366
367367 let aprs = {
368368 let $l = allTokens
369369 let $s = size($l)
370370 let $acc0 = nil
371371 func $f0_1 ($a,$i) = if (($i >= $s))
372372 then $a
373373 else tokensAprs($a, $l[$i])
374374
375375 func $f0_2 ($a,$i) = if (($i >= $s))
376376 then $a
377377 else throw("List size exceeds 30")
378378
379379 $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($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)
380380 }
381381 let lpTotalSupply = getIntegerValue(sfFarmingContract, (axlyPool + kSFTotalSupply))
382382 let lpId = getStringValue(addressFromStringValue(axlyPool), kLpId)
383383 let lpPrecision = getAssetPrecision(lpId)
384384 let lpPrice = {
385385 let @ = ({
386386 let @ = invoke(mainContract, "getShareAssetPriceREADONLY", [[lpId]], nil)
387387 if ($isInstanceOf(@, "List[Any]"))
388388 then @
389389 else throw(($getType(@) + " couldn't be cast to List[Any]"))
390390 })[0]
391391 if ($isInstanceOf(@, "Int"))
392392 then @
393393 else throw(($getType(@) + " couldn't be cast to Int"))
394394 }
395395 let lpTotalSupplyUsd = fraction(lpTotalSupply, lpPrice, lpPrecision)
396396 let rwpb = valueOrElse(getInteger(this, kLpRewardPerBlock), 0)
397397 let rwpbUsd = fraction(rwpb, axlyPrice, axlyPrecision)
398398 let rwYear = ((rwpbUsd * periodLength) * 52)
399399 let lpApr = fraction(rwYear, SCALE8, lpTotalSupplyUsd)
400400 $Tuple3(allTokens, aprs, lpApr)
401401 }
402402
403403
404404 @Callable(i)
405405 func claimLenderRewards () = {
406406 let claimRes = claimLenderRewardsCommon(toString(i.caller), false)
407407 if ((claimRes._3 == 0))
408408 then throw("claim amount must be greater than 0")
409409 else {
410410 let inv = invoke(tokenContract, "withdrawLendReward", [claimRes._3, toString(i.caller)], nil)
411411 if ((inv == inv))
412412 then claimRes._4
413413 else throw("Strict value is not equal to itself.")
414414 }
415415 }
416416
417417
418418
419419 @Callable(i)
420420 func claimLpRewards () = {
421421 let claimRes = claimLpRewardsCommon(toString(i.caller), false)
422422 if ((claimRes._1 == 0))
423423 then throw("claim amount must be greater than 0")
424424 else {
425425 let inv = invoke(tokenContract, "withdrawLpReward", [claimRes._1, toString(i.caller)], nil)
426426 if ((inv == inv))
427427 then claimRes._2
428428 else throw("Strict value is not equal to itself.")
429429 }
430430 }
431431
432432
433433
434434 @Callable(i)
435435 func lendAction (user,tokenId) = valueOrElse(isLandCall(i), {
436436 let userAvailableClaim = valueOrElse(getInteger(this, (tokenId + kUserLendAvailableClaim)), 0)
437437 let $t01234312410 = calcLendUserReward(user, tokenId)
438438 let uReward = $t01234312410._1
439439 let newTokenInterest = $t01234312410._2
440440 [IntegerEntry((((user + "_") + tokenId) + kUserLendInterest), newTokenInterest), IntegerEntry((((user + "_") + tokenId) + kUserLendAvailableClaim), (userAvailableClaim + uReward)), IntegerEntry((tokenId + kTokenInterest), newTokenInterest), IntegerEntry((tokenId + kTokenInterestHeight), height)]
441441 })
442442
443443
444444
445445 @Callable(i)
446446 func lpAction (user) = valueOrElse(isSFFarmingCall(i), {
447447 let userAvailableClaim = valueOrElse(getInteger(this, kUserLpAvailableClaim), 0)
448448 let $t01287512928 = calcLpUserReward(user)
449449 let uReward = $t01287512928._1
450450 let newLpInterest = $t01287512928._2
451451 [IntegerEntry((user + kUserLpInterest), newLpInterest), IntegerEntry((user + kUserLpAvailableClaim), (userAvailableClaim + uReward)), IntegerEntry((user + kLpInterest), newLpInterest), IntegerEntry((user + kLpInterestHeight), height)]
452452 })
453453
454454
455455
456456 @Callable(i)
457457 func init (axlyMainContractAddr,axlyTokenomicContractAddr,axlyPoolAddr,farmingStartHeight,periodLength) = valueOrElse(isSelfCall(i), if (!(isDefined(addressFromString(axlyMainContractAddr))))
458458 then throw("Wrong farming address")
459459 else if (!(isDefined(addressFromString(axlyTokenomicContractAddr))))
460460 then throw("Wrong main contract address")
461- else [StringEntry(kAxlyMainContract, axlyMainContractAddr), StringEntry(kAxlyTokenomicContract, axlyTokenomicContractAddr), StringEntry(kAxlyPool, axlyPoolAddr), IntegerEntry(kStartHeight, farmingStartHeight), StringEntry(kTokens, "")])
461+ else [StringEntry(kAxlyMainContract, axlyMainContractAddr), StringEntry(kAxlyTokenomicContract, axlyTokenomicContractAddr), StringEntry(kAxlyPool, axlyPoolAddr), IntegerEntry(kStartHeight, farmingStartHeight), IntegerEntry(kPeriodLength, periodLength), StringEntry(kTokens, "")])
462462
463463
464464
465465 @Callable(i)
466466 func initNewToken (tokenId) = valueOrElse(isAdminCall(i), if (isDefined(getInteger(this, (tokenId + kTokenInterest))))
467467 then throw("token already inited")
468- else if (!(contains(getStringValue(this, kLendSetupTokens), tokenId)))
468+ else if (!(contains(getStringValue(lendContract, kLendSetupTokens), tokenId)))
469469 then throw("no token on landing")
470470 else [IntegerEntry((tokenId + kTokenInterest), 0), IntegerEntry((tokenId + kTokenInterestHeight), height), StringEntry(kTokens, makeString((allTokens :+ tokenId), ",")), IntegerEntry(kTokenRewardPerBlock, 0)])
471471
472472
473473
474474 @Callable(i)
475475 func updateRewards () = valueOrElse(isOperatorCall(i), {
476476 let lastUpdateHeight = valueOrElse(getInteger(this, kRewardUpdateHeight), 0)
477477 if (((lastUpdateHeight + periodLength) > height))
478478 then throw("rewards alredy updated in this period")
479479 else {
480- let $t01460314683 = getTotalSupplyAllTokens()
481- let totalSupply = $t01460314683._1
482- let totalSupplyUsd = $t01460314683._2
483- let totalSupplyUsdAll = $t01460314683._3
480+ let $t01465814738 = getTotalSupplyAllTokens()
481+ let totalSupply = $t01465814738._1
482+ let totalSupplyUsd = $t01465814738._2
483+ let totalSupplyUsdAll = $t01465814738._3
484484 let axlyPrice = getAssetPrice(axlyId)
485485 let axlyPrecision = getAssetPrecision(axlyId)
486486 let maxAPR = getAdoptedAPRByPeriod(curPeriod, LENDERS_APR_PERIODS, LENDERS_APR)
487487 func updateReward (a,tokenId) = {
488- let $t01492714952 = a
489- let enteries = $t01492714952._1
490- let index = $t01492714952._2
488+ let $t01498215007 = a
489+ let enteries = $t01498215007._1
490+ let index = $t01498215007._2
491491 if ((totalSupply[index] == 0))
492492 then $Tuple2((enteries ++ [IntegerEntry((tokenId + kTokenRewardPerBlock), 0), IntegerEntry((tokenId + kTokenInterest), calcNewTokenInterest(tokenId, totalSupply[index])), IntegerEntry((tokenId + kTokenInterestHeight), height)]), (index + 1))
493493 else {
494494 let share = fraction(totalSupplyUsd[index], SCALE8, totalSupplyUsdAll)
495495 let maxReward = fraction(share, lendMaxPeriodAmount, SCALE8)
496496 let maxRewardUsd = fraction(maxReward, axlyPrice, axlyPrecision)
497497 let prevTotalSupply = valueOrElse(getInteger(this, kPrevLendTokenSupply), 0)
498498 let rtCoef = if (if ((prevTotalSupply == 0))
499499 then true
500500 else (totalSupply[index] == 0))
501501 then 0
502502 else fraction(prevTotalSupply, SCALE8, totalSupply[index])
503503 let reward = (min([(maxAPR * (SCALE8 + rtCoef)), fraction(maxAPR, (15 * SCALE8), 10)]) / SCALE8)
504504 let rewardUsd = min([maxRewardUsd, fraction(totalSupplyUsd[index], reward, SCALE8)])
505505 let rewardPeriod = fraction(rewardUsd, axlyPrice, axlyPrecision)
506506 let rewardPerBlock = (rewardPeriod / periodLength)
507507 $Tuple2((enteries ++ [IntegerEntry((tokenId + kPrevLendTokenSupply), totalSupply[index]), IntegerEntry((tokenId + kTokenRewardPerBlock), rewardPerBlock), IntegerEntry((tokenId + kTokenInterest), calcNewTokenInterest(tokenId, totalSupply[index])), IntegerEntry((tokenId + kTokenInterestHeight), height)]), (index + 1))
508508 }
509509 }
510510
511- let $t01642316495 = {
511+ let $t01647816550 = {
512512 let $l = allTokens
513513 let $s = size($l)
514514 let $acc0 = $Tuple2(nil, 0)
515515 func $f0_1 ($a,$i) = if (($i >= $s))
516516 then $a
517517 else updateReward($a, $l[$i])
518518
519519 func $f0_2 ($a,$i) = if (($i >= $s))
520520 then $a
521521 else throw("List size exceeds 30")
522522
523523 $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($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)
524524 }
525- let tokensEnteries = $t01642316495._1
526- let index = $t01642316495._2
525+ let tokensEnteries = $t01647816550._1
526+ let index = $t01647816550._2
527527 let lpMaxAPR = getAdoptedAPRByPeriod(curPeriod, LP_APR_PERIODS, LP_APR)
528528 let lpTotalSupply = getIntegerValue(sfFarmingContract, (axlyPool + kSFTotalSupply))
529529 let preLPSupply = valueOrElse(getInteger(this, kPrevLPSupply), 0)
530530 let lpId = getStringValue(addressFromStringValue(axlyPool), kLpId)
531531 let lpPrecision = getAssetPrecision(lpId)
532532 let lpPrice = {
533533 let @ = ({
534534 let @ = invoke(mainContract, "getShareAssetPriceREADONLY", [[lpId]], nil)
535535 if ($isInstanceOf(@, "List[Any]"))
536536 then @
537537 else throw(($getType(@) + " couldn't be cast to List[Any]"))
538538 })[0]
539539 if ($isInstanceOf(@, "Int"))
540540 then @
541541 else throw(($getType(@) + " couldn't be cast to Int"))
542542 }
543543 let lpTotalSupplyUsd = fraction(lpTotalSupply, lpPrice, lpPrecision)
544544 let maxLPRewardUsd = fraction(lpMaxPeriodAmount, axlyPrice, axlyPrecision)
545545 let rtLPCoef = if (if ((preLPSupply == 0))
546546 then true
547547 else (lpTotalSupply == 0))
548548 then 0
549549 else fraction(preLPSupply, SCALE8, lpTotalSupply)
550550 let rewardLp = (min([(lpMaxAPR * (SCALE8 + rtLPCoef)), fraction(lpMaxAPR, (15 * SCALE8), 10)]) / SCALE8)
551551 let rewardLpUsd = min([maxLPRewardUsd, fraction(lpTotalSupplyUsd, rewardLp, SCALE8)])
552552 let rewardLpPeriod = fraction(rewardLpUsd, axlyPrice, axlyPrecision)
553553 let rewardLpPerBlock = (rewardLpPeriod / periodLength)
554554 let lpEnteries = [IntegerEntry(kPrevLPSupply, lpTotalSupply), IntegerEntry(kLpRewardPerBlock, rewardLpPerBlock), IntegerEntry(kLpInterest, calcNewLpInterest(lpTotalSupply)), IntegerEntry(kLpInterestHeight, height)]
555555 ((lpEnteries ++ tokensEnteries) :+ IntegerEntry(kRewardUpdateHeight, height))
556556 }
557557 })
558558
559559
560560 @Verifier(tx)
561561 func verify () = {
562562 let multiSignedByAdmins = {
563563 let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], admin1PK))
564564 then 1
565565 else 0
566566 let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], admin2PK))
567567 then 1
568568 else 0
569569 let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], admin3PK))
570570 then 1
571571 else 0
572572 (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2)
573573 }
574574 match tx {
575575 case inv: InvokeScriptTransaction =>
576576 let isSelf = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
577577 let isRightFee = if ((inv.fee == 900000))
578578 then (inv.feeAssetId == unit)
579579 else false
580580 let isInitCall = (inv.function == "init")
581581 let isnoPayments = (size(inv.payments) == 0)
582582 if (if (if (if (isRightFee)
583583 then isInitCall
584584 else false)
585585 then isSelf
586586 else false)
587587 then isnoPayments
588588 else false)
589589 then true
590590 else multiSignedByAdmins
591591 case _ =>
592592 multiSignedByAdmins
593593 }
594594 }
595595

github/deemru/w8io/026f985 
68.97 ms