tx · HVoxBJz4wP62UuToXH3PDuMN2vgfcisuLwzWy5n5Vzf

3MsNhK6uve98J6DeqbuwGFBRh9GoHPGUFgp:  -0.01400000 Waves

2021.12.16 19:22 [1837045] smart account 3MsNhK6uve98J6DeqbuwGFBRh9GoHPGUFgp > SELF 0.00000000 Waves

{ "type": 13, "id": "HVoxBJz4wP62UuToXH3PDuMN2vgfcisuLwzWy5n5Vzf", "fee": 1400000, "feeAssetId": null, "timestamp": 1639671750575, "version": 1, "sender": "3MsNhK6uve98J6DeqbuwGFBRh9GoHPGUFgp", "senderPublicKey": "86RHVxKovtU7yKnepY8wKsd8niDxGAsiwuA1XA1DNqrS", "proofs": [ "447Qz4GPNLypMdxSZeKm5hmWkvAKehEJxb3DU9VyMuKPSyTCnF8DVXdabsqdnPQESxdUntUMG3dnEFa6wAhHtKND" ], "script": "base64:AAIFAAAAAAAAAD4IAhIDCgEIEgMKAQgSBAoCCAgSAwoBCBIHCgUBAQEICBIAEgMKAQgSBAoCCAESBAoCCAESBAoCCAESAwoBCAAAAFQAAAAABlNDQUxFOAAAAAAAAAAACAAAAAAFTVVMVDgAAAAAAAX14QAAAAAAB1NDQUxFMTgAAAAAAAAAABIAAAAABk1VTFQxOAkAATYAAAABAA3gtrOnZAAAAAAAAANTRVACAAAAAl9fAAAAAA5QT09MV0VJR0hUTVVMVAUAAAAFTVVMVDgAAAAACnplcm9CaWdJbnQJAAE2AAAAAQAAAAAAAAAAAAAAAAAOaWR4UG9vbEFkZHJlc3MAAAAAAAAAAAEAAAAADWlkeFBvb2xTdGF0dXMAAAAAAAAAAAIAAAAAEGlkeFBvb2xMUEFzc2V0SWQAAAAAAAAAAAMAAAAADWlkeEFtdEFzc2V0SWQAAAAAAAAAAAQAAAAAD2lkeFByaWNlQXNzZXRJZAAAAAAAAAAABQAAAAAOaWR4QW10QXNzZXREY20AAAAAAAAAAAYAAAAAEGlkeFByaWNlQXNzZXREY20AAAAAAAAAAAcAAAAADmlkeElBbXRBc3NldElkAA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kAA/wAAAAEBQAAAAxib29zdGluZ0RhcHACAAAAE2d3eFVzZXJJbmZvUkVBRE9OTFkJAARMAAAAAgUAAAALdXNlckFkZHJlc3MFAAAAA25pbAUAAAADbmlsAwkAAAEAAAACBQAAAAFAAgAAAAlMaXN0W0FueV0FAAAAAUAJAAACAAAAAQIAAAAeQ291bGRuJ3QgY2FzdCBBbnkgdG8gTGlzdFtBbnldBAAAAAlnd3hBbW91bnQKAAAAAAFACQABkQAAAAIFAAAAD2d3eFVzZXJJbmZvTElTVAAAAAAAAAAAAAMJAAABAAAAAgUAAAABQAIAAAADSW50BQAAAAFACQAAAgAAAAECAAAAGENvdWxkbid0IGNhc3QgQW55IHRvIEludAkABRQAAAACBQAAAANuaWwJAAS5AAAAAgkABEwAAAACAgAAAAIlZAkABEwAAAACCQABpAAAAAEFAAAACWd3eEFtb3VudAUAAAADbmlsBQAAAANTRVAAAAAA1C8aig==", "chainId": 84, "height": 1837045, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6xLAqyPd79dCCuRwDkENhSLPJTFUxUAN54Eo1QEe2GWe Next: 6Z5wHDjCVNAxK8Vt1D83warf5GpCoSznW7wiqQCxuvMN Diff:
OldNewDifferences
1010 let MULT18 = toBigInt(1000000000000000000)
1111
1212 let SEP = "__"
13+
14+let POOLWEIGHTMULT = MULT8
1315
1416 let zeroBigInt = toBigInt(0)
1517
4547 func getIntOrFail (address,key) = valueOrErrorMessage(getInteger(address, key), (("mandatory this." + key) + " is not defined"))
4648
4749
50+func asAnyList (val) = match val {
51+ case valAnyLyst: List[Any] =>
52+ valAnyLyst
53+ case _ =>
54+ throw("fail to cast into List[Any]")
55+}
56+
57+
58+func asInt (val) = match val {
59+ case valInt: Int =>
60+ valInt
61+ case _ =>
62+ throw("fail to cast into Int")
63+}
64+
65+
66+func asString (val) = match val {
67+ case valStr: String =>
68+ valStr
69+ case _ =>
70+ throw("fail to cast into String")
71+}
72+
73+
4874 func keyFactoryAddress () = "%s%s__config__factoryAddress"
75+
76+
77+let IdxFactoryCfgStakingDapp = 1
78+
79+let IdxFactoryCfgBoostingDapp = 2
80+
81+let IdxFactoryCfgIdoDapp = 3
82+
83+let IdxFactoryCfgTeamDapp = 4
84+
85+let IdxFactoryCfgEmissionDapp = 5
86+
87+let IdxFactoryCfgRestDapp = 6
88+
89+let IdxFactoryCfgSlippageDapp = 7
90+
91+let IdxFactoryCfgGwxRewardDapp = 8
92+
93+func keyFactoryCfg () = "%s__factoryConfig"
94+
95+
96+func keyFactoryLp2AssetsMapping (lpAssetStr) = makeString(["%s%s%s", lpAssetStr, "mappings__lpAsset2PoolContract"], SEP)
97+
98+
99+func keyFactoryLpList () = "%s__lpTokensList"
49100
50101
51102 func keyFactoryLpAssetToPoolContractAddress (lpAssetStr) = makeString(["%s%s%s", lpAssetStr, "mappings__lpAsset2PoolContract"], SEP)
52103
53104
54-func keyFactoryLpList () = "%s__lpTokensList"
55-
56-
57-func keyFactoryCfg () = "%s__factoryConfig"
105+func keyFactoryPoolWeight (contractAddress) = makeString(["%s%s", "poolWeight", contractAddress], SEP)
58106
59107
60108 func readFactoryAddressOrFail () = addressFromStringValue(getStringOrFail(keyFactoryAddress()))
63111 func readLpList () = split(valueOrElse(getString(readFactoryAddressOrFail(), keyFactoryLpList()), ""), SEP)
64112
65113
66-func readFactoryCfgOrFail () = split(getStringByAddressOrFail(readFactoryAddressOrFail(), keyFactoryCfg()), SEP)
114+func readFactoryCfgOrFail (factory) = split(getStringByAddressOrFail(factory, keyFactoryCfg()), SEP)
115+
116+
117+func getBoostingAddressOrFail (fCfg) = addressFromStringValue(fCfg[IdxFactoryCfgBoostingDapp])
118+
119+
120+func getEmissionAddressOrFail (fCfg) = addressFromStringValue(fCfg[IdxFactoryCfgEmissionDapp])
121+
122+
123+func getStakingAddressOrFail (fCfg) = addressFromStringValue(fCfg[IdxFactoryCfgStakingDapp])
124+
125+
126+func getGwxRewardAddressOrFail (fCfg) = addressFromStringValue(fCfg[IdxFactoryCfgGwxRewardDapp])
127+
128+
129+func keyBoostCfg () = "%s__config"
130+
131+
132+func keyBoostingLockParamTotalAmount () = "%s%s__stats__activeTotalLocked"
133+
134+
135+func keyBoostingStatsLocksDurationSumInBlocks () = "%s%s__stats__locksDurationSumInBlocks"
136+
137+
138+func keyBoostingStatsLocksCount () = "%s%s__stats__locksCount"
139+
140+
141+func keyBoostingStatsUsersCount () = "%s%s__stats__activeUsersCount"
142+
143+
144+func keyUser2NumMapping (userAddress) = makeString(["%s%s%s__mapping__user2num", userAddress], SEP)
145+
146+
147+func keyNum2UserMapping (num) = makeString(["%s%s%s__mapping__num2user", num], SEP)
148+
149+
150+func keyLockParamUserAmount (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "amount"], SEP)
151+
152+
153+func keyLockParamStartBlock (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "start"], SEP)
154+
155+
156+func keyLockParamDuration (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "duration"], SEP)
157+
158+
159+func keyLockParamK (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "k"], SEP)
160+
161+
162+func keyLockParamB (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "b"], SEP)
163+
164+
165+func keyLockParamByPeriodK (userNum,period) = makeString(["%s%d%s%d__paramByPeriod", userNum, "k", period], SEP)
166+
167+
168+func keyLockParamByPeriodB (userNum,period) = makeString(["%s%d%s%d__paramByPeriod", userNum, "b", period], SEP)
169+
170+
171+func keyUserBoostEmissionLastINTEGRAL (userNum) = makeString(["%s%d__userBoostEmissionLastInt", userNum], SEP)
172+
173+
174+func keyUserMaxBoostINTEGRAL (userNum) = makeString(["%s%d__maxBoostInt", userNum], SEP)
175+
176+
177+func keyTotalMaxBoostINTEGRAL () = "%s%s__maxBoostInt__total"
178+
179+
180+func keyUserBoostAvalaibleToClaimTotal (userNum) = makeString(["%s%d__userBoostAvaliableToClaimTotal", userNum], SEP)
181+
182+
183+func keyUserBoostClaimed (userNum) = makeString(["%s%d__userBoostClaimed", userNum], SEP)
184+
185+
186+func keyTotalCachedGwx () = "%s%s__gwxCached__total"
67187
68188
69189 func keyStakedByUser (userAddressStr,lpAssetIdStr) = makeString(["%s%s%s__staked", userAddressStr, lpAssetIdStr], SEP)
72192 func keyStakedTotal (lpAssetIdStr) = ("%s%s%s__staked__total__" + lpAssetIdStr)
73193
74194
75-func keyPoolWeight (contractAddress) = makeString(["%s%s", "poolWeight", contractAddress], SEP)
195+func keyClaimedByUser (lpAssetIdStr,userAddressStr) = makeString(["%s%s%s__claimed", userAddressStr, lpAssetIdStr], SEP)
76196
77197
78-func getStakingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[1])
198+func keyClaimedByUserMinReward (lpAssetIdStr,userAddressStr) = makeString(["%s%s%s__claimedMinReward", userAddressStr, lpAssetIdStr], SEP)
79199
80200
81-func internalCurrentRewardRate (stakingContract,lpAssetId) = {
82- let wxEmissionPerBlock = 0
83- let maxFactor = (1 * MULT8)
84- let totalLpStaked = getIntOrZero(stakingContract, keyStakedTotal(lpAssetId))
85-[wxEmissionPerBlock, maxFactor, totalLpStaked]
201+func keyClaimedByUserBoostReward (lpAssetIdStr,userAddressStr) = makeString(["%s%s%s__claimedBoostReward", userAddressStr, lpAssetIdStr], SEP)
202+
203+
204+func readStaked (stakingDapp,key) = valueOrElse(getInteger(stakingDapp, key), 0)
205+
206+
207+func keyEmissionRatePerBlockCurrent () = "%s%s__ratePerBlock__current"
208+
209+
210+func keyEmissionRatePerBlockMaxCurrent () = "%s%s__ratePerBlockMax__current"
211+
212+
213+func keyEmissionStartBlock () = "%s%s__emission__startBlock"
214+
215+
216+func keyEmissionDurationInBlocks () = "%s%s__emission__duration"
217+
218+
219+func keyEmissionEndBlock () = "%s%s__emission__endBlock"
220+
221+
222+let factoryDapp = readFactoryAddressOrFail()
223+
224+let factoryCfg = readFactoryCfgOrFail(factoryDapp)
225+
226+let emissionDapp = getEmissionAddressOrFail(factoryCfg)
227+
228+let stakingDapp = getStakingAddressOrFail(factoryCfg)
229+
230+let gwxRewardDapp = getGwxRewardAddressOrFail(factoryCfg)
231+
232+let boostingDapp = getBoostingAddressOrFail(factoryCfg)
233+
234+func internalCurrentRewardRate (lpAssetId) = {
235+ let poolAddressStr = getStringByAddressOrFail(factoryDapp, keyFactoryLpAssetToPoolContractAddress(lpAssetId))
236+ let poolWeightMult = MULT8
237+ let poolWeight = getIntegerValue(factoryDapp, keyFactoryPoolWeight(poolAddressStr))
238+ let wxEmissionPerBlock = getIntOrFail(emissionDapp, keyEmissionRatePerBlockCurrent())
239+ let wxEmissionPerBlockMax = getIntOrFail(emissionDapp, keyEmissionRatePerBlockMaxCurrent())
240+ let boostMaxCoeff = 3
241+ let poolWxEmissionPerBlock = (fraction(wxEmissionPerBlock, poolWeight, poolWeightMult) / boostMaxCoeff)
242+ let poolWxEmissionPerBlockMax = fraction(wxEmissionPerBlockMax, poolWeight, poolWeightMult)
243+ let maxFactor = (boostMaxCoeff * MULT8)
244+ let totalLpStaked = getIntOrZero(stakingDapp, keyStakedTotal(lpAssetId))
245+[poolWxEmissionPerBlock, maxFactor, totalLpStaked]
246+ }
247+
248+
249+func calcGwxAmountStartREADONLY (lockAmount,lockDuration,maxLockDuration) = {
250+ let coeffX8 = fraction(lockDuration, MULT8, maxLockDuration)
251+ let gWxAmountStart = fraction(lockAmount, coeffX8, MULT8)
252+[gWxAmountStart]
86253 }
87254
88255
95262
96263 @Callable(i)
97264 func currentRewardRateREADONLY (lpAssetId) = {
98- let factoryCfgArray = readFactoryCfgOrFail()
99- let stakingContract = getStakingAddressOrFail(factoryCfgArray)
100- let rewardData = internalCurrentRewardRate(stakingContract, lpAssetId)
265+ let rewardData = internalCurrentRewardRate(lpAssetId)
101266 let wxEmissionPerBlock = rewardData[0]
102267 let maxFactor = rewardData[1]
103268 let totalLpStaked = rewardData[2]
108273
109274 @Callable(i)
110275 func currentUserRewardRateREADONLY (lpAssetId,userAddress) = {
111- let factoryCfgArray = readFactoryCfgOrFail()
112- let stakingContract = getStakingAddressOrFail(factoryCfgArray)
113- let rewardData = internalCurrentRewardRate(stakingContract, lpAssetId)
276+ let rewardData = internalCurrentRewardRate(lpAssetId)
114277 let wxEmissionPerBlock = rewardData[0]
115278 let maxFactor = rewardData[1]
116279 let totalLpStaked = rewardData[2]
117- let lpStakedByUser = getIntOrZero(stakingContract, keyStakedByUser(userAddress, lpAssetId))
118- let boostingPower = (1 * MULT8)
119- $Tuple2(nil, makeString(["%d%d%d", toString(wxEmissionPerBlock), toString(maxFactor), toString(totalLpStaked), toString(lpStakedByUser), toString(boostingPower)], SEP))
280+ let lpStakedByUser = getIntOrZero(stakingDapp, keyStakedByUser(userAddress, lpAssetId))
281+ let userClaimInfo = split(asString(invoke(stakingDapp, "claimWxREADONLY", [lpAssetId, userAddress], nil)), SEP)
282+ let minRewardPart = valueOrErrorMessage(parseInt(userClaimInfo[5]), "couldn't parse minRewardPart")
283+ let boostRewardPart = valueOrErrorMessage(parseInt(userClaimInfo[6]), "couldn't parse boostRewardPart")
284+ let debug = userClaimInfo[7]
285+ let boostingPower = if ((boostRewardPart == 0))
286+ then (1 * MULT8)
287+ else fraction((minRewardPart + boostRewardPart), MULT8, minRewardPart)
288+ $Tuple2(nil, makeString(["%d%d%d%d%d%s", toString(wxEmissionPerBlock), toString(maxFactor), toString(totalLpStaked), toString(lpStakedByUser), toString(boostingPower), debug], SEP))
120289 }
121290
122291
126295 let lpList = readLpList()
127296 let prefix = "%s%d%d%d%s"
128297 func claimedRewardByLpAggregator (resultStr,nextLp) = {
129- let rand = ((toInt(fromBase58String(nextLp)) % 100000) + (toInt(toBytes(userAddress)) % 100000))
130- let absRand = if ((0 > rand))
131- then -(rand)
132- else rand
133- let val = (((absRand % 100) * MULT8) + (absRand * (MULT8 / 100000)))
134- let minRewardClaimed = 0
135- let boostRewardClaimed = 0
298+ let claimedByUserMinRewardKEY = keyClaimedByUserMinReward(nextLp, userAddress)
299+ let claimedByUserBoostRewardKEY = keyClaimedByUserBoostReward(nextLp, userAddress)
300+ let minRewardClaimed = valueOrElse(getInteger(stakingDapp, claimedByUserMinRewardKEY), 0)
301+ let boostRewardClaimed = valueOrElse(getInteger(stakingDapp, claimedByUserBoostRewardKEY), 0)
136302 let gFeeClaimed = 0
137303 makeString([(prefix + resultStr), nextLp, toString(minRewardClaimed), toString(boostRewardClaimed), toString(gFeeClaimed), "end"], SEP)
138304 }
158324
159325 @Callable(i)
160326 func calcBoostREADONLY (deltaWxAmount,deltaLockPeriodInBlocks,deltaLpAmount,lpAssetIdOpt,userAddressOpt) = {
161- let boost = if ((userAddressOpt != ""))
162- then (3 * MULT8)
163- else (1 * MULT8)
164- let monthes18 = fraction(toBigInt(deltaLockPeriodInBlocks), MULT18, toBigInt((30 * 1440)))
165- let coeff18 = (pow(monthes18, SCALE18, toBigInt(2), 0, SCALE18, HALFUP) / toBigInt(100))
166- let gWxAmount = fraction(toBigInt(deltaWxAmount), coeff18, MULT18)
167- $Tuple2(nil, makeString(["%d%d", toString(toInt(gWxAmount)), toString(boost)], SEP))
327+ let mathDapp = gwxRewardDapp
328+ let EMPTYSTR = "empty"
329+ let maxLockDurationInBlocks = parseIntValue(split(getStringByAddressOrFail(boostingDapp, keyBoostCfg()), SEP)[4])
330+ let lpAssetIdStr = if ((lpAssetIdOpt == ""))
331+ then EMPTYSTR
332+ else lpAssetIdOpt
333+ let userAddressStr = if ((userAddressOpt == ""))
334+ then EMPTYSTR
335+ else userAddressOpt
336+ let userNumStr = valueOrElse(getString(boostingDapp, keyUser2NumMapping(userAddressOpt)), EMPTYSTR)
337+ let userAmount = valueOrElse(getInteger(boostingDapp, keyLockParamUserAmount(userNumStr)), 0)
338+ let lockStart = valueOrElse(getInteger(boostingDapp, keyLockParamStartBlock(userNumStr)), height)
339+ let lockDuration = valueOrElse(getInteger(boostingDapp, keyLockParamDuration(userNumStr)), 0)
340+ let lockEnd = (lockStart + lockDuration)
341+ let remainingDuration = max([(lockEnd - height), 0])
342+ let userAmountNew = (userAmount + deltaWxAmount)
343+ let lockDurationNew = min([(remainingDuration + deltaLockPeriodInBlocks), maxLockDurationInBlocks])
344+ let userCurrgWxAmount = asInt(asAnyList(invoke(boostingDapp, "gwxUserInfoREADONLY", [userAddressStr], nil))[0])
345+ let gWxAmountStartNew = calcGwxAmountStartREADONLY(userAmountNew, lockDurationNew, maxLockDurationInBlocks)[0]
346+ let gWxParamsResultList = asAnyList(invoke(mathDapp, "calcGwxParamsREADONLY", [gWxAmountStartNew, height, lockDurationNew], nil))
347+ let gWxAmountDiff = (gWxAmountStartNew - userCurrgWxAmount)
348+ let k = asInt(gWxParamsResultList[0])
349+ let b = asInt(gWxParamsResultList[1])
350+ let period = toString(asInt(gWxParamsResultList[2]))
351+ let totalMaxBoostIntegralKEY = keyTotalMaxBoostINTEGRAL()
352+ let totalCachedGwxKEY = keyTotalCachedGwx()
353+ let userMaxBoostIntNew = ((gWxAmountStartNew * lockDurationNew) / 2)
354+ let totalMaxBoostInt = getIntOrZero(boostingDapp, totalMaxBoostIntegralKEY)
355+ let totalCachedGwx = valueOrElse(getInteger(boostingDapp, totalCachedGwxKEY), 0)
356+ let MULT3 = 1000
357+ let wxEmissionPerBlockX3 = (getIntOrFail(emissionDapp, keyEmissionRatePerBlockCurrent()) * MULT3)
358+ let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr)
359+ let stakedTotalKEY = keyStakedTotal(lpAssetIdStr)
360+ let stakedByUser = readStaked(stakingDapp, stakedByUserKEY)
361+ let stakedTotal = readStaked(stakingDapp, stakedTotalKEY)
362+ let stakedByUserNew = (stakedByUser + deltaLpAmount)
363+ let stakedTotalNew = (stakedTotal + deltaLpAmount)
364+ let poolWeight = if ((lpAssetIdStr != EMPTYSTR))
365+ then {
366+ let poolAddressStr = valueOrErrorMessage(getString(factoryDapp, keyFactoryLp2AssetsMapping(lpAssetIdStr)), ("unsupported lp asset " + lpAssetIdStr))
367+ getIntegerValue(factoryDapp, keyFactoryPoolWeight(poolAddressStr))
368+ }
369+ else 0
370+ let poolWxEmissionPerBlockX3 = fraction(wxEmissionPerBlockX3, poolWeight, (POOLWEIGHTMULT * 3))
371+ let wxPerLpX3 = if ((stakedTotalNew != 0))
372+ then fraction(poolWxEmissionPerBlockX3, MULT8, stakedTotalNew)
373+ else 0
374+ let userWxPerBlockX3 = fraction(wxPerLpX3, stakedByUserNew, MULT8)
375+ let boostEmissionPerBlockX3 = (poolWxEmissionPerBlockX3 * 2)
376+ let tmpUserBoostPerBlockX3 = fraction(gWxAmountStartNew, boostEmissionPerBlockX3, (totalCachedGwx + gWxAmountDiff))
377+ let userBoostPerBlockX3 = min([tmpUserBoostPerBlockX3, (userWxPerBlockX3 * 2)])
378+ let boostCoeff = if ((userWxPerBlockX3 == 0))
379+ then (1 * MULT8)
380+ else fraction((userBoostPerBlockX3 + userWxPerBlockX3), MULT8, userWxPerBlockX3)
381+ let debug = makeString([("lpAssetIdStr=" + lpAssetIdStr), ("userAddressStr=" + userAddressStr), ("userNumStr=" + userNumStr), ("userAmount=" + toString(userAmount)), ("userAmountNew=" + toString(userAmountNew)), ("lockDurationNew=" + toString(lockDurationNew)), ("gWxAmountStart=" + toString(gWxAmountStartNew)), ("tmpUserBoostPerBlockX3=" + toString(tmpUserBoostPerBlockX3)), ("stakedByUserNew=" + toString(stakedByUserNew)), ("stakedTotalNew=" + toString(stakedTotalNew)), ("poolWeight=" + toString(poolWeight)), ("wxPerLpX3=" + toString(wxPerLpX3)), ("poolWxEmissionPerBlockX3=" + toString(poolWxEmissionPerBlockX3)), ("userWxPerBlockX3=" + toString(userWxPerBlockX3)), ("gWxAmountDiff=" + toString(gWxAmountDiff)), ("totalCachedGwx=" + toString(totalCachedGwx)), ("userCurrgWxAmount=" + toString(userCurrgWxAmount))], "::")
382+ $Tuple2(nil, makeString(["%d%d%s", toString(gWxAmountStartNew), toString(boostCoeff), debug], SEP))
168383 }
169384
170385
173388 func wxEmissionStatsREADONLY () = {
174389 let ONEMULT = toString(MULT8)
175390 let ONE = "1"
176- let totalWxReleased = 0
177- let totalWxLocked = 0
178- let locksDurationSumInBlocks = 0
179- let locksCount = 0
391+ let wxEmissionPerBlock = getIntOrFail(emissionDapp, keyEmissionRatePerBlockCurrent())
392+ let emissionStartBlock = getIntOrFail(emissionDapp, keyEmissionStartBlock())
393+ let passedBlocks = if ((emissionStartBlock > height))
394+ then 0
395+ else (height - emissionStartBlock)
396+ let teamEmDuration = (1440 * 365)
397+ let teamEmMax = (201000000 * MULT8)
398+ let teamEm = if ((passedBlocks > teamEmDuration))
399+ then teamEmMax
400+ else fraction(teamEmMax, passedBlocks, teamEmDuration)
401+ let totalWxReleased = ((wxEmissionPerBlock * passedBlocks) + teamEm)
402+ let totalWxLocked = getIntOrZero(boostingDapp, keyBoostingLockParamTotalAmount())
403+ let locksDurationSumInBlocks = getIntOrZero(boostingDapp, keyBoostingStatsLocksDurationSumInBlocks())
404+ let locksCount = getIntOrZero(boostingDapp, keyBoostingStatsLocksCount())
180405 $Tuple2(nil, makeString(["%d%d%d%d", toString(totalWxReleased), toString(totalWxLocked), toString(locksDurationSumInBlocks), toString(locksCount)], SEP))
181406 }
182407
184409
185410 @Callable(i)
186411 func poolStatsREADONLY (lpAsset) = {
187- let factoryAddress = readFactoryAddressOrFail()
188- let poolAddress = addressFromStringValue(getStringByAddressOrFail(factoryAddress, keyFactoryLpAssetToPoolContractAddress(lpAsset)))
412+ let poolAddress = addressFromStringValue(getStringByAddressOrFail(factoryDapp, keyFactoryLpAssetToPoolContractAddress(lpAsset)))
189413 let cfg = {
190414 let @ = invoke(poolAddress, "getPoolConfigWrapperREADONLY", nil, nil)
191415 if ($isInstanceOf(@, "List[Any]"))
266490 then @
267491 else throw("Couldn't cast Any to Int")
268492 }
269- let poolWeight = getIntegerValue(readFactoryAddressOrFail(), keyPoolWeight(toString(poolAddress)))
493+ let poolWeight = getIntegerValue(factoryDapp, keyFactoryPoolWeight(toString(poolAddress)))
270494 $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(accAmtAssetBalance), toString(accPriceAssetBalance), toString(poolLPBalance), toString(curPrice), toString(lpAmtAssetShare), toString(lpPriceAssetShare), toString(poolWeight)], SEP))
271495 }
272496
274498
275499 @Callable(i)
276500 func poolEvaluatePutByAmountAssetREADONLY (lpAsset,inAmAssetAmt) = {
277- let factoryAddress = readFactoryAddressOrFail()
278- let poolAddress = addressFromStringValue(getStringByAddressOrFail(factoryAddress, keyFactoryLpAssetToPoolContractAddress(lpAsset)))
501+ let poolAddress = addressFromStringValue(getStringByAddressOrFail(factoryDapp, keyFactoryLpAssetToPoolContractAddress(lpAsset)))
279502 let cfg = {
280503 let @ = invoke(poolAddress, "getPoolConfigWrapperREADONLY", nil, nil)
281504 if ($isInstanceOf(@, "List[Any]"))
373596 else throw("Couldn't cast Any to Int")
374597 }
375598 let res = invoke(poolAddress, "estimatePutOperationWrapperREADONLY", ["", 500000, inAmAssetAmt, amAssetId, inPrAssetAmt, prAssetId, "", true, false], nil)
376- let $t01090111254 = match res {
599+ let $t02222922582 = match res {
377600 case _ =>
378601 if (if ($isInstanceOf($match0._1, "Int"))
379602 then if ($isInstanceOf($match0._3, "Int"))
394617 }
395618 else throw("Couldn't cast types")
396619 }
397- let calcLpAmt = $t01090111254._1
398- let curPriceCalc = $t01090111254._2
399- let amBalance = $t01090111254._3
400- let prBalance = $t01090111254._4
401- let lpEmission = $t01090111254._5
620+ let calcLpAmt = $t02222922582._1
621+ let curPriceCalc = $t02222922582._2
622+ let amBalance = $t02222922582._3
623+ let prBalance = $t02222922582._4
624+ let lpEmission = $t02222922582._5
402625 $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(calcLpAmt), toString(curPrice), toString(amBalance), toString(prBalance), toString(lpEmission), poolStatus, toString(inAmAssetAmt), toString(inPrAssetAmt)], SEP))
403626 }
404627
406629
407630 @Callable(i)
408631 func poolEvaluatePutByPriceAssetREADONLY (lpAsset,inPrAssetAmt) = {
409- let factoryAddress = readFactoryAddressOrFail()
410- let poolAddress = addressFromStringValue(getStringByAddressOrFail(factoryAddress, keyFactoryLpAssetToPoolContractAddress(lpAsset)))
632+ let poolAddress = addressFromStringValue(getStringByAddressOrFail(factoryDapp, keyFactoryLpAssetToPoolContractAddress(lpAsset)))
411633 let cfg = {
412634 let @ = invoke(poolAddress, "getPoolConfigWrapperREADONLY", nil, nil)
413635 if ($isInstanceOf(@, "List[Any]"))
505727 else throw("Couldn't cast Any to Int")
506728 }
507729 let res = invoke(poolAddress, "estimatePutOperationWrapperREADONLY", ["", 500000, inAmAssetAmt, amAssetId, inPrAssetAmt, prAssetId, "", true, false], nil)
508- let $t01395714310 = match res {
730+ let $t02523225585 = match res {
509731 case _ =>
510732 if (if ($isInstanceOf($match0._1, "Int"))
511733 then if ($isInstanceOf($match0._3, "Int"))
526748 }
527749 else throw("Couldn't cast types")
528750 }
529- let calcLpAmt = $t01395714310._1
530- let curPriceCalc = $t01395714310._2
531- let amBalance = $t01395714310._3
532- let prBalance = $t01395714310._4
533- let lpEmission = $t01395714310._5
751+ let calcLpAmt = $t02523225585._1
752+ let curPriceCalc = $t02523225585._2
753+ let amBalance = $t02523225585._3
754+ let prBalance = $t02523225585._4
755+ let lpEmission = $t02523225585._5
534756 $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(calcLpAmt), toString(curPrice), toString(amBalance), toString(prBalance), toString(lpEmission), poolStatus, toString(inAmAssetAmt), toString(inPrAssetAmt)], SEP))
535757 }
536758
538760
539761 @Callable(i)
540762 func poolEvaluateGetREADONLY (paymentLpAssetId,paymentLpAmt) = {
541- let factoryAddress = readFactoryAddressOrFail()
542- let poolAddress = addressFromStringValue(getStringByAddressOrFail(factoryAddress, keyFactoryLpAssetToPoolContractAddress(paymentLpAssetId)))
763+ let poolAddress = addressFromStringValue(getStringByAddressOrFail(factoryDapp, keyFactoryLpAssetToPoolContractAddress(paymentLpAssetId)))
543764 let res = invoke(poolAddress, "estimateGetOperationWrapperREADONLY", ["", paymentLpAssetId, paymentLpAmt, toString(poolAddress)], nil)
544- let $t01505815475 = match res {
765+ let $t02628026697 = match res {
545766 case _ =>
546767 if (if ($isInstanceOf($match0._1, "Int"))
547768 then if ($isInstanceOf($match0._2, "Int"))
568789 }
569790 else throw("Couldn't cast types")
570791 }
571- let outAmAmt = $t01505815475._1
572- let outPrAmt = $t01505815475._2
573- let amBalance = $t01505815475._3
574- let prBalance = $t01505815475._4
575- let lpEmission = $t01505815475._5
576- let curPrice = $t01505815475._6
577- let poolStatus = $t01505815475._7
792+ let outAmAmt = $t02628026697._1
793+ let outPrAmt = $t02628026697._2
794+ let amBalance = $t02628026697._3
795+ let prBalance = $t02628026697._4
796+ let lpEmission = $t02628026697._5
797+ let curPrice = $t02628026697._6
798+ let poolStatus = $t02628026697._7
578799 $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(outAmAmt), toString(outPrAmt), toString(amBalance), toString(prBalance), toString(lpEmission), curPrice, poolStatus], SEP))
800+ }
801+
802+
803+
804+@Callable(i)
805+func gwxUserInfoREADONLY (userAddress) = {
806+ let gwxUserInfoLIST = {
807+ let @ = invoke(boostingDapp, "gwxUserInfoREADONLY", [userAddress], nil)
808+ if ($isInstanceOf(@, "List[Any]"))
809+ then @
810+ else throw("Couldn't cast Any to List[Any]")
811+ }
812+ let gwxAmount = {
813+ let @ = gwxUserInfoLIST[0]
814+ if ($isInstanceOf(@, "Int"))
815+ then @
816+ else throw("Couldn't cast Any to Int")
817+ }
818+ $Tuple2(nil, makeString(["%d", toString(gwxAmount)], SEP))
579819 }
580820
581821
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let SCALE8 = 8
55
66 let MULT8 = 100000000
77
88 let SCALE18 = 18
99
1010 let MULT18 = toBigInt(1000000000000000000)
1111
1212 let SEP = "__"
13+
14+let POOLWEIGHTMULT = MULT8
1315
1416 let zeroBigInt = toBigInt(0)
1517
1618 let idxPoolAddress = 1
1719
1820 let idxPoolStatus = 2
1921
2022 let idxPoolLPAssetId = 3
2123
2224 let idxAmtAssetId = 4
2325
2426 let idxPriceAssetId = 5
2527
2628 let idxAmtAssetDcm = 6
2729
2830 let idxPriceAssetDcm = 7
2931
3032 let idxIAmtAssetId = 8
3133
3234 let idxIPriceAssetId = 9
3335
3436 let idxLPAssetDcm = 10
3537
3638 func getStringOrFail (key) = valueOrErrorMessage(getString(key), (("mandatory this." + key) + " is not defined"))
3739
3840
3941 func getStringByAddressOrFail (address,key) = valueOrErrorMessage(getString(address, key), (((("mandatory " + toString(address)) + ".") + key) + " is not defined"))
4042
4143
4244 func getIntOrZero (address,key) = valueOrElse(getInteger(address, key), 0)
4345
4446
4547 func getIntOrFail (address,key) = valueOrErrorMessage(getInteger(address, key), (("mandatory this." + key) + " is not defined"))
4648
4749
50+func asAnyList (val) = match val {
51+ case valAnyLyst: List[Any] =>
52+ valAnyLyst
53+ case _ =>
54+ throw("fail to cast into List[Any]")
55+}
56+
57+
58+func asInt (val) = match val {
59+ case valInt: Int =>
60+ valInt
61+ case _ =>
62+ throw("fail to cast into Int")
63+}
64+
65+
66+func asString (val) = match val {
67+ case valStr: String =>
68+ valStr
69+ case _ =>
70+ throw("fail to cast into String")
71+}
72+
73+
4874 func keyFactoryAddress () = "%s%s__config__factoryAddress"
75+
76+
77+let IdxFactoryCfgStakingDapp = 1
78+
79+let IdxFactoryCfgBoostingDapp = 2
80+
81+let IdxFactoryCfgIdoDapp = 3
82+
83+let IdxFactoryCfgTeamDapp = 4
84+
85+let IdxFactoryCfgEmissionDapp = 5
86+
87+let IdxFactoryCfgRestDapp = 6
88+
89+let IdxFactoryCfgSlippageDapp = 7
90+
91+let IdxFactoryCfgGwxRewardDapp = 8
92+
93+func keyFactoryCfg () = "%s__factoryConfig"
94+
95+
96+func keyFactoryLp2AssetsMapping (lpAssetStr) = makeString(["%s%s%s", lpAssetStr, "mappings__lpAsset2PoolContract"], SEP)
97+
98+
99+func keyFactoryLpList () = "%s__lpTokensList"
49100
50101
51102 func keyFactoryLpAssetToPoolContractAddress (lpAssetStr) = makeString(["%s%s%s", lpAssetStr, "mappings__lpAsset2PoolContract"], SEP)
52103
53104
54-func keyFactoryLpList () = "%s__lpTokensList"
55-
56-
57-func keyFactoryCfg () = "%s__factoryConfig"
105+func keyFactoryPoolWeight (contractAddress) = makeString(["%s%s", "poolWeight", contractAddress], SEP)
58106
59107
60108 func readFactoryAddressOrFail () = addressFromStringValue(getStringOrFail(keyFactoryAddress()))
61109
62110
63111 func readLpList () = split(valueOrElse(getString(readFactoryAddressOrFail(), keyFactoryLpList()), ""), SEP)
64112
65113
66-func readFactoryCfgOrFail () = split(getStringByAddressOrFail(readFactoryAddressOrFail(), keyFactoryCfg()), SEP)
114+func readFactoryCfgOrFail (factory) = split(getStringByAddressOrFail(factory, keyFactoryCfg()), SEP)
115+
116+
117+func getBoostingAddressOrFail (fCfg) = addressFromStringValue(fCfg[IdxFactoryCfgBoostingDapp])
118+
119+
120+func getEmissionAddressOrFail (fCfg) = addressFromStringValue(fCfg[IdxFactoryCfgEmissionDapp])
121+
122+
123+func getStakingAddressOrFail (fCfg) = addressFromStringValue(fCfg[IdxFactoryCfgStakingDapp])
124+
125+
126+func getGwxRewardAddressOrFail (fCfg) = addressFromStringValue(fCfg[IdxFactoryCfgGwxRewardDapp])
127+
128+
129+func keyBoostCfg () = "%s__config"
130+
131+
132+func keyBoostingLockParamTotalAmount () = "%s%s__stats__activeTotalLocked"
133+
134+
135+func keyBoostingStatsLocksDurationSumInBlocks () = "%s%s__stats__locksDurationSumInBlocks"
136+
137+
138+func keyBoostingStatsLocksCount () = "%s%s__stats__locksCount"
139+
140+
141+func keyBoostingStatsUsersCount () = "%s%s__stats__activeUsersCount"
142+
143+
144+func keyUser2NumMapping (userAddress) = makeString(["%s%s%s__mapping__user2num", userAddress], SEP)
145+
146+
147+func keyNum2UserMapping (num) = makeString(["%s%s%s__mapping__num2user", num], SEP)
148+
149+
150+func keyLockParamUserAmount (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "amount"], SEP)
151+
152+
153+func keyLockParamStartBlock (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "start"], SEP)
154+
155+
156+func keyLockParamDuration (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "duration"], SEP)
157+
158+
159+func keyLockParamK (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "k"], SEP)
160+
161+
162+func keyLockParamB (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "b"], SEP)
163+
164+
165+func keyLockParamByPeriodK (userNum,period) = makeString(["%s%d%s%d__paramByPeriod", userNum, "k", period], SEP)
166+
167+
168+func keyLockParamByPeriodB (userNum,period) = makeString(["%s%d%s%d__paramByPeriod", userNum, "b", period], SEP)
169+
170+
171+func keyUserBoostEmissionLastINTEGRAL (userNum) = makeString(["%s%d__userBoostEmissionLastInt", userNum], SEP)
172+
173+
174+func keyUserMaxBoostINTEGRAL (userNum) = makeString(["%s%d__maxBoostInt", userNum], SEP)
175+
176+
177+func keyTotalMaxBoostINTEGRAL () = "%s%s__maxBoostInt__total"
178+
179+
180+func keyUserBoostAvalaibleToClaimTotal (userNum) = makeString(["%s%d__userBoostAvaliableToClaimTotal", userNum], SEP)
181+
182+
183+func keyUserBoostClaimed (userNum) = makeString(["%s%d__userBoostClaimed", userNum], SEP)
184+
185+
186+func keyTotalCachedGwx () = "%s%s__gwxCached__total"
67187
68188
69189 func keyStakedByUser (userAddressStr,lpAssetIdStr) = makeString(["%s%s%s__staked", userAddressStr, lpAssetIdStr], SEP)
70190
71191
72192 func keyStakedTotal (lpAssetIdStr) = ("%s%s%s__staked__total__" + lpAssetIdStr)
73193
74194
75-func keyPoolWeight (contractAddress) = makeString(["%s%s", "poolWeight", contractAddress], SEP)
195+func keyClaimedByUser (lpAssetIdStr,userAddressStr) = makeString(["%s%s%s__claimed", userAddressStr, lpAssetIdStr], SEP)
76196
77197
78-func getStakingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[1])
198+func keyClaimedByUserMinReward (lpAssetIdStr,userAddressStr) = makeString(["%s%s%s__claimedMinReward", userAddressStr, lpAssetIdStr], SEP)
79199
80200
81-func internalCurrentRewardRate (stakingContract,lpAssetId) = {
82- let wxEmissionPerBlock = 0
83- let maxFactor = (1 * MULT8)
84- let totalLpStaked = getIntOrZero(stakingContract, keyStakedTotal(lpAssetId))
85-[wxEmissionPerBlock, maxFactor, totalLpStaked]
201+func keyClaimedByUserBoostReward (lpAssetIdStr,userAddressStr) = makeString(["%s%s%s__claimedBoostReward", userAddressStr, lpAssetIdStr], SEP)
202+
203+
204+func readStaked (stakingDapp,key) = valueOrElse(getInteger(stakingDapp, key), 0)
205+
206+
207+func keyEmissionRatePerBlockCurrent () = "%s%s__ratePerBlock__current"
208+
209+
210+func keyEmissionRatePerBlockMaxCurrent () = "%s%s__ratePerBlockMax__current"
211+
212+
213+func keyEmissionStartBlock () = "%s%s__emission__startBlock"
214+
215+
216+func keyEmissionDurationInBlocks () = "%s%s__emission__duration"
217+
218+
219+func keyEmissionEndBlock () = "%s%s__emission__endBlock"
220+
221+
222+let factoryDapp = readFactoryAddressOrFail()
223+
224+let factoryCfg = readFactoryCfgOrFail(factoryDapp)
225+
226+let emissionDapp = getEmissionAddressOrFail(factoryCfg)
227+
228+let stakingDapp = getStakingAddressOrFail(factoryCfg)
229+
230+let gwxRewardDapp = getGwxRewardAddressOrFail(factoryCfg)
231+
232+let boostingDapp = getBoostingAddressOrFail(factoryCfg)
233+
234+func internalCurrentRewardRate (lpAssetId) = {
235+ let poolAddressStr = getStringByAddressOrFail(factoryDapp, keyFactoryLpAssetToPoolContractAddress(lpAssetId))
236+ let poolWeightMult = MULT8
237+ let poolWeight = getIntegerValue(factoryDapp, keyFactoryPoolWeight(poolAddressStr))
238+ let wxEmissionPerBlock = getIntOrFail(emissionDapp, keyEmissionRatePerBlockCurrent())
239+ let wxEmissionPerBlockMax = getIntOrFail(emissionDapp, keyEmissionRatePerBlockMaxCurrent())
240+ let boostMaxCoeff = 3
241+ let poolWxEmissionPerBlock = (fraction(wxEmissionPerBlock, poolWeight, poolWeightMult) / boostMaxCoeff)
242+ let poolWxEmissionPerBlockMax = fraction(wxEmissionPerBlockMax, poolWeight, poolWeightMult)
243+ let maxFactor = (boostMaxCoeff * MULT8)
244+ let totalLpStaked = getIntOrZero(stakingDapp, keyStakedTotal(lpAssetId))
245+[poolWxEmissionPerBlock, maxFactor, totalLpStaked]
246+ }
247+
248+
249+func calcGwxAmountStartREADONLY (lockAmount,lockDuration,maxLockDuration) = {
250+ let coeffX8 = fraction(lockDuration, MULT8, maxLockDuration)
251+ let gWxAmountStart = fraction(lockAmount, coeffX8, MULT8)
252+[gWxAmountStart]
86253 }
87254
88255
89256 @Callable(i)
90257 func constructor (factoryAddress) = if ((i.caller != this))
91258 then throw("not authorized")
92259 else [StringEntry(keyFactoryAddress(), factoryAddress)]
93260
94261
95262
96263 @Callable(i)
97264 func currentRewardRateREADONLY (lpAssetId) = {
98- let factoryCfgArray = readFactoryCfgOrFail()
99- let stakingContract = getStakingAddressOrFail(factoryCfgArray)
100- let rewardData = internalCurrentRewardRate(stakingContract, lpAssetId)
265+ let rewardData = internalCurrentRewardRate(lpAssetId)
101266 let wxEmissionPerBlock = rewardData[0]
102267 let maxFactor = rewardData[1]
103268 let totalLpStaked = rewardData[2]
104269 $Tuple2(nil, makeString(["%d%d%d", toString(wxEmissionPerBlock), toString(maxFactor), toString(totalLpStaked)], SEP))
105270 }
106271
107272
108273
109274 @Callable(i)
110275 func currentUserRewardRateREADONLY (lpAssetId,userAddress) = {
111- let factoryCfgArray = readFactoryCfgOrFail()
112- let stakingContract = getStakingAddressOrFail(factoryCfgArray)
113- let rewardData = internalCurrentRewardRate(stakingContract, lpAssetId)
276+ let rewardData = internalCurrentRewardRate(lpAssetId)
114277 let wxEmissionPerBlock = rewardData[0]
115278 let maxFactor = rewardData[1]
116279 let totalLpStaked = rewardData[2]
117- let lpStakedByUser = getIntOrZero(stakingContract, keyStakedByUser(userAddress, lpAssetId))
118- let boostingPower = (1 * MULT8)
119- $Tuple2(nil, makeString(["%d%d%d", toString(wxEmissionPerBlock), toString(maxFactor), toString(totalLpStaked), toString(lpStakedByUser), toString(boostingPower)], SEP))
280+ let lpStakedByUser = getIntOrZero(stakingDapp, keyStakedByUser(userAddress, lpAssetId))
281+ let userClaimInfo = split(asString(invoke(stakingDapp, "claimWxREADONLY", [lpAssetId, userAddress], nil)), SEP)
282+ let minRewardPart = valueOrErrorMessage(parseInt(userClaimInfo[5]), "couldn't parse minRewardPart")
283+ let boostRewardPart = valueOrErrorMessage(parseInt(userClaimInfo[6]), "couldn't parse boostRewardPart")
284+ let debug = userClaimInfo[7]
285+ let boostingPower = if ((boostRewardPart == 0))
286+ then (1 * MULT8)
287+ else fraction((minRewardPart + boostRewardPart), MULT8, minRewardPart)
288+ $Tuple2(nil, makeString(["%d%d%d%d%d%s", toString(wxEmissionPerBlock), toString(maxFactor), toString(totalLpStaked), toString(lpStakedByUser), toString(boostingPower), debug], SEP))
120289 }
121290
122291
123292
124293 @Callable(i)
125294 func claimedRewardREADONLY (userAddress) = {
126295 let lpList = readLpList()
127296 let prefix = "%s%d%d%d%s"
128297 func claimedRewardByLpAggregator (resultStr,nextLp) = {
129- let rand = ((toInt(fromBase58String(nextLp)) % 100000) + (toInt(toBytes(userAddress)) % 100000))
130- let absRand = if ((0 > rand))
131- then -(rand)
132- else rand
133- let val = (((absRand % 100) * MULT8) + (absRand * (MULT8 / 100000)))
134- let minRewardClaimed = 0
135- let boostRewardClaimed = 0
298+ let claimedByUserMinRewardKEY = keyClaimedByUserMinReward(nextLp, userAddress)
299+ let claimedByUserBoostRewardKEY = keyClaimedByUserBoostReward(nextLp, userAddress)
300+ let minRewardClaimed = valueOrElse(getInteger(stakingDapp, claimedByUserMinRewardKEY), 0)
301+ let boostRewardClaimed = valueOrElse(getInteger(stakingDapp, claimedByUserBoostRewardKEY), 0)
136302 let gFeeClaimed = 0
137303 makeString([(prefix + resultStr), nextLp, toString(minRewardClaimed), toString(boostRewardClaimed), toString(gFeeClaimed), "end"], SEP)
138304 }
139305
140306 let result = {
141307 let $l = lpList
142308 let $s = size($l)
143309 let $acc0 = "%s"
144310 func $f0_1 ($a,$i) = if (($i >= $s))
145311 then $a
146312 else claimedRewardByLpAggregator($a, $l[$i])
147313
148314 func $f0_2 ($a,$i) = if (($i >= $s))
149315 then $a
150316 else throw("List size exceeds 10")
151317
152318 $f0_2($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)
153319 }
154320 $Tuple2(nil, ((result + SEP) + userAddress))
155321 }
156322
157323
158324
159325 @Callable(i)
160326 func calcBoostREADONLY (deltaWxAmount,deltaLockPeriodInBlocks,deltaLpAmount,lpAssetIdOpt,userAddressOpt) = {
161- let boost = if ((userAddressOpt != ""))
162- then (3 * MULT8)
163- else (1 * MULT8)
164- let monthes18 = fraction(toBigInt(deltaLockPeriodInBlocks), MULT18, toBigInt((30 * 1440)))
165- let coeff18 = (pow(monthes18, SCALE18, toBigInt(2), 0, SCALE18, HALFUP) / toBigInt(100))
166- let gWxAmount = fraction(toBigInt(deltaWxAmount), coeff18, MULT18)
167- $Tuple2(nil, makeString(["%d%d", toString(toInt(gWxAmount)), toString(boost)], SEP))
327+ let mathDapp = gwxRewardDapp
328+ let EMPTYSTR = "empty"
329+ let maxLockDurationInBlocks = parseIntValue(split(getStringByAddressOrFail(boostingDapp, keyBoostCfg()), SEP)[4])
330+ let lpAssetIdStr = if ((lpAssetIdOpt == ""))
331+ then EMPTYSTR
332+ else lpAssetIdOpt
333+ let userAddressStr = if ((userAddressOpt == ""))
334+ then EMPTYSTR
335+ else userAddressOpt
336+ let userNumStr = valueOrElse(getString(boostingDapp, keyUser2NumMapping(userAddressOpt)), EMPTYSTR)
337+ let userAmount = valueOrElse(getInteger(boostingDapp, keyLockParamUserAmount(userNumStr)), 0)
338+ let lockStart = valueOrElse(getInteger(boostingDapp, keyLockParamStartBlock(userNumStr)), height)
339+ let lockDuration = valueOrElse(getInteger(boostingDapp, keyLockParamDuration(userNumStr)), 0)
340+ let lockEnd = (lockStart + lockDuration)
341+ let remainingDuration = max([(lockEnd - height), 0])
342+ let userAmountNew = (userAmount + deltaWxAmount)
343+ let lockDurationNew = min([(remainingDuration + deltaLockPeriodInBlocks), maxLockDurationInBlocks])
344+ let userCurrgWxAmount = asInt(asAnyList(invoke(boostingDapp, "gwxUserInfoREADONLY", [userAddressStr], nil))[0])
345+ let gWxAmountStartNew = calcGwxAmountStartREADONLY(userAmountNew, lockDurationNew, maxLockDurationInBlocks)[0]
346+ let gWxParamsResultList = asAnyList(invoke(mathDapp, "calcGwxParamsREADONLY", [gWxAmountStartNew, height, lockDurationNew], nil))
347+ let gWxAmountDiff = (gWxAmountStartNew - userCurrgWxAmount)
348+ let k = asInt(gWxParamsResultList[0])
349+ let b = asInt(gWxParamsResultList[1])
350+ let period = toString(asInt(gWxParamsResultList[2]))
351+ let totalMaxBoostIntegralKEY = keyTotalMaxBoostINTEGRAL()
352+ let totalCachedGwxKEY = keyTotalCachedGwx()
353+ let userMaxBoostIntNew = ((gWxAmountStartNew * lockDurationNew) / 2)
354+ let totalMaxBoostInt = getIntOrZero(boostingDapp, totalMaxBoostIntegralKEY)
355+ let totalCachedGwx = valueOrElse(getInteger(boostingDapp, totalCachedGwxKEY), 0)
356+ let MULT3 = 1000
357+ let wxEmissionPerBlockX3 = (getIntOrFail(emissionDapp, keyEmissionRatePerBlockCurrent()) * MULT3)
358+ let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr)
359+ let stakedTotalKEY = keyStakedTotal(lpAssetIdStr)
360+ let stakedByUser = readStaked(stakingDapp, stakedByUserKEY)
361+ let stakedTotal = readStaked(stakingDapp, stakedTotalKEY)
362+ let stakedByUserNew = (stakedByUser + deltaLpAmount)
363+ let stakedTotalNew = (stakedTotal + deltaLpAmount)
364+ let poolWeight = if ((lpAssetIdStr != EMPTYSTR))
365+ then {
366+ let poolAddressStr = valueOrErrorMessage(getString(factoryDapp, keyFactoryLp2AssetsMapping(lpAssetIdStr)), ("unsupported lp asset " + lpAssetIdStr))
367+ getIntegerValue(factoryDapp, keyFactoryPoolWeight(poolAddressStr))
368+ }
369+ else 0
370+ let poolWxEmissionPerBlockX3 = fraction(wxEmissionPerBlockX3, poolWeight, (POOLWEIGHTMULT * 3))
371+ let wxPerLpX3 = if ((stakedTotalNew != 0))
372+ then fraction(poolWxEmissionPerBlockX3, MULT8, stakedTotalNew)
373+ else 0
374+ let userWxPerBlockX3 = fraction(wxPerLpX3, stakedByUserNew, MULT8)
375+ let boostEmissionPerBlockX3 = (poolWxEmissionPerBlockX3 * 2)
376+ let tmpUserBoostPerBlockX3 = fraction(gWxAmountStartNew, boostEmissionPerBlockX3, (totalCachedGwx + gWxAmountDiff))
377+ let userBoostPerBlockX3 = min([tmpUserBoostPerBlockX3, (userWxPerBlockX3 * 2)])
378+ let boostCoeff = if ((userWxPerBlockX3 == 0))
379+ then (1 * MULT8)
380+ else fraction((userBoostPerBlockX3 + userWxPerBlockX3), MULT8, userWxPerBlockX3)
381+ let debug = makeString([("lpAssetIdStr=" + lpAssetIdStr), ("userAddressStr=" + userAddressStr), ("userNumStr=" + userNumStr), ("userAmount=" + toString(userAmount)), ("userAmountNew=" + toString(userAmountNew)), ("lockDurationNew=" + toString(lockDurationNew)), ("gWxAmountStart=" + toString(gWxAmountStartNew)), ("tmpUserBoostPerBlockX3=" + toString(tmpUserBoostPerBlockX3)), ("stakedByUserNew=" + toString(stakedByUserNew)), ("stakedTotalNew=" + toString(stakedTotalNew)), ("poolWeight=" + toString(poolWeight)), ("wxPerLpX3=" + toString(wxPerLpX3)), ("poolWxEmissionPerBlockX3=" + toString(poolWxEmissionPerBlockX3)), ("userWxPerBlockX3=" + toString(userWxPerBlockX3)), ("gWxAmountDiff=" + toString(gWxAmountDiff)), ("totalCachedGwx=" + toString(totalCachedGwx)), ("userCurrgWxAmount=" + toString(userCurrgWxAmount))], "::")
382+ $Tuple2(nil, makeString(["%d%d%s", toString(gWxAmountStartNew), toString(boostCoeff), debug], SEP))
168383 }
169384
170385
171386
172387 @Callable(i)
173388 func wxEmissionStatsREADONLY () = {
174389 let ONEMULT = toString(MULT8)
175390 let ONE = "1"
176- let totalWxReleased = 0
177- let totalWxLocked = 0
178- let locksDurationSumInBlocks = 0
179- let locksCount = 0
391+ let wxEmissionPerBlock = getIntOrFail(emissionDapp, keyEmissionRatePerBlockCurrent())
392+ let emissionStartBlock = getIntOrFail(emissionDapp, keyEmissionStartBlock())
393+ let passedBlocks = if ((emissionStartBlock > height))
394+ then 0
395+ else (height - emissionStartBlock)
396+ let teamEmDuration = (1440 * 365)
397+ let teamEmMax = (201000000 * MULT8)
398+ let teamEm = if ((passedBlocks > teamEmDuration))
399+ then teamEmMax
400+ else fraction(teamEmMax, passedBlocks, teamEmDuration)
401+ let totalWxReleased = ((wxEmissionPerBlock * passedBlocks) + teamEm)
402+ let totalWxLocked = getIntOrZero(boostingDapp, keyBoostingLockParamTotalAmount())
403+ let locksDurationSumInBlocks = getIntOrZero(boostingDapp, keyBoostingStatsLocksDurationSumInBlocks())
404+ let locksCount = getIntOrZero(boostingDapp, keyBoostingStatsLocksCount())
180405 $Tuple2(nil, makeString(["%d%d%d%d", toString(totalWxReleased), toString(totalWxLocked), toString(locksDurationSumInBlocks), toString(locksCount)], SEP))
181406 }
182407
183408
184409
185410 @Callable(i)
186411 func poolStatsREADONLY (lpAsset) = {
187- let factoryAddress = readFactoryAddressOrFail()
188- let poolAddress = addressFromStringValue(getStringByAddressOrFail(factoryAddress, keyFactoryLpAssetToPoolContractAddress(lpAsset)))
412+ let poolAddress = addressFromStringValue(getStringByAddressOrFail(factoryDapp, keyFactoryLpAssetToPoolContractAddress(lpAsset)))
189413 let cfg = {
190414 let @ = invoke(poolAddress, "getPoolConfigWrapperREADONLY", nil, nil)
191415 if ($isInstanceOf(@, "List[Any]"))
192416 then @
193417 else throw("Couldn't cast Any to List[Any]")
194418 }
195419 let lpAssetId = fromBase58String({
196420 let @ = cfg[idxPoolLPAssetId]
197421 if ($isInstanceOf(@, "String"))
198422 then @
199423 else throw("Couldn't cast Any to String")
200424 })
201425 let amtAssetId = {
202426 let @ = cfg[idxAmtAssetId]
203427 if ($isInstanceOf(@, "String"))
204428 then @
205429 else throw("Couldn't cast Any to String")
206430 }
207431 let priceAssetId = {
208432 let @ = cfg[idxPriceAssetId]
209433 if ($isInstanceOf(@, "String"))
210434 then @
211435 else throw("Couldn't cast Any to String")
212436 }
213437 let iAmtAssetId = {
214438 let @ = cfg[idxIAmtAssetId]
215439 if ($isInstanceOf(@, "String"))
216440 then @
217441 else throw("Couldn't cast Any to String")
218442 }
219443 let iPriceAssetId = {
220444 let @ = cfg[idxIPriceAssetId]
221445 if ($isInstanceOf(@, "String"))
222446 then @
223447 else throw("Couldn't cast Any to String")
224448 }
225449 let amtAssetDcm = parseIntValue({
226450 let @ = cfg[idxAmtAssetDcm]
227451 if ($isInstanceOf(@, "String"))
228452 then @
229453 else throw("Couldn't cast Any to String")
230454 })
231455 let priceAssetDcm = parseIntValue({
232456 let @ = cfg[idxPriceAssetDcm]
233457 if ($isInstanceOf(@, "String"))
234458 then @
235459 else throw("Couldn't cast Any to String")
236460 })
237461 let poolLPBalance = valueOrErrorMessage(assetInfo(lpAssetId), (("Asset " + toBase58String(lpAssetId)) + " doesn't exist")).quantity
238462 let accAmtAssetBalance = {
239463 let @ = invoke(poolAddress, "getAccBalanceWrapperREADONLY", [amtAssetId], nil)
240464 if ($isInstanceOf(@, "Int"))
241465 then @
242466 else throw("Couldn't cast Any to Int")
243467 }
244468 let accPriceAssetBalance = {
245469 let @ = invoke(poolAddress, "getAccBalanceWrapperREADONLY", [priceAssetId], nil)
246470 if ($isInstanceOf(@, "Int"))
247471 then @
248472 else throw("Couldn't cast Any to Int")
249473 }
250474 let pricesList = {
251475 let @ = invoke(poolAddress, "calcPricesWrapperREADONLY", [accAmtAssetBalance, accPriceAssetBalance, poolLPBalance], nil)
252476 if ($isInstanceOf(@, "List[Any]"))
253477 then @
254478 else throw("Couldn't cast Any to List[Any]")
255479 }
256480 let curPrice = 0
257481 let lpAmtAssetShare = {
258482 let @ = invoke(poolAddress, "fromX18WrapperREADONLY", [pricesList[1], MULT8], nil)
259483 if ($isInstanceOf(@, "Int"))
260484 then @
261485 else throw("Couldn't cast Any to Int")
262486 }
263487 let lpPriceAssetShare = {
264488 let @ = invoke(poolAddress, "fromX18WrapperREADONLY", [pricesList[2], MULT8], nil)
265489 if ($isInstanceOf(@, "Int"))
266490 then @
267491 else throw("Couldn't cast Any to Int")
268492 }
269- let poolWeight = getIntegerValue(readFactoryAddressOrFail(), keyPoolWeight(toString(poolAddress)))
493+ let poolWeight = getIntegerValue(factoryDapp, keyFactoryPoolWeight(toString(poolAddress)))
270494 $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(accAmtAssetBalance), toString(accPriceAssetBalance), toString(poolLPBalance), toString(curPrice), toString(lpAmtAssetShare), toString(lpPriceAssetShare), toString(poolWeight)], SEP))
271495 }
272496
273497
274498
275499 @Callable(i)
276500 func poolEvaluatePutByAmountAssetREADONLY (lpAsset,inAmAssetAmt) = {
277- let factoryAddress = readFactoryAddressOrFail()
278- let poolAddress = addressFromStringValue(getStringByAddressOrFail(factoryAddress, keyFactoryLpAssetToPoolContractAddress(lpAsset)))
501+ let poolAddress = addressFromStringValue(getStringByAddressOrFail(factoryDapp, keyFactoryLpAssetToPoolContractAddress(lpAsset)))
279502 let cfg = {
280503 let @ = invoke(poolAddress, "getPoolConfigWrapperREADONLY", nil, nil)
281504 if ($isInstanceOf(@, "List[Any]"))
282505 then @
283506 else throw("Couldn't cast Any to List[Any]")
284507 }
285508 let lpAssetId = fromBase58String({
286509 let @ = cfg[idxPoolLPAssetId]
287510 if ($isInstanceOf(@, "String"))
288511 then @
289512 else throw("Couldn't cast Any to String")
290513 })
291514 let amAssetIdStr = {
292515 let @ = cfg[idxAmtAssetId]
293516 if ($isInstanceOf(@, "String"))
294517 then @
295518 else throw("Couldn't cast Any to String")
296519 }
297520 let amAssetId = fromBase58String(amAssetIdStr)
298521 let prAssetIdStr = {
299522 let @ = cfg[idxPriceAssetId]
300523 if ($isInstanceOf(@, "String"))
301524 then @
302525 else throw("Couldn't cast Any to String")
303526 }
304527 let prAssetId = fromBase58String(prAssetIdStr)
305528 let amtAssetDcm = parseIntValue({
306529 let @ = cfg[idxAmtAssetDcm]
307530 if ($isInstanceOf(@, "String"))
308531 then @
309532 else throw("Couldn't cast Any to String")
310533 })
311534 let priceAssetDcm = parseIntValue({
312535 let @ = cfg[idxPriceAssetDcm]
313536 if ($isInstanceOf(@, "String"))
314537 then @
315538 else throw("Couldn't cast Any to String")
316539 })
317540 let poolStatus = {
318541 let @ = cfg[idxPoolStatus]
319542 if ($isInstanceOf(@, "String"))
320543 then @
321544 else throw("Couldn't cast Any to String")
322545 }
323546 let poolLPBalance = valueOrErrorMessage(assetInfo(lpAssetId), (("Asset " + toBase58String(lpAssetId)) + " doesn't exist")).quantity
324547 let accAmtAssetBalance = {
325548 let @ = invoke(poolAddress, "getAccBalanceWrapperREADONLY", [amAssetIdStr], nil)
326549 if ($isInstanceOf(@, "Int"))
327550 then @
328551 else throw("Couldn't cast Any to Int")
329552 }
330553 let accPriceAssetBalance = {
331554 let @ = invoke(poolAddress, "getAccBalanceWrapperREADONLY", [prAssetIdStr], nil)
332555 if ($isInstanceOf(@, "Int"))
333556 then @
334557 else throw("Couldn't cast Any to Int")
335558 }
336559 let amtAssetAmtX18 = parseBigIntValue({
337560 let @ = invoke(poolAddress, "toX18WrapperREADONLY", [accAmtAssetBalance, amtAssetDcm], nil)
338561 if ($isInstanceOf(@, "String"))
339562 then @
340563 else throw("Couldn't cast Any to String")
341564 })
342565 let priceAssetAmtX18 = parseBigIntValue({
343566 let @ = invoke(poolAddress, "toX18WrapperREADONLY", [accPriceAssetBalance, priceAssetDcm], nil)
344567 if ($isInstanceOf(@, "String"))
345568 then @
346569 else throw("Couldn't cast Any to String")
347570 })
348571 let curPriceX18 = if ((poolLPBalance == 0))
349572 then zeroBigInt
350573 else parseBigIntValue({
351574 let @ = invoke(poolAddress, "calcPriceBigIntWrapperREADONLY", [toString(priceAssetAmtX18), toString(amtAssetAmtX18)], nil)
352575 if ($isInstanceOf(@, "String"))
353576 then @
354577 else throw("Couldn't cast Any to String")
355578 })
356579 let curPrice = {
357580 let @ = invoke(poolAddress, "fromX18WrapperREADONLY", [toString(curPriceX18), MULT8], nil)
358581 if ($isInstanceOf(@, "Int"))
359582 then @
360583 else throw("Couldn't cast Any to Int")
361584 }
362585 let inAmAssetAmtX18 = parseBigIntValue({
363586 let @ = invoke(poolAddress, "toX18WrapperREADONLY", [inAmAssetAmt, amtAssetDcm], nil)
364587 if ($isInstanceOf(@, "String"))
365588 then @
366589 else throw("Couldn't cast Any to String")
367590 })
368591 let inPrAssetAmtX18 = fraction(inAmAssetAmtX18, curPriceX18, MULT18)
369592 let inPrAssetAmt = {
370593 let @ = invoke(poolAddress, "fromX18WrapperREADONLY", [toString(inPrAssetAmtX18), priceAssetDcm], nil)
371594 if ($isInstanceOf(@, "Int"))
372595 then @
373596 else throw("Couldn't cast Any to Int")
374597 }
375598 let res = invoke(poolAddress, "estimatePutOperationWrapperREADONLY", ["", 500000, inAmAssetAmt, amAssetId, inPrAssetAmt, prAssetId, "", true, false], nil)
376- let $t01090111254 = match res {
599+ let $t02222922582 = match res {
377600 case _ =>
378601 if (if ($isInstanceOf($match0._1, "Int"))
379602 then if ($isInstanceOf($match0._3, "Int"))
380603 then if ($isInstanceOf($match0._4, "Int"))
381604 then if ($isInstanceOf($match0._5, "Int"))
382605 then $isInstanceOf($match0._6, "Int")
383606 else false
384607 else false
385608 else false
386609 else false)
387610 then {
388611 let calcLpAmt = $match0._1
389612 let curPriceCalc = $match0._3
390613 let amBalance = $match0._4
391614 let prBalance = $match0._5
392615 let lpEmission = $match0._6
393616 $Tuple5(calcLpAmt, curPriceCalc, amBalance, prBalance, lpEmission)
394617 }
395618 else throw("Couldn't cast types")
396619 }
397- let calcLpAmt = $t01090111254._1
398- let curPriceCalc = $t01090111254._2
399- let amBalance = $t01090111254._3
400- let prBalance = $t01090111254._4
401- let lpEmission = $t01090111254._5
620+ let calcLpAmt = $t02222922582._1
621+ let curPriceCalc = $t02222922582._2
622+ let amBalance = $t02222922582._3
623+ let prBalance = $t02222922582._4
624+ let lpEmission = $t02222922582._5
402625 $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(calcLpAmt), toString(curPrice), toString(amBalance), toString(prBalance), toString(lpEmission), poolStatus, toString(inAmAssetAmt), toString(inPrAssetAmt)], SEP))
403626 }
404627
405628
406629
407630 @Callable(i)
408631 func poolEvaluatePutByPriceAssetREADONLY (lpAsset,inPrAssetAmt) = {
409- let factoryAddress = readFactoryAddressOrFail()
410- let poolAddress = addressFromStringValue(getStringByAddressOrFail(factoryAddress, keyFactoryLpAssetToPoolContractAddress(lpAsset)))
632+ let poolAddress = addressFromStringValue(getStringByAddressOrFail(factoryDapp, keyFactoryLpAssetToPoolContractAddress(lpAsset)))
411633 let cfg = {
412634 let @ = invoke(poolAddress, "getPoolConfigWrapperREADONLY", nil, nil)
413635 if ($isInstanceOf(@, "List[Any]"))
414636 then @
415637 else throw("Couldn't cast Any to List[Any]")
416638 }
417639 let lpAssetId = fromBase58String({
418640 let @ = cfg[idxPoolLPAssetId]
419641 if ($isInstanceOf(@, "String"))
420642 then @
421643 else throw("Couldn't cast Any to String")
422644 })
423645 let amAssetIdStr = {
424646 let @ = cfg[idxAmtAssetId]
425647 if ($isInstanceOf(@, "String"))
426648 then @
427649 else throw("Couldn't cast Any to String")
428650 }
429651 let amAssetId = fromBase58String(amAssetIdStr)
430652 let prAssetIdStr = {
431653 let @ = cfg[idxPriceAssetId]
432654 if ($isInstanceOf(@, "String"))
433655 then @
434656 else throw("Couldn't cast Any to String")
435657 }
436658 let prAssetId = fromBase58String(prAssetIdStr)
437659 let amtAssetDcm = parseIntValue({
438660 let @ = cfg[idxAmtAssetDcm]
439661 if ($isInstanceOf(@, "String"))
440662 then @
441663 else throw("Couldn't cast Any to String")
442664 })
443665 let priceAssetDcm = parseIntValue({
444666 let @ = cfg[idxPriceAssetDcm]
445667 if ($isInstanceOf(@, "String"))
446668 then @
447669 else throw("Couldn't cast Any to String")
448670 })
449671 let poolStatus = {
450672 let @ = cfg[idxPoolStatus]
451673 if ($isInstanceOf(@, "String"))
452674 then @
453675 else throw("Couldn't cast Any to String")
454676 }
455677 let poolLPBalance = valueOrErrorMessage(assetInfo(lpAssetId), (("Asset " + toBase58String(lpAssetId)) + " doesn't exist")).quantity
456678 let amBalanceRaw = {
457679 let @ = invoke(poolAddress, "getAccBalanceWrapperREADONLY", [amAssetIdStr], nil)
458680 if ($isInstanceOf(@, "Int"))
459681 then @
460682 else throw("Couldn't cast Any to Int")
461683 }
462684 let prBalanceRaw = {
463685 let @ = invoke(poolAddress, "getAccBalanceWrapperREADONLY", [prAssetIdStr], nil)
464686 if ($isInstanceOf(@, "Int"))
465687 then @
466688 else throw("Couldn't cast Any to Int")
467689 }
468690 let amBalanceRawX18 = parseBigIntValue({
469691 let @ = invoke(poolAddress, "toX18WrapperREADONLY", [amBalanceRaw, amtAssetDcm], nil)
470692 if ($isInstanceOf(@, "String"))
471693 then @
472694 else throw("Couldn't cast Any to String")
473695 })
474696 let prBalanceRawX18 = parseBigIntValue({
475697 let @ = invoke(poolAddress, "toX18WrapperREADONLY", [prBalanceRaw, priceAssetDcm], nil)
476698 if ($isInstanceOf(@, "String"))
477699 then @
478700 else throw("Couldn't cast Any to String")
479701 })
480702 let curPriceX18 = if ((poolLPBalance == 0))
481703 then zeroBigInt
482704 else parseBigIntValue({
483705 let @ = invoke(poolAddress, "calcPriceBigIntWrapperREADONLY", [toString(prBalanceRawX18), toString(amBalanceRawX18)], nil)
484706 if ($isInstanceOf(@, "String"))
485707 then @
486708 else throw("Couldn't cast Any to String")
487709 })
488710 let curPrice = {
489711 let @ = invoke(poolAddress, "fromX18WrapperREADONLY", [toString(curPriceX18), MULT8], nil)
490712 if ($isInstanceOf(@, "Int"))
491713 then @
492714 else throw("Couldn't cast Any to Int")
493715 }
494716 let inPrAssetAmtX18 = parseBigIntValue({
495717 let @ = invoke(poolAddress, "toX18WrapperREADONLY", [inPrAssetAmt, priceAssetDcm], nil)
496718 if ($isInstanceOf(@, "String"))
497719 then @
498720 else throw("Couldn't cast Any to String")
499721 })
500722 let inAmAssetAmtX18 = fraction(inPrAssetAmtX18, MULT18, curPriceX18)
501723 let inAmAssetAmt = {
502724 let @ = invoke(poolAddress, "fromX18WrapperREADONLY", [toString(inAmAssetAmtX18), amtAssetDcm], nil)
503725 if ($isInstanceOf(@, "Int"))
504726 then @
505727 else throw("Couldn't cast Any to Int")
506728 }
507729 let res = invoke(poolAddress, "estimatePutOperationWrapperREADONLY", ["", 500000, inAmAssetAmt, amAssetId, inPrAssetAmt, prAssetId, "", true, false], nil)
508- let $t01395714310 = match res {
730+ let $t02523225585 = match res {
509731 case _ =>
510732 if (if ($isInstanceOf($match0._1, "Int"))
511733 then if ($isInstanceOf($match0._3, "Int"))
512734 then if ($isInstanceOf($match0._4, "Int"))
513735 then if ($isInstanceOf($match0._5, "Int"))
514736 then $isInstanceOf($match0._6, "Int")
515737 else false
516738 else false
517739 else false
518740 else false)
519741 then {
520742 let calcLpAmt = $match0._1
521743 let curPriceCalc = $match0._3
522744 let amBalance = $match0._4
523745 let prBalance = $match0._5
524746 let lpEmission = $match0._6
525747 $Tuple5(calcLpAmt, curPriceCalc, amBalance, prBalance, lpEmission)
526748 }
527749 else throw("Couldn't cast types")
528750 }
529- let calcLpAmt = $t01395714310._1
530- let curPriceCalc = $t01395714310._2
531- let amBalance = $t01395714310._3
532- let prBalance = $t01395714310._4
533- let lpEmission = $t01395714310._5
751+ let calcLpAmt = $t02523225585._1
752+ let curPriceCalc = $t02523225585._2
753+ let amBalance = $t02523225585._3
754+ let prBalance = $t02523225585._4
755+ let lpEmission = $t02523225585._5
534756 $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(calcLpAmt), toString(curPrice), toString(amBalance), toString(prBalance), toString(lpEmission), poolStatus, toString(inAmAssetAmt), toString(inPrAssetAmt)], SEP))
535757 }
536758
537759
538760
539761 @Callable(i)
540762 func poolEvaluateGetREADONLY (paymentLpAssetId,paymentLpAmt) = {
541- let factoryAddress = readFactoryAddressOrFail()
542- let poolAddress = addressFromStringValue(getStringByAddressOrFail(factoryAddress, keyFactoryLpAssetToPoolContractAddress(paymentLpAssetId)))
763+ let poolAddress = addressFromStringValue(getStringByAddressOrFail(factoryDapp, keyFactoryLpAssetToPoolContractAddress(paymentLpAssetId)))
543764 let res = invoke(poolAddress, "estimateGetOperationWrapperREADONLY", ["", paymentLpAssetId, paymentLpAmt, toString(poolAddress)], nil)
544- let $t01505815475 = match res {
765+ let $t02628026697 = match res {
545766 case _ =>
546767 if (if ($isInstanceOf($match0._1, "Int"))
547768 then if ($isInstanceOf($match0._2, "Int"))
548769 then if ($isInstanceOf($match0._5, "Int"))
549770 then if ($isInstanceOf($match0._6, "Int"))
550771 then if ($isInstanceOf($match0._7, "Int"))
551772 then if ($isInstanceOf($match0._8, "String"))
552773 then $isInstanceOf($match0._9, "String")
553774 else false
554775 else false
555776 else false
556777 else false
557778 else false
558779 else false)
559780 then {
560781 let outAmAmt = $match0._1
561782 let outPrAmt = $match0._2
562783 let amBalance = $match0._5
563784 let prBalance = $match0._6
564785 let lpEmission = $match0._7
565786 let curPrice = $match0._8
566787 let poolStatus = $match0._9
567788 $Tuple7(outAmAmt, outPrAmt, amBalance, prBalance, lpEmission, curPrice, poolStatus)
568789 }
569790 else throw("Couldn't cast types")
570791 }
571- let outAmAmt = $t01505815475._1
572- let outPrAmt = $t01505815475._2
573- let amBalance = $t01505815475._3
574- let prBalance = $t01505815475._4
575- let lpEmission = $t01505815475._5
576- let curPrice = $t01505815475._6
577- let poolStatus = $t01505815475._7
792+ let outAmAmt = $t02628026697._1
793+ let outPrAmt = $t02628026697._2
794+ let amBalance = $t02628026697._3
795+ let prBalance = $t02628026697._4
796+ let lpEmission = $t02628026697._5
797+ let curPrice = $t02628026697._6
798+ let poolStatus = $t02628026697._7
578799 $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(outAmAmt), toString(outPrAmt), toString(amBalance), toString(prBalance), toString(lpEmission), curPrice, poolStatus], SEP))
800+ }
801+
802+
803+
804+@Callable(i)
805+func gwxUserInfoREADONLY (userAddress) = {
806+ let gwxUserInfoLIST = {
807+ let @ = invoke(boostingDapp, "gwxUserInfoREADONLY", [userAddress], nil)
808+ if ($isInstanceOf(@, "List[Any]"))
809+ then @
810+ else throw("Couldn't cast Any to List[Any]")
811+ }
812+ let gwxAmount = {
813+ let @ = gwxUserInfoLIST[0]
814+ if ($isInstanceOf(@, "Int"))
815+ then @
816+ else throw("Couldn't cast Any to Int")
817+ }
818+ $Tuple2(nil, makeString(["%d", toString(gwxAmount)], SEP))
579819 }
580820
581821

github/deemru/w8io/169f3d6 
111.25 ms