tx · 8qRLHzPe2YAh37ehvXAD1Tte7ywnJK2j27zR5fiQDMkg

3N2M4PztorHwrfENp7D6LhYGgGodjiD1fjn:  -0.01900000 Waves

2023.08.17 10:23 [2714289] smart account 3N2M4PztorHwrfENp7D6LhYGgGodjiD1fjn > SELF 0.00000000 Waves

{ "type": 13, "id": "8qRLHzPe2YAh37ehvXAD1Tte7ywnJK2j27zR5fiQDMkg", "fee": 1900000, "feeAssetId": null, "timestamp": 1692257036415, "version": 2, "chainId": 84, "sender": "3N2M4PztorHwrfENp7D6LhYGgGodjiD1fjn", "senderPublicKey": "Fj9LPkCtmW3pDnVU6wPQnvqpZJCBieWSvZqY5FAGeCyp", "proofs": [ "3xrAN7k2aGaEDB83GvPCtRc3ta5uiuwwL1dezEMraK9ZvFVvMqWyin9z85jHUC1H5AYdTYzVMNpCvtDFtYJk6fkX" ], "script": "base64:BgIhCAISABIAEgQKAggIEgMKAQgSBwoFCAgIAQESAwoBCBIAUQAGU0NBTEU4AIDC1y8AC0xFTkRFUlNfQVBSCQDMCAIAlgEJAMwIAgB4CQDMCAIAZAkAzAgCAFAJAMwIAgA8CQDMCAIAKAkAzAgCAB4JAMwIAgAUCQDMCAIACgUDbmlsABNMRU5ERVJTX0FQUl9QRVJJT0RTCQDMCAICAzEtMQkAzAgCAgMyLTIJAMwIAgIDMy0zCQDMCAICAzQtNAkAzAgCAgM1LTgJAMwIAgIEOS0xMgkAzAgCAgcxNCAtIDE2CQDMCAICBTE3LTIwCQDMCAICBjIwLTEwNAUDbmlsABNMRU5ERVJTX01BWF9QRVJJT0RTAGgABkxQX0FQUgkAzAgCAJYBCQDMCAIAeAkAzAgCAGQJAMwIAgBQCQDMCAIAPAkAzAgCACgFA25pbAAOTFBfQVBSX1BFUklPRFMJAMwIAgIDMS0xCQDMCAICAzItMgkAzAgCAgMzLTMJAMwIAgIDNC00CQDMCAICAzUtOAkAzAgCAgQ5LTEyBQNuaWwADkxQX01BWF9QRVJJT0RTAAwADGtTdGFydEh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QKaXNSaWdodEZlZQMJAAACCAUDaW52A2ZlZQCg9zYJAAACCAUDaW52CmZlZUFzc2V0SWQFBHVuaXQHBAppc0luaXRDYWxsCQAAAggFA2ludghmdW5jdGlvbgIEaW5pdAQMaXNub1BheW1lbnRzCQAAAgkAkAMBCAUDaW52CHBheW1lbnRzAAADAwMDBQppc1JpZ2h0RmVlBQppc0luaXRDYWxsBwUGaXNTZWxmBwUMaXNub1BheW1lbnRzBwYFE211bHRpU2lnbmVkQnlBZG1pbnMFE211bHRpU2lnbmVkQnlBZG1pbnPcSGkz", "height": 2714289, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: HsgABABQU9j6fhArukcLfhNuoyVrenxUQj7cujjbtTob Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 6 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let SCALE8 = 100000000
5+
6+let LENDERS_APR = [150, 120, 100, 80, 60, 40, 30, 20, 10]
7+
8+let LENDERS_APR_PERIODS = ["1-1", "2-2", "3-3", "4-4", "5-8", "9-12", "14 - 16", "17-20", "20-104"]
9+
10+let LENDERS_MAX_PERIODS = 104
11+
12+let LP_APR = [150, 120, 100, 80, 60, 40]
13+
14+let LP_APR_PERIODS = ["1-1", "2-2", "3-3", "4-4", "5-8", "9-12"]
15+
16+let LP_MAX_PERIODS = 12
17+
18+let kStartHeight = "startHeight"
19+
20+let kPeriodLength = "periodLength"
21+
22+let kLendersMaxAmount = "lendRewardsAmount"
23+
24+let kLPMaxAmount = "lpRewardAmount"
25+
26+let kTokens = "tokens"
27+
28+let kUserSupply = "_userTotalSupply"
29+
30+let kTokenInterest = "_tokenInterest"
31+
32+let kTokenInterestHeight = "_tokenInterestHeight"
33+
34+let kTokenRewardPerBlock = "_tokenRewardPerBlock"
35+
36+let kRewardUpdateHeight = "rewardUpdateHeight"
37+
38+let kUserLendInterest = "_userLandInterest"
39+
40+let kUserLendAvailableClaim = "_userLendAvailableClaim"
41+
42+let kUserLpAvailableClaim = "_userLpAvailableClaim"
43+
44+let kLpInterest = "lpInterest"
45+
46+let kLpInterestHeight = "lpInterestHeight"
47+
48+let kPrevLPSupply = "prevLPTotalSupply"
49+
50+let kLpRewardPerBlock = "lpRewardPerBlock"
51+
52+let kUserLpInterest = "_userLpInterest"
53+
54+let kPriceInOracle = "_twap5B"
55+
56+let kPrevLendTokenSupply = "_prevLendTotalSupply"
57+
58+let kAXLYTokenId = "axlyTokenId"
59+
60+let kLendTokenSupply = "total_supplied_"
61+
62+let kLendUserSupply = "_supplied_"
63+
64+let kLendSetupTokens = "setup_tokens"
65+
66+let kSFTotalSupply = "_total_share_tokens_locked"
67+
68+let kSFUserTotalSupply = "_share_tokens_locked"
69+
70+let kAxlyPool = "axlyPool"
71+
72+let kLpId = "share_asset_id"
73+
74+let kPriceOracle = "price_oracle"
75+
76+let kAxlyMainContract = "mainContract"
77+
78+let kAxlyTokenomicContract = "tokenomicContract"
79+
80+let kSFFarmingContract = "swopfi_farming_addr"
81+
82+let kLendContract = "lend_service_addr"
83+
84+let kAdmin1PK = "group1_admin1_pub_key"
85+
86+let kAdmin2PK = "group1_admin2_pub_key"
87+
88+let kAdmin3PK = "group1_admin3_pub_key"
89+
90+let kOperatorCallPK = "admin_call_pub_key"
91+
92+let axlyPool = valueOrErrorMessage(getString(this, kAxlyPool), "Can't get axlyPool key")
93+
94+let mainContract = addressFromStringValue(valueOrErrorMessage(getString(this, kAxlyMainContract), "Can't get mainContact key"))
95+
96+let tokenContract = addressFromStringValue(valueOrErrorMessage(getString(this, kAxlyTokenomicContract), "Can't get tokenomicContract key"))
97+
98+let lendContract = addressFromStringValue(valueOrErrorMessage(getString(mainContract, kLendContract), "Can't get lend_service_addr key"))
99+
100+let sfFarmingContract = addressFromStringValue(valueOrErrorMessage(getString(mainContract, kSFFarmingContract), "Can't get swopfi_farming_addr key"))
101+
102+let priceOracleAddr = addressFromStringValue(valueOrErrorMessage(getString(mainContract, kPriceOracle), "Can't get price_oracle key"))
103+
104+let admin1PK = fromBase58String(valueOrErrorMessage(getString(mainContract, kAdmin1PK), "Can't get admin1PK"))
105+
106+let admin2PK = fromBase58String(valueOrErrorMessage(getString(mainContract, kAdmin2PK), "Can't get admin2PK"))
107+
108+let admin3PK = fromBase58String(valueOrErrorMessage(getString(mainContract, kAdmin3PK), "Can't get operatorPK"))
109+
110+let operatorPK = fromBase58String(valueOrErrorMessage(getString(this, kOperatorCallPK), "Can't get operatorPK"))
111+
112+let axlyId = valueOrErrorMessage(getString(tokenContract, kAXLYTokenId), "Can't get Axly token id")
113+
114+let startHeight = getIntegerValue(this, kStartHeight)
115+
116+let periodLength = getIntegerValue(this, kPeriodLength)
117+
118+let curPeriod = ((height - startHeight) / periodLength)
119+
120+let lendMaxAmount = getIntegerValue(tokenContract, kLendersMaxAmount)
121+
122+let lendMaxPeriodAmount = (lendMaxAmount / LENDERS_MAX_PERIODS)
123+
124+let lpMaxAmount = getIntegerValue(tokenContract, kLPMaxAmount)
125+
126+let lpMaxPeriodAmount = (lpMaxAmount / LP_MAX_PERIODS)
127+
128+let allTokens = split(getStringValue(this, kTokens), ",")
129+
130+func isAdminCall (i) = if (containsElement([admin1PK, admin2PK, admin3PK], i.callerPublicKey))
131+ then unit
132+ else throw("Only admin group1 can call this function")
133+
134+
135+func isSelfCall (i) = if ((i.caller == this))
136+ then unit
137+ else throw("Only contract itself can call this function")
138+
139+
140+func isOperatorCall (i) = if ((i.callerPublicKey == operatorPK))
141+ then unit
142+ else throw("Only operator can call this function")
143+
144+
145+func isLandCall (i) = if ((i.caller == lendContract))
146+ then unit
147+ else throw("Only land contract can call this function")
148+
149+
150+func isSFFarmingCall (i) = if ((i.caller == sfFarmingContract))
151+ then unit
152+ else throw("Only land contract can call this function")
153+
154+
155+func getAssetPrice (assetId) = getIntegerValue(priceOracleAddr, (assetId + kPriceInOracle))
156+
157+
158+func getAssetDecimals (assetId) = if ((assetId == "WAVES"))
159+ then 8
160+ else match assetInfo(fromBase58String(assetId)) {
161+ case asset: Asset =>
162+ asset.decimals
163+ case _ =>
164+ throw("Can't find asset")
165+ }
166+
167+
168+func getAssetPrecision (assetId) = pow(10, 0, getAssetDecimals(assetId), 0, 0, DOWN)
169+
170+
171+func getAdoptedAPRByPeriod (period,aprPeriods,apr) = {
172+ func for (a,aperiod) = {
173+ let $t053405362 = a
174+ let index = $t053405362._1
175+ let found = $t053405362._2
176+ let ft = split(aperiod, "-")
177+ let $t053995462 = $Tuple2(parseIntValue(ft[0]), parseIntValue(ft[1]))
178+ let from = $t053995462._1
179+ let to = $t053995462._2
180+ if (found)
181+ then a
182+ else if (if ((period >= from))
183+ then (to >= period)
184+ else false)
185+ then $Tuple2(index, true)
186+ else $Tuple2((index + 1), false)
187+ }
188+
189+ let $t055995665 = {
190+ let $l = LENDERS_APR_PERIODS
191+ let $s = size($l)
192+ let $acc0 = $Tuple2(0, false)
193+ func $f0_1 ($a,$i) = if (($i >= $s))
194+ then $a
195+ else for($a, $l[$i])
196+
197+ func $f0_2 ($a,$i) = if (($i >= $s))
198+ then $a
199+ else throw("List size exceeds 9")
200+
201+ $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)
202+ }
203+ let index = $t055995665._1
204+ let found = $t055995665._2
205+ if (found)
206+ then fraction((LENDERS_APR[index] * SCALE8), 7, 365)
207+ else 0
208+ }
209+
210+
211+func getTotalSupplyAllTokens () = {
212+ func for (a,tokenId) = {
213+ let $t058535909 = a
214+ let totalSupply = $t058535909._1
215+ let totalSupplyUsd = $t058535909._2
216+ let totalSupplyUsdAll = $t058535909._3
217+ let tSupply = valueOrElse(getInteger(lendContract, (kLendTokenSupply + tokenId)), 0)
218+ let assetPrice = getAssetPrice(tokenId)
219+ let assetPrecision = getAssetPrecision(tokenId)
220+ let tSupplyUsd = fraction(tSupply, assetPrice, assetPrecision)
221+ $Tuple3((totalSupply :+ tSupply), (totalSupplyUsd :+ tSupplyUsd), (totalSupplyUsdAll + tSupplyUsd))
222+ }
223+
224+ let $l = allTokens
225+ let $s = size($l)
226+ let $acc0 = $Tuple3(nil, nil, 0)
227+ func $f0_1 ($a,$i) = if (($i >= $s))
228+ then $a
229+ else for($a, $l[$i])
230+
231+ func $f0_2 ($a,$i) = if (($i >= $s))
232+ then $a
233+ else throw("List size exceeds 30")
234+
235+ $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)
236+ }
237+
238+
239+func getTotalSupplyUsd (tokenId) = {
240+ let tSupply = valueOrElse(getInteger(lendContract, (kLendTokenSupply + tokenId)), 0)
241+ let assetPrice = getAssetPrice(tokenId)
242+ let assetPrecision = getAssetPrecision(tokenId)
243+ fraction(tSupply, assetPrice, assetPrecision)
244+ }
245+
246+
247+func calcNewTokenInterest (tokenId,totalSupply) = {
248+ let rewardPerBlock = getIntegerValue(this, (tokenId + kTokenRewardPerBlock))
249+ let oldInterest = getIntegerValue(this, (tokenId + kTokenInterest))
250+ let updateHeight = getIntegerValue(this, (tokenId + kTokenInterestHeight))
251+ let reward = ((height - updateHeight) * rewardPerBlock)
252+ let interest = if ((totalSupply > 0))
253+ then fraction(reward, SCALE8, totalSupply)
254+ else 0
255+ (oldInterest + interest)
256+ }
257+
258+
259+func calcNewLpInterest (totalSupply) = {
260+ let rewardPerBlock = getIntegerValue(this, kLpRewardPerBlock)
261+ let oldInterest = getIntegerValue(this, kLpInterest)
262+ let updateHeight = getIntegerValue(this, kLpInterestHeight)
263+ let reward = ((height - updateHeight) * rewardPerBlock)
264+ let interest = if ((totalSupply > 0))
265+ then fraction(reward, SCALE8, totalSupply)
266+ else 0
267+ (oldInterest + interest)
268+ }
269+
270+
271+func calcLendUserReward (user,tokenId) = {
272+ let totalSupply = valueOrElse(getInteger(lendContract, (kLendTokenSupply + tokenId)), 0)
273+ let tokenInterest = calcNewTokenInterest(tokenId, totalSupply)
274+ let userSupply = valueOrElse(getInteger(lendContract, ((user + kLendUserSupply) + tokenId)), 0)
275+ let userTokenInterest = valueOrElse(getInteger(this, (((tokenId + "_") + user) + kUserLendInterest)), if ((userSupply == 0))
276+ then tokenInterest
277+ else 0)
278+ let reward = fraction(userSupply, (tokenInterest - userTokenInterest), SCALE8)
279+ $Tuple3(reward, tokenInterest, userSupply)
280+ }
281+
282+
283+func calcLpUserReward (user) = {
284+ let totalSupply = valueOrElse(getInteger(sfFarmingContract, (axlyPool + kSFTotalSupply)), 0)
285+ let tokenInterest = calcNewLpInterest(totalSupply)
286+ let userSupply = valueOrElse(getInteger(lendContract, (((axlyPool + "_") + user) + kSFUserTotalSupply)), 0)
287+ let userTokenInterest = valueOrElse(getInteger(this, (user + kUserLpInterest)), if ((userSupply == 0))
288+ then tokenInterest
289+ else 0)
290+ let reward = fraction(userSupply, (tokenInterest - userTokenInterest), SCALE8)
291+ $Tuple3(reward, tokenInterest, userSupply)
292+ }
293+
294+
295+func claimLenderRewardsCommon (user,readOnly) = {
296+ func claim (a,tokenId) = {
297+ let $t086758719 = a
298+ let tokenIds = $t086758719._1
299+ let cAmount = $t086758719._2
300+ let total = $t086758719._3
301+ let enteries = $t086758719._4
302+ let userAvailableClaim = valueOrElse(getInteger(this, (((tokenId + "_") + user) + kUserLendAvailableClaim)), 0)
303+ let $t088328911 = calcLendUserReward(user, tokenId)
304+ let uReward = $t088328911._1
305+ let newTokenInterest = $t088328911._2
306+ let userSupply = $t088328911._3
307+ let totalToClaim = (userAvailableClaim + uReward)
308+ if (if ((totalToClaim > 0))
309+ then true
310+ else (userSupply > 0))
311+ then {
312+ let newEntreries = if (if (readOnly)
313+ then true
314+ else (totalToClaim == 0))
315+ then enteries
316+ else (enteries ++ [IntegerEntry((((tokenId + "_") + user) + kUserLendInterest), newTokenInterest), IntegerEntry((((tokenId + "_") + user) + kUserLendAvailableClaim), 0), IntegerEntry((tokenId + kTokenInterest), newTokenInterest), IntegerEntry((tokenId + kTokenInterestHeight), height)])
317+ $Tuple4((tokenIds :+ tokenId), (cAmount :+ totalToClaim), (total + totalToClaim), newEntreries)
318+ }
319+ else $Tuple4(tokenIds, cAmount, total, enteries)
320+ }
321+
322+ let $l = allTokens
323+ let $s = size($l)
324+ let $acc0 = $Tuple4(nil, nil, 0, nil)
325+ func $f0_1 ($a,$i) = if (($i >= $s))
326+ then $a
327+ else claim($a, $l[$i])
328+
329+ func $f0_2 ($a,$i) = if (($i >= $s))
330+ then $a
331+ else throw("List size exceeds 30")
332+
333+ $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)
334+ }
335+
336+
337+func claimLpRewardsCommon (user,readOnly) = {
338+ let userAvailableClaim = valueOrElse(getInteger(this, (user + kUserLpAvailableClaim)), 0)
339+ let $t098389903 = calcLpUserReward(user)
340+ let uReward = $t098389903._1
341+ let newLpInterest = $t098389903._2
342+ let userSupply = $t098389903._3
343+ let totalToClaim = (userAvailableClaim + uReward)
344+ if (if (readOnly)
345+ then true
346+ else (totalToClaim == 0))
347+ then $Tuple2(totalToClaim, nil)
348+ else $Tuple2(totalToClaim, [IntegerEntry((user + kUserLpInterest), newLpInterest), IntegerEntry((user + kUserLpAvailableClaim), 0), IntegerEntry(kLpInterest, newLpInterest), IntegerEntry(kLpInterestHeight, height)])
349+ }
350+
351+
352+func getTokensAPRs () = {
353+ let axlyPrice = getAssetPrice(axlyId)
354+ let axlyPrecision = getAssetPrecision(axlyId)
355+ func tokensAprs (apr,tokenId) = {
356+ let rwpb = valueOrElse(getInteger(this, (tokenId + kTokenRewardPerBlock)), 0)
357+ let rwpbUsd = fraction(rwpb, axlyPrice, axlyPrecision)
358+ let rwYear = ((rwpbUsd * periodLength) * 52)
359+ let totalSupplyUsd = getTotalSupplyUsd(tokenId)
360+ (apr :+ fraction(rwYear, SCALE8, totalSupplyUsd))
361+ }
362+
363+ let aprs = {
364+ let $l = allTokens
365+ let $s = size($l)
366+ let $acc0 = nil
367+ func $f0_1 ($a,$i) = if (($i >= $s))
368+ then $a
369+ else tokensAprs($a, $l[$i])
370+
371+ func $f0_2 ($a,$i) = if (($i >= $s))
372+ then $a
373+ else throw("List size exceeds 30")
374+
375+ $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)
376+ }
377+ let lpTotalSupply = getIntegerValue(sfFarmingContract, (axlyPool + kSFTotalSupply))
378+ let lpId = getStringValue(addressFromStringValue(axlyPool), kLpId)
379+ let lpPrecision = getAssetPrecision(lpId)
380+ let lpPrice = {
381+ let @ = ({
382+ let @ = invoke(mainContract, "getShareAssetPriceREADONLY", [[lpId]], nil)
383+ if ($isInstanceOf(@, "List[Any]"))
384+ then @
385+ else throw(($getType(@) + " couldn't be cast to List[Any]"))
386+ })[0]
387+ if ($isInstanceOf(@, "Int"))
388+ then @
389+ else throw(($getType(@) + " couldn't be cast to Int"))
390+ }
391+ let lpTotalSupplyUsd = fraction(lpTotalSupply, lpPrice, lpPrecision)
392+ let rwpb = valueOrElse(getInteger(this, kLpRewardPerBlock), 0)
393+ let rwpbUsd = fraction(rwpb, axlyPrice, axlyPrecision)
394+ let rwYear = ((rwpbUsd * periodLength) * 52)
395+ let lpApr = fraction(rwYear, SCALE8, lpTotalSupplyUsd)
396+ $Tuple3(allTokens, aprs, lpApr)
397+ }
398+
399+
400+@Callable(i)
401+func claimLenderRewards () = {
402+ let claimRes = claimLenderRewardsCommon(toString(i.caller), false)
403+ if ((claimRes._3 == 0))
404+ then throw("claim amount must be greater than 0")
405+ else {
406+ let inv = invoke(tokenContract, "withdrawLendReward", [claimRes._3, toString(i.caller)], nil)
407+ if ((inv == inv))
408+ then claimRes._4
409+ else throw("Strict value is not equal to itself.")
410+ }
411+ }
412+
413+
414+
415+@Callable(i)
416+func claimLpRewards () = {
417+ let claimRes = claimLpRewardsCommon(toString(i.caller), false)
418+ if ((claimRes._1 == 0))
419+ then throw("claim amount must be greater than 0")
420+ else {
421+ let inv = invoke(tokenContract, "withdrawLpReward", [claimRes._1, toString(i.caller)], nil)
422+ if ((inv == inv))
423+ then claimRes._2
424+ else throw("Strict value is not equal to itself.")
425+ }
426+ }
427+
428+
429+
430+@Callable(i)
431+func lendAction (user,tokenId) = valueOrElse(isLandCall(i), {
432+ let userAvailableClaim = valueOrElse(getInteger(this, (tokenId + kUserLendAvailableClaim)), 0)
433+ let $t01226512332 = calcLendUserReward(user, tokenId)
434+ let uReward = $t01226512332._1
435+ let newTokenInterest = $t01226512332._2
436+[IntegerEntry((((user + "_") + tokenId) + kUserLendInterest), newTokenInterest), IntegerEntry((((user + "_") + tokenId) + kUserLendAvailableClaim), (userAvailableClaim + uReward)), IntegerEntry((tokenId + kTokenInterest), newTokenInterest), IntegerEntry((tokenId + kTokenInterestHeight), height)]
437+ })
438+
439+
440+
441+@Callable(i)
442+func lpAction (user) = valueOrElse(isSFFarmingCall(i), {
443+ let userAvailableClaim = valueOrElse(getInteger(this, kUserLpAvailableClaim), 0)
444+ let $t01279712850 = calcLpUserReward(user)
445+ let uReward = $t01279712850._1
446+ let newLpInterest = $t01279712850._2
447+[IntegerEntry((user + kUserLpInterest), newLpInterest), IntegerEntry((user + kUserLpAvailableClaim), (userAvailableClaim + uReward)), IntegerEntry((user + kLpInterest), newLpInterest), IntegerEntry((user + kLpInterestHeight), height)]
448+ })
449+
450+
451+
452+@Callable(i)
453+func init (axlyMainContractAddr,axlyTokenomicContractAddr,axlyPoolAddr,farmingStartHeight,periodLength) = valueOrElse(isSelfCall(i), if (!(isDefined(addressFromString(axlyMainContractAddr))))
454+ then throw("Wrong farming address")
455+ else if (!(isDefined(addressFromString(axlyTokenomicContractAddr))))
456+ then throw("Wrong main contract address")
457+ else [StringEntry(kAxlyMainContract, axlyMainContractAddr), StringEntry(kAxlyTokenomicContract, axlyTokenomicContractAddr), StringEntry(kAxlyPool, axlyPoolAddr), IntegerEntry(kStartHeight, farmingStartHeight), StringEntry(kTokens, "")])
458+
459+
460+
461+@Callable(i)
462+func initNewToken (tokenId) = valueOrElse(isAdminCall(i), if (isDefined(getInteger(this, (tokenId + kTokenInterest))))
463+ then throw("token already inited")
464+ else if (!(contains(getStringValue(this, kLendSetupTokens), tokenId)))
465+ then throw("no token on landing")
466+ else [IntegerEntry((tokenId + kTokenInterest), 0), IntegerEntry((tokenId + kTokenInterestHeight), height), StringEntry(kTokens, makeString((allTokens :+ tokenId), ",")), IntegerEntry(kTokenRewardPerBlock, 0)])
467+
468+
469+
470+@Callable(i)
471+func updateRewards () = valueOrElse(isOperatorCall(i), {
472+ let lastUpdateHeight = valueOrElse(getInteger(this, kRewardUpdateHeight), 0)
473+ if (((lastUpdateHeight + periodLength) > height))
474+ then throw("rewards alredy updated in this period")
475+ else {
476+ let $t01452614606 = getTotalSupplyAllTokens()
477+ let totalSupply = $t01452614606._1
478+ let totalSupplyUsd = $t01452614606._2
479+ let totalSupplyUsdAll = $t01452614606._3
480+ let axlyPrice = getAssetPrice(axlyId)
481+ let axlyPrecision = getAssetPrecision(axlyId)
482+ let maxAPR = getAdoptedAPRByPeriod(curPeriod, LENDERS_APR_PERIODS, LENDERS_APR)
483+ func updateReward (a,tokenId) = {
484+ let $t01485014875 = a
485+ let enteries = $t01485014875._1
486+ let index = $t01485014875._2
487+ if ((totalSupply[index] == 0))
488+ then $Tuple2((enteries ++ [IntegerEntry((tokenId + kTokenRewardPerBlock), 0), IntegerEntry((tokenId + kTokenInterest), calcNewTokenInterest(tokenId, totalSupply[index])), IntegerEntry((tokenId + kTokenInterestHeight), height)]), (index + 1))
489+ else {
490+ let share = fraction(totalSupplyUsd[index], SCALE8, totalSupplyUsdAll)
491+ let maxReward = fraction(share, lendMaxPeriodAmount, SCALE8)
492+ let maxRewardUsd = fraction(maxReward, axlyPrice, axlyPrecision)
493+ let prevTotalSupply = valueOrElse(getInteger(this, kPrevLendTokenSupply), 0)
494+ let rtCoef = if (if ((prevTotalSupply == 0))
495+ then true
496+ else (totalSupply[index] == 0))
497+ then 0
498+ else fraction(prevTotalSupply, SCALE8, totalSupply[index])
499+ let reward = (min([(maxAPR * (SCALE8 + rtCoef)), fraction(maxAPR, (15 * SCALE8), 10)]) / SCALE8)
500+ let rewardUsd = min([maxRewardUsd, fraction(totalSupplyUsd[index], reward, SCALE8)])
501+ let rewardPeriod = fraction(rewardUsd, axlyPrice, axlyPrecision)
502+ let rewardPerBlock = (rewardPeriod / periodLength)
503+ $Tuple2((enteries ++ [IntegerEntry((tokenId + kPrevLendTokenSupply), totalSupply[index]), IntegerEntry((tokenId + kTokenRewardPerBlock), rewardPerBlock), IntegerEntry((tokenId + kTokenInterest), calcNewTokenInterest(tokenId, totalSupply[index])), IntegerEntry((tokenId + kTokenInterestHeight), height)]), (index + 1))
504+ }
505+ }
506+
507+ let $t01634616418 = {
508+ let $l = allTokens
509+ let $s = size($l)
510+ let $acc0 = $Tuple2(nil, 0)
511+ func $f0_1 ($a,$i) = if (($i >= $s))
512+ then $a
513+ else updateReward($a, $l[$i])
514+
515+ func $f0_2 ($a,$i) = if (($i >= $s))
516+ then $a
517+ else throw("List size exceeds 30")
518+
519+ $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)
520+ }
521+ let tokensEnteries = $t01634616418._1
522+ let index = $t01634616418._2
523+ let lpMaxAPR = getAdoptedAPRByPeriod(curPeriod, LP_APR_PERIODS, LP_APR)
524+ let lpTotalSupply = getIntegerValue(sfFarmingContract, (axlyPool + kSFTotalSupply))
525+ let preLPSupply = valueOrElse(getInteger(this, kPrevLPSupply), 0)
526+ let lpId = getStringValue(addressFromStringValue(axlyPool), kLpId)
527+ let lpPrecision = getAssetPrecision(lpId)
528+ let lpPrice = {
529+ let @ = ({
530+ let @ = invoke(mainContract, "getShareAssetPriceREADONLY", [[lpId]], nil)
531+ if ($isInstanceOf(@, "List[Any]"))
532+ then @
533+ else throw(($getType(@) + " couldn't be cast to List[Any]"))
534+ })[0]
535+ if ($isInstanceOf(@, "Int"))
536+ then @
537+ else throw(($getType(@) + " couldn't be cast to Int"))
538+ }
539+ let lpTotalSupplyUsd = fraction(lpTotalSupply, lpPrice, lpPrecision)
540+ let maxLPRewardUsd = fraction(lpMaxPeriodAmount, axlyPrice, axlyPrecision)
541+ let rtLPCoef = if (if ((preLPSupply == 0))
542+ then true
543+ else (lpTotalSupply == 0))
544+ then 0
545+ else fraction(preLPSupply, SCALE8, lpTotalSupply)
546+ let rewardLp = (min([(lpMaxAPR * (SCALE8 + rtLPCoef)), fraction(lpMaxAPR, (15 * SCALE8), 10)]) / SCALE8)
547+ let rewardLpUsd = min([maxLPRewardUsd, fraction(lpTotalSupplyUsd, rewardLp, SCALE8)])
548+ let rewardLpPeriod = fraction(rewardLpUsd, axlyPrice, axlyPrecision)
549+ let rewardLpPerBlock = (rewardLpPeriod / periodLength)
550+ let lpEnteries = [IntegerEntry(kPrevLPSupply, lpTotalSupply), IntegerEntry(kLpRewardPerBlock, rewardLpPerBlock), IntegerEntry(kLpInterest, calcNewLpInterest(lpTotalSupply)), IntegerEntry(kLpInterestHeight, height)]
551+ ((lpEnteries ++ tokensEnteries) :+ IntegerEntry(kRewardUpdateHeight, height))
552+ }
553+ })
554+
555+
556+@Verifier(tx)
557+func verify () = {
558+ let multiSignedByAdmins = {
559+ let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], admin1PK))
560+ then 1
561+ else 0
562+ let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], admin2PK))
563+ then 1
564+ else 0
565+ let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], admin3PK))
566+ then 1
567+ else 0
568+ (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2)
569+ }
570+ match tx {
571+ case inv: InvokeScriptTransaction =>
572+ let isSelf = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
573+ let isRightFee = if ((inv.fee == 900000))
574+ then (inv.feeAssetId == unit)
575+ else false
576+ let isInitCall = (inv.function == "init")
577+ let isnoPayments = (size(inv.payments) == 0)
578+ if (if (if (if (isRightFee)
579+ then isInitCall
580+ else false)
581+ then isSelf
582+ else false)
583+ then isnoPayments
584+ else false)
585+ then true
586+ else multiSignedByAdmins
587+ case _ =>
588+ multiSignedByAdmins
589+ }
590+ }
591+

github/deemru/w8io/169f3d6 
43.99 ms