tx · Gm7JVst3pCRBrkdRrd9jcZQaLNZeFGYELM89TZ6gpArQ

3MsNhK6uve98J6DeqbuwGFBRh9GoHPGUFgp:  -0.01000000 Waves

2021.12.02 11:21 [1816414] smart account 3MsNhK6uve98J6DeqbuwGFBRh9GoHPGUFgp > SELF 0.00000000 Waves

{ "type": 13, "id": "Gm7JVst3pCRBrkdRrd9jcZQaLNZeFGYELM89TZ6gpArQ", "fee": 1000000, "feeAssetId": null, "timestamp": 1638433328804, "version": 1, "sender": "3MsNhK6uve98J6DeqbuwGFBRh9GoHPGUFgp", "senderPublicKey": "86RHVxKovtU7yKnepY8wKsd8niDxGAsiwuA1XA1DNqrS", "proofs": [ "3wNiG8JZ5pXE6Zp3DPCcmudr6jxfHh9t3Px8Xgrvi5Bu3FwFhqgUgdh2568PpKQSebAqXz6ttmiTTbYwEZ9TuG6C" ], "script": "base64:AAIFAAAAAAAAACwIAhIDCgEIEgMKAQgSBAoCCAgSAwoBCBIHCgUBAQEICBIAEgMKAQgSAwoBCAAAAE0AAAAABlNDQUxFOAAAAAAAAAAACAAAAAAFTVVMVDgAAAAAAAX14QAAAAAAB1NDQUxFMTgAAAAAAAAAABIAAAAABk1VTFQxOAkAATYAAAABAA3gtrOnZAAAAAAAAANTRVACAAAAAl9fAAAAAA5QT09MV0VJR0hUTVVMVAUAAAAFTVVMVDgAAAAADmlkeFBvb2xBZGRyZXNzAAAAAAAAAAABAAAAAA1pZHhQb29sU3RhdHVzAAAAAAAAAAACAAAAABBpZHhQb29sTFBBc3NldElkAAAAAAAAAAADAAAAAA1pZHhBbXRBc3NldElkAAAAAAAAAAAEAAAAAA9pZHhQcmljZUFzc2V0SWQAAAAAAAAAAAUAAAAADmlkeEFtdEFzc2V0RGNtAAAAAAAAAAAGAAAAABBpZHhQcmljZUFzc2V0RGNtAAAAAAAAAAAHAAAAAA5pZHhJQW10QXNzZXRJZAAAAAAAAAAACAAAAAAQaWR4SVByaWNlQXNzZXRJZAAAAAAAAAAACQAAAAAN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cG9vbFdlaWdodAUAAAADbmlsBQAAAANTRVAAAAABaQEAAAATZ3d4VXNlckluZm9SRUFET05MWQAAAAEAAAALdXNlckFkZHJlc3MEAAAAD2ZhY3RvcnlDb250cmFjdAkBAAAAGHJlYWRGYWN0b3J5QWRkcmVzc09yRmFpbAAAAAAEAAAACmZhY3RvcnlDZmcJAQAAABRyZWFkRmFjdG9yeUNmZ09yRmFpbAAAAAEFAAAAD2ZhY3RvcnlDb250cmFjdAQAAAAQYm9vc3RpbmdDb250cmFjdAkBAAAAGGdldEJvb3N0aW5nQWRkcmVzc09yRmFpbAAAAAEFAAAACmZhY3RvcnlDZmcEAAAAD2d3eFVzZXJJbmZvTElTVAMJAAABAAAAAgkAA/wAAAAEBQAAABBib29zdGluZ0NvbnRyYWN0AgAAABNnd3hVc2VySW5mb1JFQURPTkxZCQAETAAAAAIFAAAAC3VzZXJBZGRyZXNzBQAAAANuaWwFAAAAA25pbAIAAAAJTGlzdFtBbnldCQAD/AAAAAQFAAAAEGJvb3N0aW5nQ29udHJhY3QCAAAAE2d3eFVzZXJJbmZvUkVBRE9OTFkJAARMAAAAAgUAAAALdXNlckFkZHJlc3MFAAAAA25pbAUAAAADbmlsCQAAAgAAAAECAAAAHkNvdWxkbid0IGNhc3QgQW55IHRvIExpc3RbQW55XQQAAAAJZ3d4QW1vdW50AwkAAAEAAAACCQABkQAAAAIFAAAAD2d3eFVzZXJJbmZvTElTVAAAAAAAAAAAAAIAAAADSW50CQABkQAAAAIFAAAAD2d3eFVzZXJJbmZvTElTVAAAAAAAAAAAAAkAAAIAAAABAgAAABhDb3VsZG4ndCBjYXN0IEFueSB0byBJbnQJAAUUAAAAAgUAAAADbmlsCQAEuQAAAAIJAARMAAAAAgIAAAACJWQJAARMAAAAAgkAAaQAAAABBQAAAAlnd3hBbW91bnQFAAAAA25pbAUAAAADU0VQAAAAAH8zpAE=", "chainId": 84, "height": 1816414, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2cotE12hv2rqhCNiMpiTQowSjdr643j3EPXPsHdM86cG Next: 75MEsd3Xz2X7qBYrWY9896LBndxyczy1xq1QZ8ZFDWC5 Diff:
OldNewDifferences
347347 let gWxAmountStartNew = calcGwxAmountStartREADONLY(userAmountNew, lockDurationNew, maxLockDurationInBlocks)[0]
348348 let gWxParamsResultList = asAnyList(invoke(mathContract, "calcGwxParamsREADONLY", [gWxAmountStartNew, height, lockDurationNew], nil))
349349 let gWxAmountDiff = (gWxAmountStartNew - userCurrgWxAmount)
350- if ((0 > gWxAmountDiff))
351- then throw("gWxAmountDiff is less then 0")
352- else {
353- let k = asInt(gWxParamsResultList[0])
354- let b = asInt(gWxParamsResultList[1])
355- let period = toString(asInt(gWxParamsResultList[2]))
356- let totalMaxBoostIntegralKEY = keyTotalMaxBoostINTEGRAL()
357- let totalCachedGwxKEY = keyTotalCachedGwx()
358- let userMaxBoostIntNew = ((gWxAmountStartNew * lockDurationNew) / 2)
359- let totalMaxBoostInt = getIntOrZero(boostingContract, totalMaxBoostIntegralKEY)
360- let totalCachedGwx = valueOrElse(getInteger(boostingContract, totalCachedGwxKEY), 0)
361- let MULT3 = 1000
362- let wxEmissionPerBlockX3 = (getIntOrFail(emissionContract, keyEmissionRatePerBlockCurrent()) * MULT3)
363- let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr)
364- let stakedTotalKEY = keyStakedTotal(lpAssetIdStr)
365- let stakedByUser = readStaked(stakingContract, stakedByUserKEY)
366- let stakedTotal = readStaked(stakingContract, stakedTotalKEY)
367- let stakedByUserNew = (stakedByUser + deltaLpAmount)
368- let stakedTotalNew = (stakedTotal + deltaLpAmount)
369- let poolWeight = if ((lpAssetIdStr != EMPTYSTR))
370- then {
371- let poolAddressStr = valueOrErrorMessage(getString(factoryContract, keyFactoryLp2AssetsMapping(lpAssetIdStr)), ("unsupported lp asset " + lpAssetIdStr))
372- getIntegerValue(factoryContract, keyFactoryPoolWeight(poolAddressStr))
373- }
374- else 0
375- let poolWxEmissionPerBlockX3 = fraction(wxEmissionPerBlockX3, poolWeight, (POOLWEIGHTMULT * 3))
376- let wxPerLpX3 = if ((stakedTotalNew != 0))
377- then fraction(poolWxEmissionPerBlockX3, MULT8, stakedTotalNew)
378- else 0
379- let userWxPerBlockX3 = fraction(wxPerLpX3, stakedByUserNew, MULT8)
380- let boostEmissionPerBlockX3 = (poolWxEmissionPerBlockX3 * 2)
381- let tmpUserBoostPerBlockX3 = fraction(gWxAmountStartNew, boostEmissionPerBlockX3, (totalCachedGwx + gWxAmountDiff))
382- let userBoostPerBlockX3 = min([tmpUserBoostPerBlockX3, (userWxPerBlockX3 * 2)])
383- let boostCoeff = if ((userWxPerBlockX3 == 0))
384- then (1 * MULT8)
385- else fraction((userBoostPerBlockX3 + userWxPerBlockX3), MULT8, userWxPerBlockX3)
386- 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))], "::")
387- $Tuple2(nil, makeString(["%d%d%s", toString(gWxAmountStartNew), toString(boostCoeff), debug], SEP))
350+ let k = asInt(gWxParamsResultList[0])
351+ let b = asInt(gWxParamsResultList[1])
352+ let period = toString(asInt(gWxParamsResultList[2]))
353+ let totalMaxBoostIntegralKEY = keyTotalMaxBoostINTEGRAL()
354+ let totalCachedGwxKEY = keyTotalCachedGwx()
355+ let userMaxBoostIntNew = ((gWxAmountStartNew * lockDurationNew) / 2)
356+ let totalMaxBoostInt = getIntOrZero(boostingContract, totalMaxBoostIntegralKEY)
357+ let totalCachedGwx = valueOrElse(getInteger(boostingContract, totalCachedGwxKEY), 0)
358+ let MULT3 = 1000
359+ let wxEmissionPerBlockX3 = (getIntOrFail(emissionContract, keyEmissionRatePerBlockCurrent()) * MULT3)
360+ let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr)
361+ let stakedTotalKEY = keyStakedTotal(lpAssetIdStr)
362+ let stakedByUser = readStaked(stakingContract, stakedByUserKEY)
363+ let stakedTotal = readStaked(stakingContract, stakedTotalKEY)
364+ let stakedByUserNew = (stakedByUser + deltaLpAmount)
365+ let stakedTotalNew = (stakedTotal + deltaLpAmount)
366+ let poolWeight = if ((lpAssetIdStr != EMPTYSTR))
367+ then {
368+ let poolAddressStr = valueOrErrorMessage(getString(factoryContract, keyFactoryLp2AssetsMapping(lpAssetIdStr)), ("unsupported lp asset " + lpAssetIdStr))
369+ getIntegerValue(factoryContract, keyFactoryPoolWeight(poolAddressStr))
388370 }
371+ else 0
372+ let poolWxEmissionPerBlockX3 = fraction(wxEmissionPerBlockX3, poolWeight, (POOLWEIGHTMULT * 3))
373+ let wxPerLpX3 = if ((stakedTotalNew != 0))
374+ then fraction(poolWxEmissionPerBlockX3, MULT8, stakedTotalNew)
375+ else 0
376+ let userWxPerBlockX3 = fraction(wxPerLpX3, stakedByUserNew, MULT8)
377+ let boostEmissionPerBlockX3 = (poolWxEmissionPerBlockX3 * 2)
378+ let tmpUserBoostPerBlockX3 = fraction(gWxAmountStartNew, boostEmissionPerBlockX3, (totalCachedGwx + gWxAmountDiff))
379+ let userBoostPerBlockX3 = min([tmpUserBoostPerBlockX3, (userWxPerBlockX3 * 2)])
380+ let boostCoeff = if ((userWxPerBlockX3 == 0))
381+ then (1 * MULT8)
382+ else fraction((userBoostPerBlockX3 + userWxPerBlockX3), MULT8, userWxPerBlockX3)
383+ 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))], "::")
384+ $Tuple2(nil, makeString(["%d%d%s", toString(gWxAmountStartNew), toString(boostCoeff), debug], SEP))
389385 }
390386
391387
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 = "__"
1313
1414 let POOLWEIGHTMULT = MULT8
1515
1616 let idxPoolAddress = 1
1717
1818 let idxPoolStatus = 2
1919
2020 let idxPoolLPAssetId = 3
2121
2222 let idxAmtAssetId = 4
2323
2424 let idxPriceAssetId = 5
2525
2626 let idxAmtAssetDcm = 6
2727
2828 let idxPriceAssetDcm = 7
2929
3030 let idxIAmtAssetId = 8
3131
3232 let idxIPriceAssetId = 9
3333
3434 let idxLPAssetDcm = 10
3535
3636 func getStringOrFail (key) = valueOrErrorMessage(getString(key), (("mandatory this." + key) + " is not defined"))
3737
3838
3939 func getStringByAddressOrFail (address,key) = valueOrErrorMessage(getString(address, key), (((("mandatory " + toString(address)) + ".") + key) + " is not defined"))
4040
4141
4242 func getIntOrZero (address,key) = valueOrElse(getInteger(address, key), 0)
4343
4444
4545 func getIntOrFail (address,key) = valueOrErrorMessage(getInteger(address, key), (("mandatory this." + key) + " is not defined"))
4646
4747
4848 func asAnyList (val) = match val {
4949 case valAnyLyst: List[Any] =>
5050 valAnyLyst
5151 case _ =>
5252 throw("fail to cast into List[Any]")
5353 }
5454
5555
5656 func asInt (val) = match val {
5757 case valInt: Int =>
5858 valInt
5959 case _ =>
6060 throw("fail to cast into Int")
6161 }
6262
6363
6464 func asString (val) = match val {
6565 case valStr: String =>
6666 valStr
6767 case _ =>
6868 throw("fail to cast into String")
6969 }
7070
7171
7272 func keyFactoryAddress () = "%s%s__config__factoryAddress"
7373
7474
7575 let IdxFactoryCfgStakingDapp = 1
7676
7777 let IdxFactoryCfgBoostingDapp = 2
7878
7979 let IdxFactoryCfgIdoDapp = 3
8080
8181 let IdxFactoryCfgTeamDapp = 4
8282
8383 let IdxFactoryCfgEmissionDapp = 5
8484
8585 let IdxFactoryCfgRestDapp = 6
8686
8787 let IdxFactoryCfgSlippageDapp = 7
8888
8989 let IdxFactoryCfgGwxRewardDapp = 8
9090
9191 func keyFactoryCfg () = "%s__factoryConfig"
9292
9393
9494 func keyFactoryLp2AssetsMapping (lpAssetStr) = makeString(["%s%s%s", lpAssetStr, "mappings__lpAsset2PoolContract"], SEP)
9595
9696
9797 func keyFactoryLpList () = "%s__lpTokensList"
9898
9999
100100 func keyFactoryLpAssetToPoolContractAddress (lpAssetStr) = makeString(["%s%s%s", lpAssetStr, "mappings__lpAsset2PoolContract"], SEP)
101101
102102
103103 func keyFactoryPoolWeight (contractAddress) = makeString(["%s%s", "poolWeight", contractAddress], SEP)
104104
105105
106106 func readFactoryAddressOrFail () = addressFromStringValue(getStringOrFail(keyFactoryAddress()))
107107
108108
109109 func readLpList () = split(valueOrElse(getString(readFactoryAddressOrFail(), keyFactoryLpList()), ""), SEP)
110110
111111
112112 func readFactoryCfgOrFail (factory) = split(getStringByAddressOrFail(factory, keyFactoryCfg()), SEP)
113113
114114
115115 func getBoostingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgBoostingDapp])
116116
117117
118118 func getEmissionAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgEmissionDapp])
119119
120120
121121 func getStakingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgStakingDapp])
122122
123123
124124 func getGwxRewardAddressOrFail (factoryCfg) = addressFromStringValue("3PH83bJCZraJoEzFefz4p8UXZD9YazNnj1n")
125125
126126
127127 func keyBoostCfg () = "%s__config"
128128
129129
130130 func keyBoostingLockParamTotalAmount () = "%s%s__stats__activeTotalLocked"
131131
132132
133133 func keyBoostingStatsLocksDurationSumInBlocks () = "%s%s__stats__locksDurationSumInBlocks"
134134
135135
136136 func keyBoostingStatsLocksCount () = "%s%s__stats__locksCount"
137137
138138
139139 func keyBoostingStatsUsersCount () = "%s%s__stats__activeUsersCount"
140140
141141
142142 func keyUser2NumMapping (userAddress) = makeString(["%s%s%s__mapping__user2num", userAddress], SEP)
143143
144144
145145 func keyNum2UserMapping (num) = makeString(["%s%s%s__mapping__num2user", num], SEP)
146146
147147
148148 func keyLockParamUserAmount (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "amount"], SEP)
149149
150150
151151 func keyLockParamStartBlock (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "start"], SEP)
152152
153153
154154 func keyLockParamDuration (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "duration"], SEP)
155155
156156
157157 func keyLockParamK (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "k"], SEP)
158158
159159
160160 func keyLockParamB (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "b"], SEP)
161161
162162
163163 func keyLockParamByPeriodK (userNum,period) = makeString(["%s%d%s%d__paramByPeriod", userNum, "k", period], SEP)
164164
165165
166166 func keyLockParamByPeriodB (userNum,period) = makeString(["%s%d%s%d__paramByPeriod", userNum, "b", period], SEP)
167167
168168
169169 func keyUserBoostEmissionLastINTEGRAL (userNum) = makeString(["%s%d__userBoostEmissionLastInt", userNum], SEP)
170170
171171
172172 func keyUserMaxBoostINTEGRAL (userNum) = makeString(["%s%d__maxBoostInt", userNum], SEP)
173173
174174
175175 func keyTotalMaxBoostINTEGRAL () = "%s%s__maxBoostInt__total"
176176
177177
178178 func keyUserBoostAvalaibleToClaimTotal (userNum) = makeString(["%s%d__userBoostAvaliableToClaimTotal", userNum], SEP)
179179
180180
181181 func keyUserBoostClaimed (userNum) = makeString(["%s%d__userBoostClaimed", userNum], SEP)
182182
183183
184184 func keyTotalCachedGwx () = "%s%s__gwxCached__total"
185185
186186
187187 func keyStakedByUser (userAddressStr,lpAssetIdStr) = makeString(["%s%s%s__staked", userAddressStr, lpAssetIdStr], SEP)
188188
189189
190190 func keyStakedTotal (lpAssetIdStr) = ("%s%s%s__staked__total__" + lpAssetIdStr)
191191
192192
193193 func keyClaimedByUser (lpAssetIdStr,userAddressStr) = makeString(["%s%s%s__claimed", userAddressStr, lpAssetIdStr], SEP)
194194
195195
196196 func keyClaimedByUserMinReward (lpAssetIdStr,userAddressStr) = makeString(["%s%s%s__claimedMinReward", userAddressStr, lpAssetIdStr], SEP)
197197
198198
199199 func keyClaimedByUserBoostReward (lpAssetIdStr,userAddressStr) = makeString(["%s%s%s__claimedBoostReward", userAddressStr, lpAssetIdStr], SEP)
200200
201201
202202 func readStaked (stakingDapp,key) = valueOrElse(getInteger(stakingDapp, key), 0)
203203
204204
205205 func keyEmissionRatePerBlockCurrent () = "%s%s__ratePerBlock__current"
206206
207207
208208 func keyEmissionRatePerBlockMaxCurrent () = "%s%s__ratePerBlockMax__current"
209209
210210
211211 func keyEmissionStartBlock () = "%s%s__emission__startBlock"
212212
213213
214214 func keyEmissionDurationInBlocks () = "%s%s__emission__duration"
215215
216216
217217 func keyEmissionEndBlock () = "%s%s__emission__endBlock"
218218
219219
220220 func internalCurrentRewardRate (factoryContract,stakingContract,emissionContract,lpAssetId) = {
221221 let poolAddressStr = getStringByAddressOrFail(factoryContract, keyFactoryLpAssetToPoolContractAddress(lpAssetId))
222222 let poolWeightMult = MULT8
223223 let poolWeight = getIntegerValue(factoryContract, keyFactoryPoolWeight(poolAddressStr))
224224 let wxEmissionPerBlock = getIntOrFail(emissionContract, keyEmissionRatePerBlockCurrent())
225225 let wxEmissionPerBlockMax = getIntOrFail(emissionContract, keyEmissionRatePerBlockMaxCurrent())
226226 let boostMaxCoeff = 3
227227 let poolWxEmissionPerBlock = (fraction(wxEmissionPerBlock, poolWeight, poolWeightMult) / boostMaxCoeff)
228228 let poolWxEmissionPerBlockMax = fraction(wxEmissionPerBlockMax, poolWeight, poolWeightMult)
229229 let maxFactor = (boostMaxCoeff * MULT8)
230230 let totalLpStaked = getIntOrZero(stakingContract, keyStakedTotal(lpAssetId))
231231 [poolWxEmissionPerBlock, maxFactor, totalLpStaked]
232232 }
233233
234234
235235 func calcGwxAmountStartREADONLY (lockAmount,lockDuration,maxLockDuration) = {
236236 let coeffX8 = fraction(lockDuration, MULT8, maxLockDuration)
237237 let gWxAmountStart = fraction(lockAmount, coeffX8, MULT8)
238238 [gWxAmountStart]
239239 }
240240
241241
242242 @Callable(i)
243243 func constructor (factoryAddress) = if ((i.caller != this))
244244 then throw("not authorized")
245245 else [StringEntry(keyFactoryAddress(), factoryAddress)]
246246
247247
248248
249249 @Callable(i)
250250 func currentRewardRateREADONLY (lpAssetId) = {
251251 let factoryContract = readFactoryAddressOrFail()
252252 let factoryCfg = readFactoryCfgOrFail(factoryContract)
253253 let stakingContract = getStakingAddressOrFail(factoryCfg)
254254 let emissionContract = getEmissionAddressOrFail(factoryCfg)
255255 let rewardData = internalCurrentRewardRate(factoryContract, stakingContract, emissionContract, lpAssetId)
256256 let wxEmissionPerBlock = rewardData[0]
257257 let maxFactor = rewardData[1]
258258 let totalLpStaked = rewardData[2]
259259 $Tuple2(nil, makeString(["%d%d%d", toString(wxEmissionPerBlock), toString(maxFactor), toString(totalLpStaked)], SEP))
260260 }
261261
262262
263263
264264 @Callable(i)
265265 func currentUserRewardRateREADONLY (lpAssetId,userAddress) = {
266266 let factoryContract = readFactoryAddressOrFail()
267267 let factoryCfg = readFactoryCfgOrFail(factoryContract)
268268 let stakingContract = getStakingAddressOrFail(factoryCfg)
269269 let emissionContract = getEmissionAddressOrFail(factoryCfg)
270270 let rewardData = internalCurrentRewardRate(factoryContract, stakingContract, emissionContract, lpAssetId)
271271 let wxEmissionPerBlock = rewardData[0]
272272 let maxFactor = rewardData[1]
273273 let totalLpStaked = rewardData[2]
274274 let lpStakedByUser = getIntOrZero(stakingContract, keyStakedByUser(userAddress, lpAssetId))
275275 let userClaimInfo = split(asString(invoke(stakingContract, "claimWxREADONLY", [lpAssetId, userAddress], nil)), SEP)
276276 let minRewardPart = valueOrErrorMessage(parseInt(userClaimInfo[5]), "couldn't parse minRewardPart")
277277 let boostRewardPart = valueOrErrorMessage(parseInt(userClaimInfo[6]), "couldn't parse boostRewardPart")
278278 let debug = userClaimInfo[7]
279279 let boostingPower = if ((boostRewardPart == 0))
280280 then (1 * MULT8)
281281 else fraction((minRewardPart + boostRewardPart), MULT8, minRewardPart)
282282 $Tuple2(nil, makeString(["%d%d%d%d%d%s", toString(wxEmissionPerBlock), toString(maxFactor), toString(totalLpStaked), toString(lpStakedByUser), toString(boostingPower), debug], SEP))
283283 }
284284
285285
286286
287287 @Callable(i)
288288 func claimedRewardREADONLY (userAddress) = {
289289 let factoryContract = readFactoryAddressOrFail()
290290 let factoryCfg = readFactoryCfgOrFail(factoryContract)
291291 let stakingContract = getStakingAddressOrFail(factoryCfg)
292292 let lpList = readLpList()
293293 let prefix = "%s%d%d%d%s"
294294 func claimedRewardByLpAggregator (resultStr,nextLp) = {
295295 let claimedByUserMinRewardKEY = keyClaimedByUserMinReward(nextLp, userAddress)
296296 let claimedByUserBoostRewardKEY = keyClaimedByUserBoostReward(nextLp, userAddress)
297297 let minRewardClaimed = valueOrElse(getInteger(stakingContract, claimedByUserMinRewardKEY), 0)
298298 let boostRewardClaimed = valueOrElse(getInteger(stakingContract, claimedByUserBoostRewardKEY), 0)
299299 let gFeeClaimed = 0
300300 makeString([(prefix + resultStr), nextLp, toString(minRewardClaimed), toString(boostRewardClaimed), toString(gFeeClaimed), "end"], SEP)
301301 }
302302
303303 let result = {
304304 let $l = lpList
305305 let $s = size($l)
306306 let $acc0 = "%s"
307307 func 1 ($a,$i) = if (($i >= $s))
308308 then $a
309309 else claimedRewardByLpAggregator($a, $l[$i])
310310
311311 func 2 ($a,$i) = if (($i >= $s))
312312 then $a
313313 else throw("List size exceeds 10")
314314
315315 2(1(1(1(1(1(1(1(1(1(1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
316316 }
317317 $Tuple2(nil, ((result + SEP) + userAddress))
318318 }
319319
320320
321321
322322 @Callable(i)
323323 func calcBoostREADONLY (deltaWxAmount,deltaLockPeriodInBlocks,deltaLpAmount,lpAssetIdOpt,userAddressOpt) = {
324324 let factoryContract = readFactoryAddressOrFail()
325325 let factoryCfg = readFactoryCfgOrFail(factoryContract)
326326 let boostingContract = getBoostingAddressOrFail(factoryCfg)
327327 let mathContract = getGwxRewardAddressOrFail(factoryCfg)
328328 let emissionContract = getEmissionAddressOrFail(factoryCfg)
329329 let stakingContract = getStakingAddressOrFail(factoryCfg)
330330 let EMPTYSTR = "empty"
331331 let maxLockDurationInBlocks = parseIntValue(split(getStringByAddressOrFail(boostingContract, keyBoostCfg()), SEP)[4])
332332 let lpAssetIdStr = if ((lpAssetIdOpt == ""))
333333 then EMPTYSTR
334334 else lpAssetIdOpt
335335 let userAddressStr = if ((userAddressOpt == ""))
336336 then EMPTYSTR
337337 else userAddressOpt
338338 let userNumStr = valueOrElse(getString(boostingContract, keyUser2NumMapping(userAddressOpt)), EMPTYSTR)
339339 let userAmount = valueOrElse(getInteger(boostingContract, keyLockParamUserAmount(userNumStr)), 0)
340340 let lockStart = valueOrElse(getInteger(boostingContract, keyLockParamStartBlock(userNumStr)), height)
341341 let lockDuration = valueOrElse(getInteger(boostingContract, keyLockParamDuration(userNumStr)), 0)
342342 let lockEnd = (lockStart + lockDuration)
343343 let remainingDuration = max([(lockEnd - height), 0])
344344 let userAmountNew = (userAmount + deltaWxAmount)
345345 let lockDurationNew = min([(remainingDuration + deltaLockPeriodInBlocks), maxLockDurationInBlocks])
346346 let userCurrgWxAmount = asInt(asAnyList(invoke(boostingContract, "gwxUserInfoREADONLY", [userAddressStr], nil))[0])
347347 let gWxAmountStartNew = calcGwxAmountStartREADONLY(userAmountNew, lockDurationNew, maxLockDurationInBlocks)[0]
348348 let gWxParamsResultList = asAnyList(invoke(mathContract, "calcGwxParamsREADONLY", [gWxAmountStartNew, height, lockDurationNew], nil))
349349 let gWxAmountDiff = (gWxAmountStartNew - userCurrgWxAmount)
350- if ((0 > gWxAmountDiff))
351- then throw("gWxAmountDiff is less then 0")
352- else {
353- let k = asInt(gWxParamsResultList[0])
354- let b = asInt(gWxParamsResultList[1])
355- let period = toString(asInt(gWxParamsResultList[2]))
356- let totalMaxBoostIntegralKEY = keyTotalMaxBoostINTEGRAL()
357- let totalCachedGwxKEY = keyTotalCachedGwx()
358- let userMaxBoostIntNew = ((gWxAmountStartNew * lockDurationNew) / 2)
359- let totalMaxBoostInt = getIntOrZero(boostingContract, totalMaxBoostIntegralKEY)
360- let totalCachedGwx = valueOrElse(getInteger(boostingContract, totalCachedGwxKEY), 0)
361- let MULT3 = 1000
362- let wxEmissionPerBlockX3 = (getIntOrFail(emissionContract, keyEmissionRatePerBlockCurrent()) * MULT3)
363- let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr)
364- let stakedTotalKEY = keyStakedTotal(lpAssetIdStr)
365- let stakedByUser = readStaked(stakingContract, stakedByUserKEY)
366- let stakedTotal = readStaked(stakingContract, stakedTotalKEY)
367- let stakedByUserNew = (stakedByUser + deltaLpAmount)
368- let stakedTotalNew = (stakedTotal + deltaLpAmount)
369- let poolWeight = if ((lpAssetIdStr != EMPTYSTR))
370- then {
371- let poolAddressStr = valueOrErrorMessage(getString(factoryContract, keyFactoryLp2AssetsMapping(lpAssetIdStr)), ("unsupported lp asset " + lpAssetIdStr))
372- getIntegerValue(factoryContract, keyFactoryPoolWeight(poolAddressStr))
373- }
374- else 0
375- let poolWxEmissionPerBlockX3 = fraction(wxEmissionPerBlockX3, poolWeight, (POOLWEIGHTMULT * 3))
376- let wxPerLpX3 = if ((stakedTotalNew != 0))
377- then fraction(poolWxEmissionPerBlockX3, MULT8, stakedTotalNew)
378- else 0
379- let userWxPerBlockX3 = fraction(wxPerLpX3, stakedByUserNew, MULT8)
380- let boostEmissionPerBlockX3 = (poolWxEmissionPerBlockX3 * 2)
381- let tmpUserBoostPerBlockX3 = fraction(gWxAmountStartNew, boostEmissionPerBlockX3, (totalCachedGwx + gWxAmountDiff))
382- let userBoostPerBlockX3 = min([tmpUserBoostPerBlockX3, (userWxPerBlockX3 * 2)])
383- let boostCoeff = if ((userWxPerBlockX3 == 0))
384- then (1 * MULT8)
385- else fraction((userBoostPerBlockX3 + userWxPerBlockX3), MULT8, userWxPerBlockX3)
386- 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))], "::")
387- $Tuple2(nil, makeString(["%d%d%s", toString(gWxAmountStartNew), toString(boostCoeff), debug], SEP))
350+ let k = asInt(gWxParamsResultList[0])
351+ let b = asInt(gWxParamsResultList[1])
352+ let period = toString(asInt(gWxParamsResultList[2]))
353+ let totalMaxBoostIntegralKEY = keyTotalMaxBoostINTEGRAL()
354+ let totalCachedGwxKEY = keyTotalCachedGwx()
355+ let userMaxBoostIntNew = ((gWxAmountStartNew * lockDurationNew) / 2)
356+ let totalMaxBoostInt = getIntOrZero(boostingContract, totalMaxBoostIntegralKEY)
357+ let totalCachedGwx = valueOrElse(getInteger(boostingContract, totalCachedGwxKEY), 0)
358+ let MULT3 = 1000
359+ let wxEmissionPerBlockX3 = (getIntOrFail(emissionContract, keyEmissionRatePerBlockCurrent()) * MULT3)
360+ let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr)
361+ let stakedTotalKEY = keyStakedTotal(lpAssetIdStr)
362+ let stakedByUser = readStaked(stakingContract, stakedByUserKEY)
363+ let stakedTotal = readStaked(stakingContract, stakedTotalKEY)
364+ let stakedByUserNew = (stakedByUser + deltaLpAmount)
365+ let stakedTotalNew = (stakedTotal + deltaLpAmount)
366+ let poolWeight = if ((lpAssetIdStr != EMPTYSTR))
367+ then {
368+ let poolAddressStr = valueOrErrorMessage(getString(factoryContract, keyFactoryLp2AssetsMapping(lpAssetIdStr)), ("unsupported lp asset " + lpAssetIdStr))
369+ getIntegerValue(factoryContract, keyFactoryPoolWeight(poolAddressStr))
388370 }
371+ else 0
372+ let poolWxEmissionPerBlockX3 = fraction(wxEmissionPerBlockX3, poolWeight, (POOLWEIGHTMULT * 3))
373+ let wxPerLpX3 = if ((stakedTotalNew != 0))
374+ then fraction(poolWxEmissionPerBlockX3, MULT8, stakedTotalNew)
375+ else 0
376+ let userWxPerBlockX3 = fraction(wxPerLpX3, stakedByUserNew, MULT8)
377+ let boostEmissionPerBlockX3 = (poolWxEmissionPerBlockX3 * 2)
378+ let tmpUserBoostPerBlockX3 = fraction(gWxAmountStartNew, boostEmissionPerBlockX3, (totalCachedGwx + gWxAmountDiff))
379+ let userBoostPerBlockX3 = min([tmpUserBoostPerBlockX3, (userWxPerBlockX3 * 2)])
380+ let boostCoeff = if ((userWxPerBlockX3 == 0))
381+ then (1 * MULT8)
382+ else fraction((userBoostPerBlockX3 + userWxPerBlockX3), MULT8, userWxPerBlockX3)
383+ 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))], "::")
384+ $Tuple2(nil, makeString(["%d%d%s", toString(gWxAmountStartNew), toString(boostCoeff), debug], SEP))
389385 }
390386
391387
392388
393389 @Callable(i)
394390 func wxEmissionStatsREADONLY () = {
395391 let ONEMULT = toString(MULT8)
396392 let ONE = "1"
397393 let factoryContract = readFactoryAddressOrFail()
398394 let factoryCfg = readFactoryCfgOrFail(factoryContract)
399395 let boostingContract = getBoostingAddressOrFail(factoryCfg)
400396 let emissionContract = getEmissionAddressOrFail(factoryCfg)
401397 let wxEmissionPerBlock = getIntOrFail(emissionContract, keyEmissionRatePerBlockCurrent())
402398 let emissionStartBlock = getIntOrFail(emissionContract, keyEmissionStartBlock())
403399 let passedBlocks = if ((emissionStartBlock > height))
404400 then 0
405401 else (height - emissionStartBlock)
406402 let teamEmDuration = (1440 * 365)
407403 let teamEmMax = (201000000 * MULT8)
408404 let teamEm = if ((passedBlocks > teamEmDuration))
409405 then teamEmMax
410406 else fraction(teamEmMax, passedBlocks, teamEmDuration)
411407 let totalWxReleased = ((wxEmissionPerBlock * passedBlocks) + teamEm)
412408 let totalWxLocked = getIntOrZero(boostingContract, keyBoostingLockParamTotalAmount())
413409 let locksDurationSumInBlocks = getIntOrZero(boostingContract, keyBoostingStatsLocksDurationSumInBlocks())
414410 let locksCount = getIntOrZero(boostingContract, keyBoostingStatsLocksCount())
415411 $Tuple2(nil, makeString(["%d%d%d%d", toString(totalWxReleased), toString(totalWxLocked), toString(locksDurationSumInBlocks), toString(locksCount)], SEP))
416412 }
417413
418414
419415
420416 @Callable(i)
421417 func lpStatsREADONLY (lpAsset) = {
422418 let factoryAddress = readFactoryAddressOrFail()
423419 let poolAddress = addressFromStringValue(getStringByAddressOrFail(factoryAddress, keyFactoryLpAssetToPoolContractAddress(lpAsset)))
424420 let cfg = if ($isInstanceOf(invoke(poolAddress, "getPoolConfigWrapperREADONLY", nil, nil), "List[Any]"))
425421 then invoke(poolAddress, "getPoolConfigWrapperREADONLY", nil, nil)
426422 else throw("Couldn't cast Any to List[Any]")
427423 let lpAssetId = fromBase58String(if ($isInstanceOf(cfg[idxPoolLPAssetId], "String"))
428424 then cfg[idxPoolLPAssetId]
429425 else throw("Couldn't cast Any to String"))
430426 let amtAssetId = if ($isInstanceOf(cfg[idxAmtAssetId], "String"))
431427 then cfg[idxAmtAssetId]
432428 else throw("Couldn't cast Any to String")
433429 let priceAssetId = if ($isInstanceOf(cfg[idxPriceAssetId], "String"))
434430 then cfg[idxPriceAssetId]
435431 else throw("Couldn't cast Any to String")
436432 let iAmtAssetId = if ($isInstanceOf(cfg[idxIAmtAssetId], "String"))
437433 then cfg[idxIAmtAssetId]
438434 else throw("Couldn't cast Any to String")
439435 let iPriceAssetId = if ($isInstanceOf(cfg[idxIPriceAssetId], "String"))
440436 then cfg[idxIPriceAssetId]
441437 else throw("Couldn't cast Any to String")
442438 let amtAssetDcm = parseIntValue(if ($isInstanceOf(cfg[idxAmtAssetDcm], "String"))
443439 then cfg[idxAmtAssetDcm]
444440 else throw("Couldn't cast Any to String"))
445441 let priceAssetDcm = parseIntValue(if ($isInstanceOf(cfg[idxPriceAssetDcm], "String"))
446442 then cfg[idxPriceAssetDcm]
447443 else throw("Couldn't cast Any to String"))
448444 let poolLPBalance = valueOrErrorMessage(assetInfo(lpAssetId), (("Asset " + toBase58String(lpAssetId)) + " doesn't exist")).quantity
449445 let accAmtAssetBalance = if ($isInstanceOf(invoke(poolAddress, "getAccBalanceWrapperREADONLY", [amtAssetId], nil), "Int"))
450446 then invoke(poolAddress, "getAccBalanceWrapperREADONLY", [amtAssetId], nil)
451447 else throw("Couldn't cast Any to Int")
452448 let accPriceAssetBalance = if ($isInstanceOf(invoke(poolAddress, "getAccBalanceWrapperREADONLY", [priceAssetId], nil), "Int"))
453449 then invoke(poolAddress, "getAccBalanceWrapperREADONLY", [priceAssetId], nil)
454450 else throw("Couldn't cast Any to Int")
455451 let pricesList = if ($isInstanceOf(invoke(poolAddress, "calcPricesWrapperREADONLY", [accAmtAssetBalance, accPriceAssetBalance, poolLPBalance], nil), "List[Any]"))
456452 then invoke(poolAddress, "calcPricesWrapperREADONLY", [accAmtAssetBalance, accPriceAssetBalance, poolLPBalance], nil)
457453 else throw("Couldn't cast Any to List[Any]")
458454 let curPrice = 0
459455 let lpAmtAssetShare = if ($isInstanceOf(invoke(poolAddress, "fromX18WrapperREADONLY", [pricesList[1], MULT8], nil), "Int"))
460456 then invoke(poolAddress, "fromX18WrapperREADONLY", [pricesList[1], MULT8], nil)
461457 else throw("Couldn't cast Any to Int")
462458 let lpPriceAssetShare = if ($isInstanceOf(invoke(poolAddress, "fromX18WrapperREADONLY", [pricesList[2], MULT8], nil), "Int"))
463459 then invoke(poolAddress, "fromX18WrapperREADONLY", [pricesList[2], MULT8], nil)
464460 else throw("Couldn't cast Any to Int")
465461 let poolWeight = getIntegerValue(factoryAddress, keyFactoryPoolWeight(toString(poolAddress)))
466462 $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))
467463 }
468464
469465
470466
471467 @Callable(i)
472468 func gwxUserInfoREADONLY (userAddress) = {
473469 let factoryContract = readFactoryAddressOrFail()
474470 let factoryCfg = readFactoryCfgOrFail(factoryContract)
475471 let boostingContract = getBoostingAddressOrFail(factoryCfg)
476472 let gwxUserInfoLIST = if ($isInstanceOf(invoke(boostingContract, "gwxUserInfoREADONLY", [userAddress], nil), "List[Any]"))
477473 then invoke(boostingContract, "gwxUserInfoREADONLY", [userAddress], nil)
478474 else throw("Couldn't cast Any to List[Any]")
479475 let gwxAmount = if ($isInstanceOf(gwxUserInfoLIST[0], "Int"))
480476 then gwxUserInfoLIST[0]
481477 else throw("Couldn't cast Any to Int")
482478 $Tuple2(nil, makeString(["%d", toString(gwxAmount)], SEP))
483479 }
484480
485481

github/deemru/w8io/169f3d6 
62.11 ms