tx · HDCgDEvvd9RTLBaFdh2itGe2NRHQzF9QEavsHP4ajjX4

3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz:  -0.03500000 Waves

2022.06.09 17:21 [2088957] smart account 3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz > SELF 0.00000000 Waves

{ "type": 13, "id": "HDCgDEvvd9RTLBaFdh2itGe2NRHQzF9QEavsHP4ajjX4", "fee": 3500000, "feeAssetId": null, "timestamp": 1654784493166, "version": 1, "sender": "3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz", "senderPublicKey": "D28XoueZWsMfm8Y5pa6C5ZFuYoWgre2Wm8tzJANJgMnq", "proofs": [ "4zC1wUvpqLuaEWVoaSHsc6m4Va7jRtHq1uHMdjFgvCcqJfswsc9wUeR1xky5RZEBbZKRpqjra4fKfA5ZtP4obRMA" ], "script": "base64:AAIFAAAAAAAAACcIAhIDCgEIEgMKAQgSABIAEgQKAggBEgMKAQgSBAoCCAgSBAoCCAgAAABNAAAAAAZTQ0FMRTgAAAAAAAAAAAgAAAAABU1VTFQ4AAAAAAAF9eEAAAAAAAdTQ0FMRTE4AAAAAAAAAAASAAAAAAZNVUxUMTgJAAE2AAAAAQAN4Lazp2QAAAAAAAADU0VQAgAAAAJfXwAAAAAOUE9PTFdFSUdIVE1VTFQFAAAABU1VTFQ4AQAAAAlhc0FueUxpc3QAAAABAAAAA3ZhbAQAAAAHJG1hdGNoMAUAAAADdmFsAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAlMaXN0W0FueV0EAAAACnZhbEFueUx5c3QFAAAAByRtYXRjaDAFAAAACnZhbEFueUx5c3QJAAACAAAAAQIAAAAbZmFpbCB0byBjYXN0IGludG8gTGlzdFtBbnldAQAAAAVhc0ludAAAAAEAAAADdmFsBAAAAAckbWF0Y2gwBQAAAAN2YWwDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAAGdmFsSW50BQAAAAckbWF0Y2gwBQ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Y2gwCQEAAAAWbWFuYWdlclB1YmxpY0tleU9yVW5pdAAAAAADCQAAAQAAAAIFAAAAByRtYXRjaDACAAAACkJ5dGVWZWN0b3IEAAAAAnBrBQAAAAckbWF0Y2gwBQAAAAJwawMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAEVW5pdAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQkAAAIAAAABAgAAAAtNYXRjaCBlcnJvcgkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAFAAAAD3RhcmdldFB1YmxpY0tleXu+6pI=", "chainId": 84, "height": 2088957, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FcPwQknCenAbi8csQJdyetfH4MofWPKrrEfvmz6acvKP Next: 3sHCqqxA8CHzqLKjCc3Je6s1Ed1ZYyQN2y4FXV7hEMn2 Diff:
OldNewDifferences
1212 let SEP = "__"
1313
1414 let POOLWEIGHTMULT = MULT8
15-
16-let zeroBigInt = toBigInt(0)
17-
18-let oneBigInt = toBigInt(1)
1915
2016 func asAnyList (val) = match val {
2117 case valAnyLyst: List[Any] =>
220216
221217 let boostingContract = getBoostingAddressOrFail(factoryCfg)
222218
223-func calcWxPerLpIntegralUserLast (stakedByUser,wxPerLpIntegralUserLastUpdHeightOrZero,wxPerLpIntegralNew,wxPerLpIntegralUserLastKEY) = if (if ((wxPerLpIntegralUserLastUpdHeightOrZero == zeroBigInt))
224- then (stakedByUser > zeroBigInt)
219+func calcWxPerLpIntegralUserLast (stakedByUser,wxPerLpIntegralUserLastUpdHeightOrZero,wxPerLpIntegralNew,wxPerLpIntegralUserLastKEY) = if (if ((wxPerLpIntegralUserLastUpdHeightOrZero == 0))
220+ then (stakedByUser > 0)
225221 else false)
226- then zeroBigInt
227- else if ((stakedByUser == zeroBigInt))
222+ then 0
223+ else if ((stakedByUser == 0))
228224 then wxPerLpIntegralNew
229- else if (if ((wxPerLpIntegralUserLastUpdHeightOrZero > zeroBigInt))
230- then (stakedByUser > zeroBigInt)
225+ else if (if ((wxPerLpIntegralUserLastUpdHeightOrZero > 0))
226+ then (stakedByUser > 0)
231227 else false)
232- then value(parseBigInt(getStringOrFail(wxPerLpIntegralUserLastKEY)))
228+ then getIntOrFail(this, wxPerLpIntegralUserLastKEY)
233229 else throw("calcWxPerLpIntegralUserLast: unexpected state")
234230
235231
236232 func refreshPoolINTEGRALS (lpAssetIdStr,poolAddressStr,lpDeltaAmount) = {
237233 let stakedTotalKEY = keyStakedTotal(lpAssetIdStr)
238- let stakedTotal = toBigInt(readStaked(stakedTotalKEY))
239- let nonZeroStakedTotal = if ((stakedTotal == zeroBigInt))
240- then oneBigInt
241- else stakedTotal
234+ let stakedTotal = readStaked(stakedTotalKEY)
242235 let poolWeight = getIntegerValue(factoryContract, keyFactoryPoolWeight(poolAddressStr))
243236 let emissionStartBlock = getIntOrFail(emissionContract, keyEmissionStartBlock())
244237 let MULT3 = 1000
252245 let wxPerLpOrZeroX3 = 0
253246 let dh = max([(height - wxPerLpIntegralLastUpdHeight), 0])
254247 let wxPerLpX3 = if ((wxPerLpOrZeroX3 != 0))
255- then toBigInt(wxPerLpOrZeroX3)
256- else fraction(toBigInt(poolWxEmissionPerBlockX3), toBigInt(MULT8), nonZeroStakedTotal)
257- let stakedTotalNew = (stakedTotal + toBigInt(lpDeltaAmount))
258- let nonZeroStakedTotalNew = if ((stakedTotalNew == zeroBigInt))
259- then oneBigInt
260- else stakedTotalNew
261- let wxPerLpIntegralNew = (toBigInt(wxPerLpIntegral) + (wxPerLpX3 * toBigInt(dh)))
262- let wxPerLpX3New = (toBigInt(poolWxEmissionPerBlockX3) / nonZeroStakedTotalNew)
248+ then wxPerLpOrZeroX3
249+ else fraction(poolWxEmissionPerBlockX3, MULT8, stakedTotal)
250+ let stakedTotalNew = (stakedTotal + lpDeltaAmount)
251+ let wxPerLpIntegralNew = (wxPerLpIntegral + (wxPerLpX3 * dh))
252+ let wxPerLpX3New = (poolWxEmissionPerBlockX3 / stakedTotalNew)
263253 let wxPerLpIntegralLastUpdHeightNew = height
264254 let debug = makeString([toString(wxPerLpIntegralNew), toString(dh), toString(wxPerLpX3), toString(stakedTotal), toString(poolWxEmissionPerBlockX3), toString(wxEmissionPerBlockX3), toString(poolWeight)], "::")
265- $Tuple3(wxPerLpIntegralNew, [StringEntry(wxPerLpIntegralKEY, toString(wxPerLpIntegralNew)), IntegerEntry(wxPerLpIntegralLastUpdHeightKEY, wxPerLpIntegralLastUpdHeightNew), StringEntry(wxPerLpKEY, toString(wxPerLpX3New))], debug)
255+ $Tuple3(wxPerLpIntegralNew, [IntegerEntry(wxPerLpIntegralKEY, wxPerLpIntegralNew), IntegerEntry(wxPerLpIntegralLastUpdHeightKEY, wxPerLpIntegralLastUpdHeightNew), IntegerEntry(wxPerLpKEY, wxPerLpX3New)], debug)
266256 }
267257
268258
269259 func refreshINTEGRALS (lpAssetIdStr,userAddressStr,poolAddressStr,lpDeltaAmount) = {
270- let $t01095711079 = refreshPoolINTEGRALS(lpAssetIdStr, poolAddressStr, lpDeltaAmount)
271- let wxPerLpIntegralNew = $t01095711079._1
272- let poolIntegralSTATE = $t01095711079._2
273- let poolDEBUG = $t01095711079._3
260+ let $t01049410616 = refreshPoolINTEGRALS(lpAssetIdStr, poolAddressStr, lpDeltaAmount)
261+ let wxPerLpIntegralNew = $t01049410616._1
262+ let poolIntegralSTATE = $t01049410616._2
263+ let poolDEBUG = $t01049410616._3
274264 let MULT3 = 1000
275265 let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr)
276266 let stakedByUser = readStaked(stakedByUserKEY)
279269 let wxPerLpIntegralUserLastKEY = keyWxPerLpIntegralUserLast(lpAssetIdStr, userAddressStr)
280270 let wxToClaimUser = getIntOrZero(this, wxToClaimUserKEY)
281271 let wxPerLpIntegralUserLastUpdHeightOrZero = getIntOrZero(this, wxPerLpIntegralUserLastUpdHeightKEY)
282- let wxPerLpIntegralUserLast = calcWxPerLpIntegralUserLast(toBigInt(stakedByUser), toBigInt(wxPerLpIntegralUserLastUpdHeightOrZero), wxPerLpIntegralNew, wxPerLpIntegralUserLastKEY)
283- let MULT11 = (MULT8 * MULT3)
284- let wxToClaimUserNew = (toBigInt(wxToClaimUser) + fraction((wxPerLpIntegralNew - wxPerLpIntegralUserLast), toBigInt(stakedByUser), toBigInt(MULT11)))
272+ let wxPerLpIntegralUserLast = calcWxPerLpIntegralUserLast(stakedByUser, wxPerLpIntegralUserLastUpdHeightOrZero, wxPerLpIntegralNew, wxPerLpIntegralUserLastKEY)
273+ let wxToClaimUserNew = (wxToClaimUser + fraction((wxPerLpIntegralNew - wxPerLpIntegralUserLast), stakedByUser, (MULT8 * MULT3)))
285274 let wxPerLpIntegralUserLastNew = wxPerLpIntegralNew
286275 let wxPerLpIntegralUserLastUpdHeightNew = height
287276 let debug = makeString([toString(wxToClaimUserNew), toString(wxPerLpIntegralUserLast), toString(stakedByUser), poolDEBUG, toString(height)], "::")
288- $Tuple3(wxToClaimUserNew, (poolIntegralSTATE ++ [StringEntry(wxToClaimUserKEY, toString(wxToClaimUserNew)), IntegerEntry(wxPerLpIntegralUserLastUpdHeightKEY, wxPerLpIntegralUserLastUpdHeightNew), StringEntry(wxPerLpIntegralUserLastKEY, toString(wxPerLpIntegralUserLastNew))]), debug)
277+ $Tuple3(wxToClaimUserNew, (poolIntegralSTATE ++ [IntegerEntry(wxToClaimUserKEY, wxToClaimUserNew), IntegerEntry(wxPerLpIntegralUserLastUpdHeightKEY, wxPerLpIntegralUserLastUpdHeightNew), IntegerEntry(wxPerLpIntegralUserLastKEY, wxPerLpIntegralUserLastNew)]), debug)
289278 }
290279
291280
388377 let stakedTotalKEY = keyStakedTotal(lpAssetIdStr)
389378 let stakedByUser = readStaked(stakedByUserKEY)
390379 let stakedTotal = readStaked(stakedTotalKEY)
391- let $t01511015227 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, amount)
392- let wxToClaimUserNew = $t01511015227._1
393- let integralSTATE = $t01511015227._2
394- let debug = $t01511015227._3
380+ let $t01427414391 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, amount)
381+ let wxToClaimUserNew = $t01427414391._1
382+ let integralSTATE = $t01427414391._2
383+ let debug = $t01427414391._3
395384 ([IntegerEntry(stakedByUserKEY, (stakedByUser + amount)), IntegerEntry(stakedTotalKEY, (stakedTotal + amount)), OperationHistoryEntry("stake", userAddressStr, lpAssetIdStr, amount, i.transactionId)] ++ integralSTATE)
396385 }
397386
412401 let stakedTotalKEY = keyStakedTotal(lpAssetIdStr)
413402 let stakedByUser = readStaked(stakedByUserKEY)
414403 let stakedTotal = readStaked(stakedTotalKEY)
415- let $t01636416482 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, -(amount))
416- let wxToClaimUserNew = $t01636416482._1
417- let integralSTATE = $t01636416482._2
418- let debug = $t01636416482._3
404+ let $t01552815646 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, -(amount))
405+ let wxToClaimUserNew = $t01552815646._1
406+ let integralSTATE = $t01552815646._2
407+ let debug = $t01552815646._3
419408 if ((amount > stakedByUser))
420409 then throw("passed amount is less then available")
421410 else ([IntegerEntry(stakedByUserKEY, (stakedByUser - amount)), IntegerEntry(stakedTotalKEY, (stakedTotal - amount)), ScriptTransfer(i.caller, amount, lpAssetId), OperationHistoryEntry("unstake", userAddressStr, lpAssetIdStr, amount, i.transactionId)] ++ integralSTATE)
432421 let claimedTotalKEY = keyClaimedTotal(lpAssetIdStr)
433422 let claimedByUserMinRewardKEY = keyClaimedByUserMinReward(lpAssetIdStr, userAddressStr)
434423 let claimedByUserBoostRewardKEY = keyClaimedByUserBoostReward(lpAssetIdStr, userAddressStr)
435- let claimedByUser = toBigInt(getIntOrZero(this, claimedByUserKEY))
436- let claimedByUserMinReward = toBigInt(getIntOrZero(this, claimedByUserMinRewardKEY))
437- let claimedByUserBoostReward = toBigInt(getIntOrZero(this, claimedByUserBoostRewardKEY))
438- let claimedTotal = toBigInt(getIntOrZero(this, claimedTotalKEY))
439- let $t01771817830 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, 0)
440- let wxToClaimUserNew = $t01771817830._1
441- let integralSTATE = $t01771817830._2
442- let debug = $t01771817830._3
424+ let claimedByUser = getIntOrZero(this, claimedByUserKEY)
425+ let claimedByUserMinReward = getIntOrZero(this, claimedByUserMinRewardKEY)
426+ let claimedByUserBoostReward = getIntOrZero(this, claimedByUserBoostRewardKEY)
427+ let claimedTotal = getIntOrZero(this, claimedTotalKEY)
428+ let $t01683816950 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, 0)
429+ let wxToClaimUserNew = $t01683816950._1
430+ let integralSTATE = $t01683816950._2
431+ let debug = $t01683816950._3
443432 let availableToClaim = (wxToClaimUserNew - claimedByUser)
444- if ((zeroBigInt >= availableToClaim))
433+ if ((0 >= availableToClaim))
445434 then throw("nothing to claim")
446435 else {
447436 let wxAmountBoostTotal = asInt(asAnyList(invoke(boostingContract, "claimWxBoost", [lpAssetIdStr, userAddressStr], nil))[0])
448437 let minRewardPart = availableToClaim
449- let boostRewardPart = min([(minRewardPart * toBigInt(2)), toBigInt(wxAmountBoostTotal)])
438+ let boostRewardPart = min([(minRewardPart * 2), wxAmountBoostTotal])
450439 let wxAssetId = asByteVector(asAnyList(invoke(emissionContract, "emit", [minRewardPart], nil))[0])
451440 let emitBoost = asAnyList(invoke(emissionContract, "emit", [boostRewardPart], nil))
452441 if ((emitBoost == emitBoost))
453- then {
454- let claimedByUserValue = (claimedByUser + availableToClaim)
455- let claimedByUserMinRewardPlusPart = (claimedByUserMinReward + minRewardPart)
456- let claimedByUserBoostRewardPlusBoostRewardPart = (claimedByUserMinReward + minRewardPart)
457- let claimedTotalPlusAvailableToClaim = (claimedByUserMinReward + minRewardPart)
458-[StringEntry(claimedByUserKEY, toString(claimedByUserValue)), StringEntry(claimedByUserMinRewardKEY, toString(claimedByUserMinRewardPlusPart)), StringEntry(claimedByUserBoostRewardKEY, toString(claimedByUserBoostRewardPlusBoostRewardPart)), StringEntry(claimedTotalKEY, toString(claimedTotalPlusAvailableToClaim)), ScriptTransfer(userAddress, toInt(minRewardPart), wxAssetId), ScriptTransfer(userAddress, toInt(boostRewardPart), wxAssetId), OperationHistoryEntry("claim", userAddressStr, lpAssetIdStr, toInt(availableToClaim), i.transactionId)]
459- }
442+ then [IntegerEntry(claimedByUserKEY, (claimedByUser + availableToClaim)), IntegerEntry(claimedByUserMinRewardKEY, (claimedByUserMinReward + minRewardPart)), IntegerEntry(claimedByUserBoostRewardKEY, (claimedByUserBoostReward + boostRewardPart)), IntegerEntry(claimedTotalKEY, (claimedTotal + availableToClaim)), ScriptTransfer(userAddress, minRewardPart, wxAssetId), ScriptTransfer(userAddress, boostRewardPart, wxAssetId), OperationHistoryEntry("claim", userAddressStr, lpAssetIdStr, availableToClaim, i.transactionId)]
460443 else throw("Strict value is not equal to itself.")
461444 }
462445 }
480463 else (height - emissionStartBlock)
481464 let poolWxEmission = fraction((wxEmissionPerBlock * passedBlocks), poolWeight, POOLWEIGHTMULT)
482465 let userWxReward = fraction(poolWxEmission, stakedByUser, stakedTotal)
483- let $t02041520527 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, 0)
484- let wxToClaimUserNew = $t02041520527._1
485- let integralSTATE = $t02041520527._2
486- let debug = $t02041520527._3
487- let availableToClaim = (wxToClaimUserNew - toBigInt(claimedByUser))
466+ let $t01915119263 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, 0)
467+ let wxToClaimUserNew = $t01915119263._1
468+ let integralSTATE = $t01915119263._2
469+ let debug = $t01915119263._3
470+ let availableToClaim = (wxToClaimUserNew - claimedByUser)
488471 let boostInvResult = asAnyList(invoke(boostingContract, "claimWxBoostREADONLY", [lpAssetIdStr, userAddressStr], nil))
489472 let wxAmountBoostTotal = asInt(boostInvResult[0])
490473 let boostDebug = asString(boostInvResult[1])
491474 let minRewardPart = availableToClaim
492- let boostRewardPart = min([(minRewardPart * toBigInt(2)), toBigInt(wxAmountBoostTotal)])
475+ let boostRewardPart = min([(minRewardPart * 2), wxAmountBoostTotal])
493476 let totalReward = (minRewardPart + boostRewardPart)
494477 $Tuple2(nil, makeString(["%s%s%d%d%d%d%s", lpAssetIdStr, userAddressStr, toString(totalReward), toString(claimedByUser), toString(minRewardPart), toString(boostRewardPart), ((((debug + "::") + toString(userWxReward)) + "::BOOSTDEBUG::") + boostDebug)], SEP))
495478 }
500483 func onModifyWeight (lpAssetIdStr,poolAddressStr) = if ((i.caller != factoryContract))
501484 then throw("permissions denied")
502485 else {
503- let $t02144021550 = refreshPoolINTEGRALS(lpAssetIdStr, poolAddressStr, 0)
504- let wxPerLpIntegralNew = $t02144021550._1
505- let poolIntegralSTATE = $t02144021550._2
506- let poolDEBUG = $t02144021550._3
486+ let $t02014320253 = refreshPoolINTEGRALS(lpAssetIdStr, poolAddressStr, 0)
487+ let wxPerLpIntegralNew = $t02014320253._1
488+ let poolIntegralSTATE = $t02014320253._2
489+ let poolDEBUG = $t02014320253._3
507490 poolIntegralSTATE
508491 }
509492
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
15-
16-let zeroBigInt = toBigInt(0)
17-
18-let oneBigInt = toBigInt(1)
1915
2016 func asAnyList (val) = match val {
2117 case valAnyLyst: List[Any] =>
2218 valAnyLyst
2319 case _ =>
2420 throw("fail to cast into List[Any]")
2521 }
2622
2723
2824 func asInt (val) = match val {
2925 case valInt: Int =>
3026 valInt
3127 case _ =>
3228 throw("fail to cast into Int")
3329 }
3430
3531
3632 func asString (val) = match val {
3733 case valStr: String =>
3834 valStr
3935 case _ =>
4036 throw("fail to cast into Int")
4137 }
4238
4339
4440 func asByteVector (val) = match val {
4541 case valBin: ByteVector =>
4642 valBin
4743 case _ =>
4844 throw("fail to cast into Int")
4945 }
5046
5147
5248 func getStringOrFail (key) = valueOrErrorMessage(getString(key), (("mandatory this." + key) + " is not defined"))
5349
5450
5551 func getStringByAddressOrFail (address,key) = valueOrErrorMessage(getString(address, key), (((("mandatory " + toString(address)) + ".") + key) + " is not defined"))
5652
5753
5854 func getIntOrZero (address,key) = valueOrElse(getInteger(address, key), 0)
5955
6056
6157 func getIntOrDefault (address,key,defaultVal) = valueOrElse(getInteger(address, key), defaultVal)
6258
6359
6460 func getIntOrFail (address,key) = valueOrErrorMessage(getInteger(address, key), (("mandatory this." + key) + " is not defined"))
6561
6662
6763 func toX18 (origVal,origScaleMult) = fraction(toBigInt(origVal), MULT18, toBigInt(origScaleMult))
6864
6965
7066 func fromX18 (val,resultScaleMult) = toInt(fraction(val, toBigInt(resultScaleMult), MULT18))
7167
7268
7369 func keyFactoryAddress () = "%s%s__config__factoryAddress"
7470
7571
7672 let IdxFactoryCfgStakingDapp = 1
7773
7874 let IdxFactoryCfgBoostingDapp = 2
7975
8076 let IdxFactoryCfgIdoDapp = 3
8177
8278 let IdxFactoryCfgTeamDapp = 4
8379
8480 let IdxFactoryCfgEmissionDapp = 5
8581
8682 let IdxFactoryCfgRestDapp = 6
8783
8884 let IdxFactoryCfgSlippageDapp = 7
8985
9086 func keyFactoryCfg () = "%s__factoryConfig"
9187
9288
9389 func keyManagerPublicKey () = "%s__managerPublicKey"
9490
9591
9692 func keyPendingManagerPublicKey () = "%s__pendingManagerPublicKey"
9793
9894
9995 func keyStablePoolAddonAddr () = "%s__stablePoolAddonAddr"
10096
10197
10298 func keyFactoryLp2AssetsMapping (lpAssetStr) = makeString(["%s%s%s", lpAssetStr, "mappings__lpAsset2PoolContract"], SEP)
10399
104100
105101 func keyFactoryLpList () = "%s__lpTokensList"
106102
107103
108104 func keyFactoryLpAssetToPoolContractAddress (lpAssetStr) = makeString(["%s%s%s", lpAssetStr, "mappings__lpAsset2PoolContract"], SEP)
109105
110106
111107 func keyFactoryPoolWeight (contractAddress) = makeString(["%s%s", "poolWeight", contractAddress], SEP)
112108
113109
114110 func readLpList (factory) = split(valueOrElse(getString(factory, keyFactoryLpList()), ""), SEP)
115111
116112
117113 func readFactoryCfgOrFail (factory) = split(getStringByAddressOrFail(factory, keyFactoryCfg()), SEP)
118114
119115
120116 func getBoostingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgBoostingDapp])
121117
122118
123119 func getEmissionAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgEmissionDapp])
124120
125121
126122 func getStakingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgStakingDapp])
127123
128124
129125 func keyEmissionRatePerBlockCurrent () = "%s%s__ratePerBlock__current"
130126
131127
132128 func keyEmissionRatePerBlockMaxCurrent () = "%s%s__ratePerBlockMax__current"
133129
134130
135131 func keyEmissionStartBlock () = "%s%s__emission__startBlock"
136132
137133
138134 func keyEmissionDurationInBlocks () = "%s%s__emission__duration"
139135
140136
141137 func keyEmissionEndBlock () = "%s%s__emission__endBlock"
142138
143139
144140 func keyStakedByUser (userAddressStr,lpAssetIdStr) = makeString(["%s%s%s__staked", userAddressStr, lpAssetIdStr], SEP)
145141
146142
147143 func keyStakedTotal (lpAssetIdStr) = ("%s%s%s__staked__total__" + lpAssetIdStr)
148144
149145
150146 func keyClaimedByUser (lpAssetIdStr,userAddressStr) = makeString(["%s%s%s__claimed", userAddressStr, lpAssetIdStr], SEP)
151147
152148
153149 func keyClaimedByUserMinReward (lpAssetIdStr,userAddressStr) = makeString(["%s%s%s__claimedMinReward", userAddressStr, lpAssetIdStr], SEP)
154150
155151
156152 func keyClaimedByUserBoostReward (lpAssetIdStr,userAddressStr) = makeString(["%s%s%s__claimedBoostReward", userAddressStr, lpAssetIdStr], SEP)
157153
158154
159155 func keyClaimedTotal (lpAssetIdStr) = makeString(["%s%s%s__claimed", "total", lpAssetIdStr], SEP)
160156
161157
162158 func readStaked (key) = valueOrElse(getInteger(this, key), 0)
163159
164160
165161 func keyLastTotalLpBalance (lpAssetId) = makeString(["%s%s%s", lpAssetId, "total", "bal"], SEP)
166162
167163
168164 func keyLastUserLpBalance (lpAssetId,userAddress) = makeString(["%s%s%s", lpAssetId, userAddress, "bal"], SEP)
169165
170166
171167 func keyTotalLpBalanceIntegral (lpAssetId) = makeString(["%s%s%s", lpAssetId, "total", "balINT"], SEP)
172168
173169
174170 func keyUserLpBalanceIntegral (lpAssetId,userAddress) = makeString(["%s%s%s", lpAssetId, userAddress, "balINT"], SEP)
175171
176172
177173 func keyTotalLpBalanceIntegralLastUpdHeight (lpAssetId) = makeString(["%s%s%s", lpAssetId, "total", "lastUpd"], SEP)
178174
179175
180176 func keyUserLpBalanceIntegralLastUpdHeight (lpAssetId,userAddress) = makeString(["%s%s%s", lpAssetId, userAddress, "lastUpd"], SEP)
181177
182178
183179 func keyWxPerLpIntegral (lpAssetId) = makeString(["%s%s%s%s", lpAssetId, "common", "lpInt"], SEP)
184180
185181
186182 func keyWxPerLpIntegralLastUpdHeight (lpAssetId) = makeString(["%s%s%s%s", lpAssetId, "common", "lpIntH"], SEP)
187183
188184
189185 func keyWxToClaimUser (lpAssetId,userAddress) = makeString(["%s%s%s%s", lpAssetId, userAddress, "lpInt"], SEP)
190186
191187
192188 func keyWxPerLpIntegralUserLastUpdHeight (lpAssetId,userAddress) = makeString(["%s%s%s%s", lpAssetId, userAddress, "lpIntH"], SEP)
193189
194190
195191 func keyWxPerLp (lpAssetId) = makeString(["%s", lpAssetId, "wxPerLp"], SEP)
196192
197193
198194 func keyWxPerLpX18 (lpAssetId) = makeString(["%s", lpAssetId, "wxPerLpX18"], SEP)
199195
200196
201197 func keyWxPerLpIntegralUserLast (lpAssetId,userAddress) = makeString(["%s%s%s%s", lpAssetId, userAddress, "uIntL"], SEP)
202198
203199
204200 func keyOperationHistoryRecord (type,userAddress,txId58) = makeString(["%s%s%s%s__history", type, userAddress, txId58], SEP)
205201
206202
207203 func formatHistoryRecord (userAddress,lpAssetId,type,amount) = makeString(["%s%s%s%d%d%d", userAddress, lpAssetId, type, toString(height), toString(lastBlock.timestamp), toString(amount)], SEP)
208204
209205
210206 func OperationHistoryEntry (type,userAddress,lpAssetId,amount,txId) = StringEntry(keyOperationHistoryRecord(type, userAddress, toBase58String(txId)), formatHistoryRecord(userAddress, lpAssetId, type, amount))
211207
212208
213209 let factoryAddress = getStringOrFail(keyFactoryAddress())
214210
215211 let factoryContract = addressFromStringValue(factoryAddress)
216212
217213 let factoryCfg = readFactoryCfgOrFail(factoryContract)
218214
219215 let emissionContract = getEmissionAddressOrFail(factoryCfg)
220216
221217 let boostingContract = getBoostingAddressOrFail(factoryCfg)
222218
223-func calcWxPerLpIntegralUserLast (stakedByUser,wxPerLpIntegralUserLastUpdHeightOrZero,wxPerLpIntegralNew,wxPerLpIntegralUserLastKEY) = if (if ((wxPerLpIntegralUserLastUpdHeightOrZero == zeroBigInt))
224- then (stakedByUser > zeroBigInt)
219+func calcWxPerLpIntegralUserLast (stakedByUser,wxPerLpIntegralUserLastUpdHeightOrZero,wxPerLpIntegralNew,wxPerLpIntegralUserLastKEY) = if (if ((wxPerLpIntegralUserLastUpdHeightOrZero == 0))
220+ then (stakedByUser > 0)
225221 else false)
226- then zeroBigInt
227- else if ((stakedByUser == zeroBigInt))
222+ then 0
223+ else if ((stakedByUser == 0))
228224 then wxPerLpIntegralNew
229- else if (if ((wxPerLpIntegralUserLastUpdHeightOrZero > zeroBigInt))
230- then (stakedByUser > zeroBigInt)
225+ else if (if ((wxPerLpIntegralUserLastUpdHeightOrZero > 0))
226+ then (stakedByUser > 0)
231227 else false)
232- then value(parseBigInt(getStringOrFail(wxPerLpIntegralUserLastKEY)))
228+ then getIntOrFail(this, wxPerLpIntegralUserLastKEY)
233229 else throw("calcWxPerLpIntegralUserLast: unexpected state")
234230
235231
236232 func refreshPoolINTEGRALS (lpAssetIdStr,poolAddressStr,lpDeltaAmount) = {
237233 let stakedTotalKEY = keyStakedTotal(lpAssetIdStr)
238- let stakedTotal = toBigInt(readStaked(stakedTotalKEY))
239- let nonZeroStakedTotal = if ((stakedTotal == zeroBigInt))
240- then oneBigInt
241- else stakedTotal
234+ let stakedTotal = readStaked(stakedTotalKEY)
242235 let poolWeight = getIntegerValue(factoryContract, keyFactoryPoolWeight(poolAddressStr))
243236 let emissionStartBlock = getIntOrFail(emissionContract, keyEmissionStartBlock())
244237 let MULT3 = 1000
245238 let wxEmissionPerBlockX3 = (getIntOrFail(emissionContract, keyEmissionRatePerBlockCurrent()) * MULT3)
246239 let poolWxEmissionPerBlockX3 = fraction(wxEmissionPerBlockX3, poolWeight, (POOLWEIGHTMULT * 3))
247240 let wxPerLpIntegralKEY = keyWxPerLpIntegral(lpAssetIdStr)
248241 let wxPerLpIntegralLastUpdHeightKEY = keyWxPerLpIntegralLastUpdHeight(lpAssetIdStr)
249242 let wxPerLpKEY = keyWxPerLp(lpAssetIdStr)
250243 let wxPerLpIntegralLastUpdHeight = getIntOrDefault(this, wxPerLpIntegralLastUpdHeightKEY, emissionStartBlock)
251244 let wxPerLpIntegral = getIntOrZero(this, wxPerLpIntegralKEY)
252245 let wxPerLpOrZeroX3 = 0
253246 let dh = max([(height - wxPerLpIntegralLastUpdHeight), 0])
254247 let wxPerLpX3 = if ((wxPerLpOrZeroX3 != 0))
255- then toBigInt(wxPerLpOrZeroX3)
256- else fraction(toBigInt(poolWxEmissionPerBlockX3), toBigInt(MULT8), nonZeroStakedTotal)
257- let stakedTotalNew = (stakedTotal + toBigInt(lpDeltaAmount))
258- let nonZeroStakedTotalNew = if ((stakedTotalNew == zeroBigInt))
259- then oneBigInt
260- else stakedTotalNew
261- let wxPerLpIntegralNew = (toBigInt(wxPerLpIntegral) + (wxPerLpX3 * toBigInt(dh)))
262- let wxPerLpX3New = (toBigInt(poolWxEmissionPerBlockX3) / nonZeroStakedTotalNew)
248+ then wxPerLpOrZeroX3
249+ else fraction(poolWxEmissionPerBlockX3, MULT8, stakedTotal)
250+ let stakedTotalNew = (stakedTotal + lpDeltaAmount)
251+ let wxPerLpIntegralNew = (wxPerLpIntegral + (wxPerLpX3 * dh))
252+ let wxPerLpX3New = (poolWxEmissionPerBlockX3 / stakedTotalNew)
263253 let wxPerLpIntegralLastUpdHeightNew = height
264254 let debug = makeString([toString(wxPerLpIntegralNew), toString(dh), toString(wxPerLpX3), toString(stakedTotal), toString(poolWxEmissionPerBlockX3), toString(wxEmissionPerBlockX3), toString(poolWeight)], "::")
265- $Tuple3(wxPerLpIntegralNew, [StringEntry(wxPerLpIntegralKEY, toString(wxPerLpIntegralNew)), IntegerEntry(wxPerLpIntegralLastUpdHeightKEY, wxPerLpIntegralLastUpdHeightNew), StringEntry(wxPerLpKEY, toString(wxPerLpX3New))], debug)
255+ $Tuple3(wxPerLpIntegralNew, [IntegerEntry(wxPerLpIntegralKEY, wxPerLpIntegralNew), IntegerEntry(wxPerLpIntegralLastUpdHeightKEY, wxPerLpIntegralLastUpdHeightNew), IntegerEntry(wxPerLpKEY, wxPerLpX3New)], debug)
266256 }
267257
268258
269259 func refreshINTEGRALS (lpAssetIdStr,userAddressStr,poolAddressStr,lpDeltaAmount) = {
270- let $t01095711079 = refreshPoolINTEGRALS(lpAssetIdStr, poolAddressStr, lpDeltaAmount)
271- let wxPerLpIntegralNew = $t01095711079._1
272- let poolIntegralSTATE = $t01095711079._2
273- let poolDEBUG = $t01095711079._3
260+ let $t01049410616 = refreshPoolINTEGRALS(lpAssetIdStr, poolAddressStr, lpDeltaAmount)
261+ let wxPerLpIntegralNew = $t01049410616._1
262+ let poolIntegralSTATE = $t01049410616._2
263+ let poolDEBUG = $t01049410616._3
274264 let MULT3 = 1000
275265 let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr)
276266 let stakedByUser = readStaked(stakedByUserKEY)
277267 let wxToClaimUserKEY = keyWxToClaimUser(lpAssetIdStr, userAddressStr)
278268 let wxPerLpIntegralUserLastUpdHeightKEY = keyWxPerLpIntegralUserLastUpdHeight(lpAssetIdStr, userAddressStr)
279269 let wxPerLpIntegralUserLastKEY = keyWxPerLpIntegralUserLast(lpAssetIdStr, userAddressStr)
280270 let wxToClaimUser = getIntOrZero(this, wxToClaimUserKEY)
281271 let wxPerLpIntegralUserLastUpdHeightOrZero = getIntOrZero(this, wxPerLpIntegralUserLastUpdHeightKEY)
282- let wxPerLpIntegralUserLast = calcWxPerLpIntegralUserLast(toBigInt(stakedByUser), toBigInt(wxPerLpIntegralUserLastUpdHeightOrZero), wxPerLpIntegralNew, wxPerLpIntegralUserLastKEY)
283- let MULT11 = (MULT8 * MULT3)
284- let wxToClaimUserNew = (toBigInt(wxToClaimUser) + fraction((wxPerLpIntegralNew - wxPerLpIntegralUserLast), toBigInt(stakedByUser), toBigInt(MULT11)))
272+ let wxPerLpIntegralUserLast = calcWxPerLpIntegralUserLast(stakedByUser, wxPerLpIntegralUserLastUpdHeightOrZero, wxPerLpIntegralNew, wxPerLpIntegralUserLastKEY)
273+ let wxToClaimUserNew = (wxToClaimUser + fraction((wxPerLpIntegralNew - wxPerLpIntegralUserLast), stakedByUser, (MULT8 * MULT3)))
285274 let wxPerLpIntegralUserLastNew = wxPerLpIntegralNew
286275 let wxPerLpIntegralUserLastUpdHeightNew = height
287276 let debug = makeString([toString(wxToClaimUserNew), toString(wxPerLpIntegralUserLast), toString(stakedByUser), poolDEBUG, toString(height)], "::")
288- $Tuple3(wxToClaimUserNew, (poolIntegralSTATE ++ [StringEntry(wxToClaimUserKEY, toString(wxToClaimUserNew)), IntegerEntry(wxPerLpIntegralUserLastUpdHeightKEY, wxPerLpIntegralUserLastUpdHeightNew), StringEntry(wxPerLpIntegralUserLastKEY, toString(wxPerLpIntegralUserLastNew))]), debug)
277+ $Tuple3(wxToClaimUserNew, (poolIntegralSTATE ++ [IntegerEntry(wxToClaimUserKEY, wxToClaimUserNew), IntegerEntry(wxPerLpIntegralUserLastUpdHeightKEY, wxPerLpIntegralUserLastUpdHeightNew), IntegerEntry(wxPerLpIntegralUserLastKEY, wxPerLpIntegralUserLastNew)]), debug)
289278 }
290279
291280
292281 func managerPublicKeyOrUnit () = match getString(keyManagerPublicKey()) {
293282 case s: String =>
294283 fromBase58String(s)
295284 case _: Unit =>
296285 unit
297286 case _ =>
298287 throw("Match error")
299288 }
300289
301290
302291 func pendingManagerPublicKeyOrUnit () = match getString(keyPendingManagerPublicKey()) {
303292 case s: String =>
304293 fromBase58String(s)
305294 case _: Unit =>
306295 unit
307296 case _ =>
308297 throw("Match error")
309298 }
310299
311300
312301 func mustManager (i) = {
313302 let pd = throw("Permission denied")
314303 match managerPublicKeyOrUnit() {
315304 case pk: ByteVector =>
316305 if ((i.callerPublicKey == pk))
317306 then true
318307 else pd
319308 case _: Unit =>
320309 if ((i.caller == this))
321310 then true
322311 else pd
323312 case _ =>
324313 throw("Match error")
325314 }
326315 }
327316
328317
329318 @Callable(i)
330319 func constructor (factoryAddressStr) = {
331320 let checkCaller = mustManager(i)
332321 if ((checkCaller == checkCaller))
333322 then [StringEntry(keyFactoryAddress(), factoryAddressStr)]
334323 else throw("Strict value is not equal to itself.")
335324 }
336325
337326
338327
339328 @Callable(i)
340329 func setManager (pendingManagerPublicKey) = {
341330 let checkCaller = mustManager(i)
342331 if ((checkCaller == checkCaller))
343332 then {
344333 let checkManagerPublicKey = fromBase58String(pendingManagerPublicKey)
345334 if ((checkManagerPublicKey == checkManagerPublicKey))
346335 then [StringEntry(keyPendingManagerPublicKey(), pendingManagerPublicKey)]
347336 else throw("Strict value is not equal to itself.")
348337 }
349338 else throw("Strict value is not equal to itself.")
350339 }
351340
352341
353342
354343 @Callable(i)
355344 func confirmManager () = {
356345 let pm = pendingManagerPublicKeyOrUnit()
357346 let hasPM = if (isDefined(pm))
358347 then true
359348 else throw("No pending manager")
360349 if ((hasPM == hasPM))
361350 then {
362351 let checkPM = if ((i.callerPublicKey == value(pm)))
363352 then true
364353 else throw("You are not pending manager")
365354 if ((checkPM == checkPM))
366355 then [StringEntry(keyManagerPublicKey(), toBase58String(value(pm))), DeleteEntry(keyPendingManagerPublicKey())]
367356 else throw("Strict value is not equal to itself.")
368357 }
369358 else throw("Strict value is not equal to itself.")
370359 }
371360
372361
373362
374363 @Callable(i)
375364 func stake () = if ((size(i.payments) != 1))
376365 then throw("invalid payment - exact one payment must be attached")
377366 else {
378367 let pmt = i.payments[0]
379368 let lpAssetId = value(pmt.assetId)
380369 let lpAssetIdStr = toBase58String(lpAssetId)
381370 let amount = pmt.amount
382371 let poolAddressStr = valueOrErrorMessage(getString(factoryContract, keyFactoryLp2AssetsMapping(lpAssetIdStr)), ("unsupported lp asset " + lpAssetIdStr))
383372 let callerStr = toString(i.caller)
384373 let userAddressStr = if ((callerStr == poolAddressStr))
385374 then toString(i.originCaller)
386375 else callerStr
387376 let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr)
388377 let stakedTotalKEY = keyStakedTotal(lpAssetIdStr)
389378 let stakedByUser = readStaked(stakedByUserKEY)
390379 let stakedTotal = readStaked(stakedTotalKEY)
391- let $t01511015227 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, amount)
392- let wxToClaimUserNew = $t01511015227._1
393- let integralSTATE = $t01511015227._2
394- let debug = $t01511015227._3
380+ let $t01427414391 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, amount)
381+ let wxToClaimUserNew = $t01427414391._1
382+ let integralSTATE = $t01427414391._2
383+ let debug = $t01427414391._3
395384 ([IntegerEntry(stakedByUserKEY, (stakedByUser + amount)), IntegerEntry(stakedTotalKEY, (stakedTotal + amount)), OperationHistoryEntry("stake", userAddressStr, lpAssetIdStr, amount, i.transactionId)] ++ integralSTATE)
396385 }
397386
398387
399388
400389 @Callable(i)
401390 func unstake (lpAssetIdStr,amount) = {
402391 let lpAssetId = fromBase58String(lpAssetIdStr)
403392 let poolAddressStr = valueOrErrorMessage(getString(factoryContract, keyFactoryLp2AssetsMapping(lpAssetIdStr)), ("unsupported lp asset " + lpAssetIdStr))
404393 let poolAddon = valueOrElse(getString(this, keyStablePoolAddonAddr()), poolAddressStr)
405394 let callerStr = toString(i.caller)
406395 let userAddressStr = if (if ((callerStr == poolAddressStr))
407396 then true
408397 else (callerStr == poolAddon))
409398 then toString(i.originCaller)
410399 else callerStr
411400 let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr)
412401 let stakedTotalKEY = keyStakedTotal(lpAssetIdStr)
413402 let stakedByUser = readStaked(stakedByUserKEY)
414403 let stakedTotal = readStaked(stakedTotalKEY)
415- let $t01636416482 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, -(amount))
416- let wxToClaimUserNew = $t01636416482._1
417- let integralSTATE = $t01636416482._2
418- let debug = $t01636416482._3
404+ let $t01552815646 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, -(amount))
405+ let wxToClaimUserNew = $t01552815646._1
406+ let integralSTATE = $t01552815646._2
407+ let debug = $t01552815646._3
419408 if ((amount > stakedByUser))
420409 then throw("passed amount is less then available")
421410 else ([IntegerEntry(stakedByUserKEY, (stakedByUser - amount)), IntegerEntry(stakedTotalKEY, (stakedTotal - amount)), ScriptTransfer(i.caller, amount, lpAssetId), OperationHistoryEntry("unstake", userAddressStr, lpAssetIdStr, amount, i.transactionId)] ++ integralSTATE)
422411 }
423412
424413
425414
426415 @Callable(i)
427416 func claimWx (lpAssetIdStr) = {
428417 let userAddress = i.caller
429418 let userAddressStr = toString(i.caller)
430419 let poolAddressStr = getStringByAddressOrFail(factoryContract, keyFactoryLpAssetToPoolContractAddress(lpAssetIdStr))
431420 let claimedByUserKEY = keyClaimedByUser(lpAssetIdStr, userAddressStr)
432421 let claimedTotalKEY = keyClaimedTotal(lpAssetIdStr)
433422 let claimedByUserMinRewardKEY = keyClaimedByUserMinReward(lpAssetIdStr, userAddressStr)
434423 let claimedByUserBoostRewardKEY = keyClaimedByUserBoostReward(lpAssetIdStr, userAddressStr)
435- let claimedByUser = toBigInt(getIntOrZero(this, claimedByUserKEY))
436- let claimedByUserMinReward = toBigInt(getIntOrZero(this, claimedByUserMinRewardKEY))
437- let claimedByUserBoostReward = toBigInt(getIntOrZero(this, claimedByUserBoostRewardKEY))
438- let claimedTotal = toBigInt(getIntOrZero(this, claimedTotalKEY))
439- let $t01771817830 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, 0)
440- let wxToClaimUserNew = $t01771817830._1
441- let integralSTATE = $t01771817830._2
442- let debug = $t01771817830._3
424+ let claimedByUser = getIntOrZero(this, claimedByUserKEY)
425+ let claimedByUserMinReward = getIntOrZero(this, claimedByUserMinRewardKEY)
426+ let claimedByUserBoostReward = getIntOrZero(this, claimedByUserBoostRewardKEY)
427+ let claimedTotal = getIntOrZero(this, claimedTotalKEY)
428+ let $t01683816950 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, 0)
429+ let wxToClaimUserNew = $t01683816950._1
430+ let integralSTATE = $t01683816950._2
431+ let debug = $t01683816950._3
443432 let availableToClaim = (wxToClaimUserNew - claimedByUser)
444- if ((zeroBigInt >= availableToClaim))
433+ if ((0 >= availableToClaim))
445434 then throw("nothing to claim")
446435 else {
447436 let wxAmountBoostTotal = asInt(asAnyList(invoke(boostingContract, "claimWxBoost", [lpAssetIdStr, userAddressStr], nil))[0])
448437 let minRewardPart = availableToClaim
449- let boostRewardPart = min([(minRewardPart * toBigInt(2)), toBigInt(wxAmountBoostTotal)])
438+ let boostRewardPart = min([(minRewardPart * 2), wxAmountBoostTotal])
450439 let wxAssetId = asByteVector(asAnyList(invoke(emissionContract, "emit", [minRewardPart], nil))[0])
451440 let emitBoost = asAnyList(invoke(emissionContract, "emit", [boostRewardPart], nil))
452441 if ((emitBoost == emitBoost))
453- then {
454- let claimedByUserValue = (claimedByUser + availableToClaim)
455- let claimedByUserMinRewardPlusPart = (claimedByUserMinReward + minRewardPart)
456- let claimedByUserBoostRewardPlusBoostRewardPart = (claimedByUserMinReward + minRewardPart)
457- let claimedTotalPlusAvailableToClaim = (claimedByUserMinReward + minRewardPart)
458-[StringEntry(claimedByUserKEY, toString(claimedByUserValue)), StringEntry(claimedByUserMinRewardKEY, toString(claimedByUserMinRewardPlusPart)), StringEntry(claimedByUserBoostRewardKEY, toString(claimedByUserBoostRewardPlusBoostRewardPart)), StringEntry(claimedTotalKEY, toString(claimedTotalPlusAvailableToClaim)), ScriptTransfer(userAddress, toInt(minRewardPart), wxAssetId), ScriptTransfer(userAddress, toInt(boostRewardPart), wxAssetId), OperationHistoryEntry("claim", userAddressStr, lpAssetIdStr, toInt(availableToClaim), i.transactionId)]
459- }
442+ then [IntegerEntry(claimedByUserKEY, (claimedByUser + availableToClaim)), IntegerEntry(claimedByUserMinRewardKEY, (claimedByUserMinReward + minRewardPart)), IntegerEntry(claimedByUserBoostRewardKEY, (claimedByUserBoostReward + boostRewardPart)), IntegerEntry(claimedTotalKEY, (claimedTotal + availableToClaim)), ScriptTransfer(userAddress, minRewardPart, wxAssetId), ScriptTransfer(userAddress, boostRewardPart, wxAssetId), OperationHistoryEntry("claim", userAddressStr, lpAssetIdStr, availableToClaim, i.transactionId)]
460443 else throw("Strict value is not equal to itself.")
461444 }
462445 }
463446
464447
465448
466449 @Callable(i)
467450 func claimWxREADONLY (lpAssetIdStr,userAddressStr) = {
468451 let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr)
469452 let stakedTotalKEY = keyStakedTotal(lpAssetIdStr)
470453 let claimedByUserKEY = keyClaimedByUser(lpAssetIdStr, userAddressStr)
471454 let stakedByUser = readStaked(stakedByUserKEY)
472455 let stakedTotal = readStaked(stakedTotalKEY)
473456 let claimedByUser = getIntOrZero(this, claimedByUserKEY)
474457 let poolAddressStr = getStringByAddressOrFail(factoryContract, keyFactoryLpAssetToPoolContractAddress(lpAssetIdStr))
475458 let poolWeight = getIntegerValue(factoryContract, keyFactoryPoolWeight(poolAddressStr))
476459 let wxEmissionPerBlock = getIntOrFail(emissionContract, keyEmissionRatePerBlockCurrent())
477460 let emissionStartBlock = getIntOrFail(emissionContract, keyEmissionStartBlock())
478461 let passedBlocks = if ((emissionStartBlock > height))
479462 then 0
480463 else (height - emissionStartBlock)
481464 let poolWxEmission = fraction((wxEmissionPerBlock * passedBlocks), poolWeight, POOLWEIGHTMULT)
482465 let userWxReward = fraction(poolWxEmission, stakedByUser, stakedTotal)
483- let $t02041520527 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, 0)
484- let wxToClaimUserNew = $t02041520527._1
485- let integralSTATE = $t02041520527._2
486- let debug = $t02041520527._3
487- let availableToClaim = (wxToClaimUserNew - toBigInt(claimedByUser))
466+ let $t01915119263 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, 0)
467+ let wxToClaimUserNew = $t01915119263._1
468+ let integralSTATE = $t01915119263._2
469+ let debug = $t01915119263._3
470+ let availableToClaim = (wxToClaimUserNew - claimedByUser)
488471 let boostInvResult = asAnyList(invoke(boostingContract, "claimWxBoostREADONLY", [lpAssetIdStr, userAddressStr], nil))
489472 let wxAmountBoostTotal = asInt(boostInvResult[0])
490473 let boostDebug = asString(boostInvResult[1])
491474 let minRewardPart = availableToClaim
492- let boostRewardPart = min([(minRewardPart * toBigInt(2)), toBigInt(wxAmountBoostTotal)])
475+ let boostRewardPart = min([(minRewardPart * 2), wxAmountBoostTotal])
493476 let totalReward = (minRewardPart + boostRewardPart)
494477 $Tuple2(nil, makeString(["%s%s%d%d%d%d%s", lpAssetIdStr, userAddressStr, toString(totalReward), toString(claimedByUser), toString(minRewardPart), toString(boostRewardPart), ((((debug + "::") + toString(userWxReward)) + "::BOOSTDEBUG::") + boostDebug)], SEP))
495478 }
496479
497480
498481
499482 @Callable(i)
500483 func onModifyWeight (lpAssetIdStr,poolAddressStr) = if ((i.caller != factoryContract))
501484 then throw("permissions denied")
502485 else {
503- let $t02144021550 = refreshPoolINTEGRALS(lpAssetIdStr, poolAddressStr, 0)
504- let wxPerLpIntegralNew = $t02144021550._1
505- let poolIntegralSTATE = $t02144021550._2
506- let poolDEBUG = $t02144021550._3
486+ let $t02014320253 = refreshPoolINTEGRALS(lpAssetIdStr, poolAddressStr, 0)
487+ let wxPerLpIntegralNew = $t02014320253._1
488+ let poolIntegralSTATE = $t02014320253._2
489+ let poolDEBUG = $t02014320253._3
507490 poolIntegralSTATE
508491 }
509492
510493
511494 @Verifier(tx)
512495 func verify () = {
513496 let targetPublicKey = match managerPublicKeyOrUnit() {
514497 case pk: ByteVector =>
515498 pk
516499 case _: Unit =>
517500 tx.senderPublicKey
518501 case _ =>
519502 throw("Match error")
520503 }
521504 sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)
522505 }
523506

github/deemru/w8io/169f3d6 
105.96 ms