tx · aT1Y16o2EvkdqQEGK6RriUhHxfqCnCArsNNFrfZ4MQd 3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz: -0.03500000 Waves 2022.06.10 10:27 [2089992] smart account 3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz > SELF 0.00000000 Waves
{ "type": 13, "id": "aT1Y16o2EvkdqQEGK6RriUhHxfqCnCArsNNFrfZ4MQd", "fee": 3500000, "feeAssetId": null, "timestamp": 1654846094756, "version": 1, "sender": "3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz", "senderPublicKey": "D28XoueZWsMfm8Y5pa6C5ZFuYoWgre2Wm8tzJANJgMnq", "proofs": [ "hPmveXDHu7KnL11RGXsY9w7fcWpquoyXtUsSeB8AVuKjNftH8sM75ELoaLdwcjMR5TPHKxoQeDSDeLzn2HWZzLh" ], "script": "base64:AAIFAAAAAAAAACcIAhIDCgEIEgMKAQgSABIAEgQKAggBEgMKAQgSBAoCCAgSBAoCCAgAAABPAAAAAAZTQ0FMRTgAAAAAAAAAAAgAAAAABU1VTFQ4AAAAAAAF9eEAAAAAAAdTQ0FMRTE4AAAAAAAAAAASAAAAAAZNVUxUMTgJAAE2AAAAAQAN4Lazp2QAAAAAAAADU0VQAgAAAAJfXwAAAAAOUE9PTFdFSUdIVE1VTFQFAAAABU1VTFQ4AAAAAAp6ZXJvQmlnSW50CQABNgAAAAEAAAAAAAAAAAAAAAAACW9uZUJpZ0ludAkAATYAAAABAAAAAAAAAAABAQAAAAlhc0FueUxpc3QAAAABAAAAA3ZhbAQAAAAHJG1hdGNoMAUAAAADdmFsAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAlMaXN0W0FueV0EAAAACnZhbEFueUx5c3QFAAAAByRtYXRjaDAFAAAACnZhbEFueUx5c3QJAAACAAAAAQIAAAAbZmFpbCB0byBjYXN0IGludG8gTGlzdFtBbnldAQAAAAVhc0ludAAAAAEAAAADdmFsBAAAAAckbWF0Y2gwBQA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AOb25Nb2RpZnlXZWlnaHQAAAACAAAADGxwQXNzZXRJZFN0cgAAAA5wb29sQWRkcmVzc1N0cgMJAQAAAAIhPQAAAAIIBQAAAAFpAAAABmNhbGxlcgUAAAAPZmFjdG9yeUNvbnRyYWN0CQAAAgAAAAECAAAAEnBlcm1pc3Npb25zIGRlbmllZAQAAAANJHQwMjE3NDUyMTg1NQkBAAAAFHJlZnJlc2hQb29sSU5URUdSQUxTAAAAAwUAAAAMbHBBc3NldElkU3RyBQAAAA5wb29sQWRkcmVzc1N0cgAAAAAAAAAAAAQAAAASd3hQZXJMcEludGVncmFsTmV3CAUAAAANJHQwMjE3NDUyMTg1NQAAAAJfMQQAAAARcG9vbEludGVncmFsU1RBVEUIBQAAAA0kdDAyMTc0NTIxODU1AAAAAl8yBAAAAAlwb29sREVCVUcIBQAAAA0kdDAyMTc0NTIxODU1AAAAAl8zBQAAABFwb29sSW50ZWdyYWxTVEFURQAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAAD3RhcmdldFB1YmxpY0tleQQAAAAHJG1hdGNoMAkBAAAAFm1hbmFnZXJQdWJsaWNLZXlPclVuaXQAAAAAAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAApCeXRlVmVjdG9yBAAAAAJwawUAAAAHJG1hdGNoMAUAAAACcGsDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABFVuaXQIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkJAAACAAAAAQIAAAALTWF0Y2ggZXJyb3IJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAA90YXJnZXRQdWJsaWNLZXnKVxVe", "chainId": 84, "height": 2089992, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5p441rGxiVREaamVWLe4dn6s5Tik1JAFtsofihMhbtBo Next: 8kAmYXLfh3xsMYPmFgpXwbhK8sf3HJ75gXnZYmqT8ng9 Diff:
Old | New | Differences | |
---|---|---|---|
261 | 261 | let wxPerLpIntegralNew = (toBigInt(wxPerLpIntegral) + (wxPerLpX3 * toBigInt(dh))) | |
262 | 262 | let wxPerLpX3New = (toBigInt(poolWxEmissionPerBlockX3) / nonZeroStakedTotalNew) | |
263 | 263 | let wxPerLpIntegralLastUpdHeightNew = height | |
264 | - | let debug = makeString([toString(wxPerLpIntegralNew), toString(dh), toString(wxPerLpX3), toString(stakedTotal), toString(poolWxEmissionPerBlockX3), toString(wxEmissionPerBlockX3), toString(poolWeight)], "::") | |
264 | + | let debug = makeString(["wxPerLpIntegralNew=", toString(wxPerLpIntegralNew), "dh=", toString(dh), "wxPerLpX3=", toString(wxPerLpX3), "stakedTotal=", toString(stakedTotal), "poolWxEmissionPerBlockX3=", toString(poolWxEmissionPerBlockX3), "wxEmissionPerBlockX3=", toString(wxEmissionPerBlockX3), "poolWeight=", toString(poolWeight)], "::") | |
265 | 265 | $Tuple3(wxPerLpIntegralNew, [StringEntry(wxPerLpIntegralKEY, toString(wxPerLpIntegralNew)), IntegerEntry(wxPerLpIntegralLastUpdHeightKEY, wxPerLpIntegralLastUpdHeightNew), StringEntry(wxPerLpKEY, toString(wxPerLpX3New))], debug) | |
266 | 266 | } | |
267 | 267 | ||
268 | 268 | ||
269 | 269 | func refreshINTEGRALS (lpAssetIdStr,userAddressStr,poolAddressStr,lpDeltaAmount) = { | |
270 | - | let $ | |
271 | - | let wxPerLpIntegralNew = $ | |
272 | - | let poolIntegralSTATE = $ | |
273 | - | let poolDEBUG = $ | |
270 | + | let $t01119411316 = refreshPoolINTEGRALS(lpAssetIdStr, poolAddressStr, lpDeltaAmount) | |
271 | + | let wxPerLpIntegralNew = $t01119411316._1 | |
272 | + | let poolIntegralSTATE = $t01119411316._2 | |
273 | + | let poolDEBUG = $t01119411316._3 | |
274 | 274 | let MULT3 = 1000 | |
275 | 275 | let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr) | |
276 | 276 | let stakedByUser = readStaked(stakedByUserKEY) | |
284 | 284 | let wxToClaimUserNew = (toBigInt(wxToClaimUser) + fraction((wxPerLpIntegralNew - wxPerLpIntegralUserLast), toBigInt(stakedByUser), toBigInt(MULT11))) | |
285 | 285 | let wxPerLpIntegralUserLastNew = wxPerLpIntegralNew | |
286 | 286 | let wxPerLpIntegralUserLastUpdHeightNew = height | |
287 | - | let debug = makeString([toString(wxToClaimUserNew), toString(wxPerLpIntegralUserLast), toString(stakedByUser), poolDEBUG, toString(height)], "::") | |
287 | + | let debug = makeString(["wxToClaimUserNew=", toString(wxToClaimUserNew), "wxPerLpIntegralUserLast=", toString(wxPerLpIntegralUserLast), "stakedByUser=", toString(stakedByUser), "poolDEBUG=", poolDEBUG, "height=", toString(height)], "::") | |
288 | 288 | $Tuple3(wxToClaimUserNew, (poolIntegralSTATE ++ [StringEntry(wxToClaimUserKEY, toString(wxToClaimUserNew)), IntegerEntry(wxPerLpIntegralUserLastUpdHeightKEY, wxPerLpIntegralUserLastUpdHeightNew), StringEntry(wxPerLpIntegralUserLastKEY, toString(wxPerLpIntegralUserLastNew))]), debug) | |
289 | 289 | } | |
290 | 290 | ||
388 | 388 | let stakedTotalKEY = keyStakedTotal(lpAssetIdStr) | |
389 | 389 | let stakedByUser = readStaked(stakedByUserKEY) | |
390 | 390 | let stakedTotal = readStaked(stakedTotalKEY) | |
391 | - | let $ | |
392 | - | let wxToClaimUserNew = $ | |
393 | - | let integralSTATE = $ | |
394 | - | let debug = $ | |
391 | + | let $t01541515532 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, amount) | |
392 | + | let wxToClaimUserNew = $t01541515532._1 | |
393 | + | let integralSTATE = $t01541515532._2 | |
394 | + | let debug = $t01541515532._3 | |
395 | 395 | ([IntegerEntry(stakedByUserKEY, (stakedByUser + amount)), IntegerEntry(stakedTotalKEY, (stakedTotal + amount)), OperationHistoryEntry("stake", userAddressStr, lpAssetIdStr, amount, i.transactionId)] ++ integralSTATE) | |
396 | 396 | } | |
397 | 397 | ||
412 | 412 | let stakedTotalKEY = keyStakedTotal(lpAssetIdStr) | |
413 | 413 | let stakedByUser = readStaked(stakedByUserKEY) | |
414 | 414 | let stakedTotal = readStaked(stakedTotalKEY) | |
415 | - | let $ | |
416 | - | let wxToClaimUserNew = $ | |
417 | - | let integralSTATE = $ | |
418 | - | let debug = $ | |
415 | + | let $t01666916787 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, -(amount)) | |
416 | + | let wxToClaimUserNew = $t01666916787._1 | |
417 | + | let integralSTATE = $t01666916787._2 | |
418 | + | let debug = $t01666916787._3 | |
419 | 419 | if ((amount > stakedByUser)) | |
420 | 420 | then throw("passed amount is less then available") | |
421 | 421 | else ([IntegerEntry(stakedByUserKEY, (stakedByUser - amount)), IntegerEntry(stakedTotalKEY, (stakedTotal - amount)), ScriptTransfer(i.caller, amount, lpAssetId), OperationHistoryEntry("unstake", userAddressStr, lpAssetIdStr, amount, i.transactionId)] ++ integralSTATE) | |
436 | 436 | let claimedByUserMinReward = toBigInt(getIntOrZero(this, claimedByUserMinRewardKEY)) | |
437 | 437 | let claimedByUserBoostReward = toBigInt(getIntOrZero(this, claimedByUserBoostRewardKEY)) | |
438 | 438 | let claimedTotal = toBigInt(getIntOrZero(this, claimedTotalKEY)) | |
439 | - | let $ | |
440 | - | let wxToClaimUserNew = $ | |
441 | - | let integralSTATE = $ | |
442 | - | let debug = $ | |
439 | + | let $t01802318135 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, 0) | |
440 | + | let wxToClaimUserNew = $t01802318135._1 | |
441 | + | let integralSTATE = $t01802318135._2 | |
442 | + | let debug = $t01802318135._3 | |
443 | 443 | let availableToClaim = (wxToClaimUserNew - claimedByUser) | |
444 | 444 | if ((zeroBigInt >= availableToClaim)) | |
445 | 445 | then throw("nothing to claim") | |
480 | 480 | else (height - emissionStartBlock) | |
481 | 481 | let poolWxEmission = fraction((wxEmissionPerBlock * passedBlocks), poolWeight, POOLWEIGHTMULT) | |
482 | 482 | let userWxReward = fraction(poolWxEmission, stakedByUser, stakedTotal) | |
483 | - | let $ | |
484 | - | let wxToClaimUserNew = $ | |
485 | - | let integralSTATE = $ | |
486 | - | let debug = $ | |
483 | + | let $t02072020832 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, 0) | |
484 | + | let wxToClaimUserNew = $t02072020832._1 | |
485 | + | let integralSTATE = $t02072020832._2 | |
486 | + | let debug = $t02072020832._3 | |
487 | 487 | let availableToClaim = (wxToClaimUserNew - toBigInt(claimedByUser)) | |
488 | - | let error = makeString(["availableToClaim", toString(availableToClaim)], " ") | |
489 | - | if ((error == error)) | |
490 | - | then { | |
491 | - | let boostInvResult = asAnyList(invoke(boostingContract, "claimWxBoostREADONLY", [lpAssetIdStr, userAddressStr], nil)) | |
492 | - | let wxAmountBoostTotal = asInt(boostInvResult[0]) | |
493 | - | let boostDebug = asString(boostInvResult[1]) | |
494 | - | let minRewardPart = availableToClaim | |
495 | - | let boostRewardPart = min([(minRewardPart * toBigInt(2)), toBigInt(wxAmountBoostTotal)]) | |
496 | - | let totalReward = (minRewardPart + boostRewardPart) | |
497 | - | $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)) | |
498 | - | } | |
499 | - | else throw("Strict value is not equal to itself.") | |
488 | + | let boostInvResult = asAnyList(invoke(boostingContract, "claimWxBoostREADONLY", [lpAssetIdStr, userAddressStr], nil)) | |
489 | + | let wxAmountBoostTotal = asInt(boostInvResult[0]) | |
490 | + | let boostDebug = asString(boostInvResult[1]) | |
491 | + | let minRewardPart = availableToClaim | |
492 | + | let boostRewardPart = min([(minRewardPart * toBigInt(2)), toBigInt(wxAmountBoostTotal)]) | |
493 | + | let totalReward = (minRewardPart + boostRewardPart) | |
494 | + | $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)) | |
500 | 495 | } | |
501 | 496 | ||
502 | 497 | ||
505 | 500 | func onModifyWeight (lpAssetIdStr,poolAddressStr) = if ((i.caller != factoryContract)) | |
506 | 501 | then throw("permissions denied") | |
507 | 502 | else { | |
508 | - | let $ | |
509 | - | let wxPerLpIntegralNew = $ | |
510 | - | let poolIntegralSTATE = $ | |
511 | - | let poolDEBUG = $ | |
503 | + | let $t02174521855 = refreshPoolINTEGRALS(lpAssetIdStr, poolAddressStr, 0) | |
504 | + | let wxPerLpIntegralNew = $t02174521855._1 | |
505 | + | let poolIntegralSTATE = $t02174521855._2 | |
506 | + | let poolDEBUG = $t02174521855._3 | |
512 | 507 | poolIntegralSTATE | |
513 | 508 | } | |
514 | 509 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let SCALE8 = 8 | |
5 | 5 | ||
6 | 6 | let MULT8 = 100000000 | |
7 | 7 | ||
8 | 8 | let SCALE18 = 18 | |
9 | 9 | ||
10 | 10 | let MULT18 = toBigInt(1000000000000000000) | |
11 | 11 | ||
12 | 12 | let SEP = "__" | |
13 | 13 | ||
14 | 14 | let POOLWEIGHTMULT = MULT8 | |
15 | 15 | ||
16 | 16 | let zeroBigInt = toBigInt(0) | |
17 | 17 | ||
18 | 18 | let oneBigInt = toBigInt(1) | |
19 | 19 | ||
20 | 20 | func asAnyList (val) = match val { | |
21 | 21 | case valAnyLyst: List[Any] => | |
22 | 22 | valAnyLyst | |
23 | 23 | case _ => | |
24 | 24 | throw("fail to cast into List[Any]") | |
25 | 25 | } | |
26 | 26 | ||
27 | 27 | ||
28 | 28 | func asInt (val) = match val { | |
29 | 29 | case valInt: Int => | |
30 | 30 | valInt | |
31 | 31 | case _ => | |
32 | 32 | throw("fail to cast into Int") | |
33 | 33 | } | |
34 | 34 | ||
35 | 35 | ||
36 | 36 | func asString (val) = match val { | |
37 | 37 | case valStr: String => | |
38 | 38 | valStr | |
39 | 39 | case _ => | |
40 | 40 | throw("fail to cast into Int") | |
41 | 41 | } | |
42 | 42 | ||
43 | 43 | ||
44 | 44 | func asByteVector (val) = match val { | |
45 | 45 | case valBin: ByteVector => | |
46 | 46 | valBin | |
47 | 47 | case _ => | |
48 | 48 | throw("fail to cast into Int") | |
49 | 49 | } | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), (("mandatory this." + key) + " is not defined")) | |
53 | 53 | ||
54 | 54 | ||
55 | 55 | func getStringByAddressOrFail (address,key) = valueOrErrorMessage(getString(address, key), (((("mandatory " + toString(address)) + ".") + key) + " is not defined")) | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | func getIntOrZero (address,key) = valueOrElse(getInteger(address, key), 0) | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | func getIntOrDefault (address,key,defaultVal) = valueOrElse(getInteger(address, key), defaultVal) | |
62 | 62 | ||
63 | 63 | ||
64 | 64 | func getIntOrFail (address,key) = valueOrErrorMessage(getInteger(address, key), (("mandatory this." + key) + " is not defined")) | |
65 | 65 | ||
66 | 66 | ||
67 | 67 | func toX18 (origVal,origScaleMult) = fraction(toBigInt(origVal), MULT18, toBigInt(origScaleMult)) | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | func fromX18 (val,resultScaleMult) = toInt(fraction(val, toBigInt(resultScaleMult), MULT18)) | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | func keyFactoryAddress () = "%s%s__config__factoryAddress" | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | let IdxFactoryCfgStakingDapp = 1 | |
77 | 77 | ||
78 | 78 | let IdxFactoryCfgBoostingDapp = 2 | |
79 | 79 | ||
80 | 80 | let IdxFactoryCfgIdoDapp = 3 | |
81 | 81 | ||
82 | 82 | let IdxFactoryCfgTeamDapp = 4 | |
83 | 83 | ||
84 | 84 | let IdxFactoryCfgEmissionDapp = 5 | |
85 | 85 | ||
86 | 86 | let IdxFactoryCfgRestDapp = 6 | |
87 | 87 | ||
88 | 88 | let IdxFactoryCfgSlippageDapp = 7 | |
89 | 89 | ||
90 | 90 | func keyFactoryCfg () = "%s__factoryConfig" | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | func keyManagerPublicKey () = "%s__managerPublicKey" | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func keyPendingManagerPublicKey () = "%s__pendingManagerPublicKey" | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | func keyStablePoolAddonAddr () = "%s__stablePoolAddonAddr" | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | func keyFactoryLp2AssetsMapping (lpAssetStr) = makeString(["%s%s%s", lpAssetStr, "mappings__lpAsset2PoolContract"], SEP) | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func keyFactoryLpList () = "%s__lpTokensList" | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | func keyFactoryLpAssetToPoolContractAddress (lpAssetStr) = makeString(["%s%s%s", lpAssetStr, "mappings__lpAsset2PoolContract"], SEP) | |
109 | 109 | ||
110 | 110 | ||
111 | 111 | func keyFactoryPoolWeight (contractAddress) = makeString(["%s%s", "poolWeight", contractAddress], SEP) | |
112 | 112 | ||
113 | 113 | ||
114 | 114 | func readLpList (factory) = split(valueOrElse(getString(factory, keyFactoryLpList()), ""), SEP) | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | func readFactoryCfgOrFail (factory) = split(getStringByAddressOrFail(factory, keyFactoryCfg()), SEP) | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | func getBoostingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgBoostingDapp]) | |
121 | 121 | ||
122 | 122 | ||
123 | 123 | func getEmissionAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgEmissionDapp]) | |
124 | 124 | ||
125 | 125 | ||
126 | 126 | func getStakingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgStakingDapp]) | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | func keyEmissionRatePerBlockCurrent () = "%s%s__ratePerBlock__current" | |
130 | 130 | ||
131 | 131 | ||
132 | 132 | func keyEmissionRatePerBlockMaxCurrent () = "%s%s__ratePerBlockMax__current" | |
133 | 133 | ||
134 | 134 | ||
135 | 135 | func keyEmissionStartBlock () = "%s%s__emission__startBlock" | |
136 | 136 | ||
137 | 137 | ||
138 | 138 | func keyEmissionDurationInBlocks () = "%s%s__emission__duration" | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | func keyEmissionEndBlock () = "%s%s__emission__endBlock" | |
142 | 142 | ||
143 | 143 | ||
144 | 144 | func keyStakedByUser (userAddressStr,lpAssetIdStr) = makeString(["%s%s%s__staked", userAddressStr, lpAssetIdStr], SEP) | |
145 | 145 | ||
146 | 146 | ||
147 | 147 | func keyStakedTotal (lpAssetIdStr) = ("%s%s%s__staked__total__" + lpAssetIdStr) | |
148 | 148 | ||
149 | 149 | ||
150 | 150 | func keyClaimedByUser (lpAssetIdStr,userAddressStr) = makeString(["%s%s%s__claimed", userAddressStr, lpAssetIdStr], SEP) | |
151 | 151 | ||
152 | 152 | ||
153 | 153 | func keyClaimedByUserMinReward (lpAssetIdStr,userAddressStr) = makeString(["%s%s%s__claimedMinReward", userAddressStr, lpAssetIdStr], SEP) | |
154 | 154 | ||
155 | 155 | ||
156 | 156 | func keyClaimedByUserBoostReward (lpAssetIdStr,userAddressStr) = makeString(["%s%s%s__claimedBoostReward", userAddressStr, lpAssetIdStr], SEP) | |
157 | 157 | ||
158 | 158 | ||
159 | 159 | func keyClaimedTotal (lpAssetIdStr) = makeString(["%s%s%s__claimed", "total", lpAssetIdStr], SEP) | |
160 | 160 | ||
161 | 161 | ||
162 | 162 | func readStaked (key) = valueOrElse(getInteger(this, key), 0) | |
163 | 163 | ||
164 | 164 | ||
165 | 165 | func keyLastTotalLpBalance (lpAssetId) = makeString(["%s%s%s", lpAssetId, "total", "bal"], SEP) | |
166 | 166 | ||
167 | 167 | ||
168 | 168 | func keyLastUserLpBalance (lpAssetId,userAddress) = makeString(["%s%s%s", lpAssetId, userAddress, "bal"], SEP) | |
169 | 169 | ||
170 | 170 | ||
171 | 171 | func keyTotalLpBalanceIntegral (lpAssetId) = makeString(["%s%s%s", lpAssetId, "total", "balINT"], SEP) | |
172 | 172 | ||
173 | 173 | ||
174 | 174 | func keyUserLpBalanceIntegral (lpAssetId,userAddress) = makeString(["%s%s%s", lpAssetId, userAddress, "balINT"], SEP) | |
175 | 175 | ||
176 | 176 | ||
177 | 177 | func keyTotalLpBalanceIntegralLastUpdHeight (lpAssetId) = makeString(["%s%s%s", lpAssetId, "total", "lastUpd"], SEP) | |
178 | 178 | ||
179 | 179 | ||
180 | 180 | func keyUserLpBalanceIntegralLastUpdHeight (lpAssetId,userAddress) = makeString(["%s%s%s", lpAssetId, userAddress, "lastUpd"], SEP) | |
181 | 181 | ||
182 | 182 | ||
183 | 183 | func keyWxPerLpIntegral (lpAssetId) = makeString(["%s%s%s%s", lpAssetId, "common", "lpInt"], SEP) | |
184 | 184 | ||
185 | 185 | ||
186 | 186 | func keyWxPerLpIntegralLastUpdHeight (lpAssetId) = makeString(["%s%s%s%s", lpAssetId, "common", "lpIntH"], SEP) | |
187 | 187 | ||
188 | 188 | ||
189 | 189 | func keyWxToClaimUser (lpAssetId,userAddress) = makeString(["%s%s%s%s", lpAssetId, userAddress, "lpInt"], SEP) | |
190 | 190 | ||
191 | 191 | ||
192 | 192 | func keyWxPerLpIntegralUserLastUpdHeight (lpAssetId,userAddress) = makeString(["%s%s%s%s", lpAssetId, userAddress, "lpIntH"], SEP) | |
193 | 193 | ||
194 | 194 | ||
195 | 195 | func keyWxPerLp (lpAssetId) = makeString(["%s", lpAssetId, "wxPerLp"], SEP) | |
196 | 196 | ||
197 | 197 | ||
198 | 198 | func keyWxPerLpX18 (lpAssetId) = makeString(["%s", lpAssetId, "wxPerLpX18"], SEP) | |
199 | 199 | ||
200 | 200 | ||
201 | 201 | func keyWxPerLpIntegralUserLast (lpAssetId,userAddress) = makeString(["%s%s%s%s", lpAssetId, userAddress, "uIntL"], SEP) | |
202 | 202 | ||
203 | 203 | ||
204 | 204 | func keyOperationHistoryRecord (type,userAddress,txId58) = makeString(["%s%s%s%s__history", type, userAddress, txId58], SEP) | |
205 | 205 | ||
206 | 206 | ||
207 | 207 | func formatHistoryRecord (userAddress,lpAssetId,type,amount) = makeString(["%s%s%s%d%d%d", userAddress, lpAssetId, type, toString(height), toString(lastBlock.timestamp), toString(amount)], SEP) | |
208 | 208 | ||
209 | 209 | ||
210 | 210 | func OperationHistoryEntry (type,userAddress,lpAssetId,amount,txId) = StringEntry(keyOperationHistoryRecord(type, userAddress, toBase58String(txId)), formatHistoryRecord(userAddress, lpAssetId, type, amount)) | |
211 | 211 | ||
212 | 212 | ||
213 | 213 | let factoryAddress = getStringOrFail(this, keyFactoryAddress()) | |
214 | 214 | ||
215 | 215 | let factoryContract = addressFromStringValue(factoryAddress) | |
216 | 216 | ||
217 | 217 | let factoryCfg = readFactoryCfgOrFail(factoryContract) | |
218 | 218 | ||
219 | 219 | let emissionContract = getEmissionAddressOrFail(factoryCfg) | |
220 | 220 | ||
221 | 221 | let boostingContract = getBoostingAddressOrFail(factoryCfg) | |
222 | 222 | ||
223 | 223 | func calcWxPerLpIntegralUserLast (stakedByUser,wxPerLpIntegralUserLastUpdHeightOrZero,wxPerLpIntegralNew,wxPerLpIntegralUserLastKEY) = if (if ((wxPerLpIntegralUserLastUpdHeightOrZero == zeroBigInt)) | |
224 | 224 | then (stakedByUser > zeroBigInt) | |
225 | 225 | else false) | |
226 | 226 | then zeroBigInt | |
227 | 227 | else if ((stakedByUser == zeroBigInt)) | |
228 | 228 | then wxPerLpIntegralNew | |
229 | 229 | else if (if ((wxPerLpIntegralUserLastUpdHeightOrZero > zeroBigInt)) | |
230 | 230 | then (stakedByUser > zeroBigInt) | |
231 | 231 | else false) | |
232 | 232 | then value(parseBigInt(getStringOrFail(this, wxPerLpIntegralUserLastKEY))) | |
233 | 233 | else throw("calcWxPerLpIntegralUserLast: unexpected state") | |
234 | 234 | ||
235 | 235 | ||
236 | 236 | func refreshPoolINTEGRALS (lpAssetIdStr,poolAddressStr,lpDeltaAmount) = { | |
237 | 237 | let stakedTotalKEY = keyStakedTotal(lpAssetIdStr) | |
238 | 238 | let stakedTotal = toBigInt(readStaked(stakedTotalKEY)) | |
239 | 239 | let nonZeroStakedTotal = if ((stakedTotal == zeroBigInt)) | |
240 | 240 | then oneBigInt | |
241 | 241 | else stakedTotal | |
242 | 242 | let poolWeight = getIntegerValue(factoryContract, keyFactoryPoolWeight(poolAddressStr)) | |
243 | 243 | let emissionStartBlock = getIntOrFail(emissionContract, keyEmissionStartBlock()) | |
244 | 244 | let MULT3 = 1000 | |
245 | 245 | let wxEmissionPerBlockX3 = (getIntOrFail(emissionContract, keyEmissionRatePerBlockCurrent()) * MULT3) | |
246 | 246 | let poolWxEmissionPerBlockX3 = fraction(wxEmissionPerBlockX3, poolWeight, (POOLWEIGHTMULT * 3)) | |
247 | 247 | let wxPerLpIntegralKEY = keyWxPerLpIntegral(lpAssetIdStr) | |
248 | 248 | let wxPerLpIntegralLastUpdHeightKEY = keyWxPerLpIntegralLastUpdHeight(lpAssetIdStr) | |
249 | 249 | let wxPerLpKEY = keyWxPerLp(lpAssetIdStr) | |
250 | 250 | let wxPerLpIntegralLastUpdHeight = getIntOrDefault(this, wxPerLpIntegralLastUpdHeightKEY, emissionStartBlock) | |
251 | 251 | let wxPerLpIntegral = getIntOrZero(this, wxPerLpIntegralKEY) | |
252 | 252 | let wxPerLpOrZeroX3 = 0 | |
253 | 253 | let dh = max([(height - wxPerLpIntegralLastUpdHeight), 0]) | |
254 | 254 | let wxPerLpX3 = if ((wxPerLpOrZeroX3 != 0)) | |
255 | 255 | then toBigInt(wxPerLpOrZeroX3) | |
256 | 256 | else fraction(toBigInt(poolWxEmissionPerBlockX3), toBigInt(MULT8), nonZeroStakedTotal) | |
257 | 257 | let stakedTotalNew = (stakedTotal + toBigInt(lpDeltaAmount)) | |
258 | 258 | let nonZeroStakedTotalNew = if ((stakedTotalNew == zeroBigInt)) | |
259 | 259 | then oneBigInt | |
260 | 260 | else stakedTotalNew | |
261 | 261 | let wxPerLpIntegralNew = (toBigInt(wxPerLpIntegral) + (wxPerLpX3 * toBigInt(dh))) | |
262 | 262 | let wxPerLpX3New = (toBigInt(poolWxEmissionPerBlockX3) / nonZeroStakedTotalNew) | |
263 | 263 | let wxPerLpIntegralLastUpdHeightNew = height | |
264 | - | let debug = makeString([toString(wxPerLpIntegralNew), toString(dh), toString(wxPerLpX3), toString(stakedTotal), toString(poolWxEmissionPerBlockX3), toString(wxEmissionPerBlockX3), toString(poolWeight)], "::") | |
264 | + | let debug = makeString(["wxPerLpIntegralNew=", toString(wxPerLpIntegralNew), "dh=", toString(dh), "wxPerLpX3=", toString(wxPerLpX3), "stakedTotal=", toString(stakedTotal), "poolWxEmissionPerBlockX3=", toString(poolWxEmissionPerBlockX3), "wxEmissionPerBlockX3=", toString(wxEmissionPerBlockX3), "poolWeight=", toString(poolWeight)], "::") | |
265 | 265 | $Tuple3(wxPerLpIntegralNew, [StringEntry(wxPerLpIntegralKEY, toString(wxPerLpIntegralNew)), IntegerEntry(wxPerLpIntegralLastUpdHeightKEY, wxPerLpIntegralLastUpdHeightNew), StringEntry(wxPerLpKEY, toString(wxPerLpX3New))], debug) | |
266 | 266 | } | |
267 | 267 | ||
268 | 268 | ||
269 | 269 | func refreshINTEGRALS (lpAssetIdStr,userAddressStr,poolAddressStr,lpDeltaAmount) = { | |
270 | - | let $ | |
271 | - | let wxPerLpIntegralNew = $ | |
272 | - | let poolIntegralSTATE = $ | |
273 | - | let poolDEBUG = $ | |
270 | + | let $t01119411316 = refreshPoolINTEGRALS(lpAssetIdStr, poolAddressStr, lpDeltaAmount) | |
271 | + | let wxPerLpIntegralNew = $t01119411316._1 | |
272 | + | let poolIntegralSTATE = $t01119411316._2 | |
273 | + | let poolDEBUG = $t01119411316._3 | |
274 | 274 | let MULT3 = 1000 | |
275 | 275 | let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr) | |
276 | 276 | let stakedByUser = readStaked(stakedByUserKEY) | |
277 | 277 | let wxToClaimUserKEY = keyWxToClaimUser(lpAssetIdStr, userAddressStr) | |
278 | 278 | let wxPerLpIntegralUserLastUpdHeightKEY = keyWxPerLpIntegralUserLastUpdHeight(lpAssetIdStr, userAddressStr) | |
279 | 279 | let wxPerLpIntegralUserLastKEY = keyWxPerLpIntegralUserLast(lpAssetIdStr, userAddressStr) | |
280 | 280 | let wxToClaimUser = getIntOrZero(this, wxToClaimUserKEY) | |
281 | 281 | let wxPerLpIntegralUserLastUpdHeightOrZero = getIntOrZero(this, wxPerLpIntegralUserLastUpdHeightKEY) | |
282 | 282 | let wxPerLpIntegralUserLast = calcWxPerLpIntegralUserLast(toBigInt(stakedByUser), toBigInt(wxPerLpIntegralUserLastUpdHeightOrZero), wxPerLpIntegralNew, wxPerLpIntegralUserLastKEY) | |
283 | 283 | let MULT11 = (MULT8 * MULT3) | |
284 | 284 | let wxToClaimUserNew = (toBigInt(wxToClaimUser) + fraction((wxPerLpIntegralNew - wxPerLpIntegralUserLast), toBigInt(stakedByUser), toBigInt(MULT11))) | |
285 | 285 | let wxPerLpIntegralUserLastNew = wxPerLpIntegralNew | |
286 | 286 | let wxPerLpIntegralUserLastUpdHeightNew = height | |
287 | - | let debug = makeString([toString(wxToClaimUserNew), toString(wxPerLpIntegralUserLast), toString(stakedByUser), poolDEBUG, toString(height)], "::") | |
287 | + | let debug = makeString(["wxToClaimUserNew=", toString(wxToClaimUserNew), "wxPerLpIntegralUserLast=", toString(wxPerLpIntegralUserLast), "stakedByUser=", toString(stakedByUser), "poolDEBUG=", poolDEBUG, "height=", toString(height)], "::") | |
288 | 288 | $Tuple3(wxToClaimUserNew, (poolIntegralSTATE ++ [StringEntry(wxToClaimUserKEY, toString(wxToClaimUserNew)), IntegerEntry(wxPerLpIntegralUserLastUpdHeightKEY, wxPerLpIntegralUserLastUpdHeightNew), StringEntry(wxPerLpIntegralUserLastKEY, toString(wxPerLpIntegralUserLastNew))]), debug) | |
289 | 289 | } | |
290 | 290 | ||
291 | 291 | ||
292 | 292 | func managerPublicKeyOrUnit () = match getString(keyManagerPublicKey()) { | |
293 | 293 | case s: String => | |
294 | 294 | fromBase58String(s) | |
295 | 295 | case _: Unit => | |
296 | 296 | unit | |
297 | 297 | case _ => | |
298 | 298 | throw("Match error") | |
299 | 299 | } | |
300 | 300 | ||
301 | 301 | ||
302 | 302 | func pendingManagerPublicKeyOrUnit () = match getString(keyPendingManagerPublicKey()) { | |
303 | 303 | case s: String => | |
304 | 304 | fromBase58String(s) | |
305 | 305 | case _: Unit => | |
306 | 306 | unit | |
307 | 307 | case _ => | |
308 | 308 | throw("Match error") | |
309 | 309 | } | |
310 | 310 | ||
311 | 311 | ||
312 | 312 | func mustManager (i) = { | |
313 | 313 | let pd = throw("Permission denied") | |
314 | 314 | match managerPublicKeyOrUnit() { | |
315 | 315 | case pk: ByteVector => | |
316 | 316 | if ((i.callerPublicKey == pk)) | |
317 | 317 | then true | |
318 | 318 | else pd | |
319 | 319 | case _: Unit => | |
320 | 320 | if ((i.caller == this)) | |
321 | 321 | then true | |
322 | 322 | else pd | |
323 | 323 | case _ => | |
324 | 324 | throw("Match error") | |
325 | 325 | } | |
326 | 326 | } | |
327 | 327 | ||
328 | 328 | ||
329 | 329 | @Callable(i) | |
330 | 330 | func constructor (factoryAddressStr) = { | |
331 | 331 | let checkCaller = mustManager(i) | |
332 | 332 | if ((checkCaller == checkCaller)) | |
333 | 333 | then [StringEntry(keyFactoryAddress(), factoryAddressStr)] | |
334 | 334 | else throw("Strict value is not equal to itself.") | |
335 | 335 | } | |
336 | 336 | ||
337 | 337 | ||
338 | 338 | ||
339 | 339 | @Callable(i) | |
340 | 340 | func setManager (pendingManagerPublicKey) = { | |
341 | 341 | let checkCaller = mustManager(i) | |
342 | 342 | if ((checkCaller == checkCaller)) | |
343 | 343 | then { | |
344 | 344 | let checkManagerPublicKey = fromBase58String(pendingManagerPublicKey) | |
345 | 345 | if ((checkManagerPublicKey == checkManagerPublicKey)) | |
346 | 346 | then [StringEntry(keyPendingManagerPublicKey(), pendingManagerPublicKey)] | |
347 | 347 | else throw("Strict value is not equal to itself.") | |
348 | 348 | } | |
349 | 349 | else throw("Strict value is not equal to itself.") | |
350 | 350 | } | |
351 | 351 | ||
352 | 352 | ||
353 | 353 | ||
354 | 354 | @Callable(i) | |
355 | 355 | func confirmManager () = { | |
356 | 356 | let pm = pendingManagerPublicKeyOrUnit() | |
357 | 357 | let hasPM = if (isDefined(pm)) | |
358 | 358 | then true | |
359 | 359 | else throw("No pending manager") | |
360 | 360 | if ((hasPM == hasPM)) | |
361 | 361 | then { | |
362 | 362 | let checkPM = if ((i.callerPublicKey == value(pm))) | |
363 | 363 | then true | |
364 | 364 | else throw("You are not pending manager") | |
365 | 365 | if ((checkPM == checkPM)) | |
366 | 366 | then [StringEntry(keyManagerPublicKey(), toBase58String(value(pm))), DeleteEntry(keyPendingManagerPublicKey())] | |
367 | 367 | else throw("Strict value is not equal to itself.") | |
368 | 368 | } | |
369 | 369 | else throw("Strict value is not equal to itself.") | |
370 | 370 | } | |
371 | 371 | ||
372 | 372 | ||
373 | 373 | ||
374 | 374 | @Callable(i) | |
375 | 375 | func stake () = if ((size(i.payments) != 1)) | |
376 | 376 | then throw("invalid payment - exact one payment must be attached") | |
377 | 377 | else { | |
378 | 378 | let pmt = i.payments[0] | |
379 | 379 | let lpAssetId = value(pmt.assetId) | |
380 | 380 | let lpAssetIdStr = toBase58String(lpAssetId) | |
381 | 381 | let amount = pmt.amount | |
382 | 382 | let poolAddressStr = valueOrErrorMessage(getString(factoryContract, keyFactoryLp2AssetsMapping(lpAssetIdStr)), ("unsupported lp asset " + lpAssetIdStr)) | |
383 | 383 | let callerStr = toString(i.caller) | |
384 | 384 | let userAddressStr = if ((callerStr == poolAddressStr)) | |
385 | 385 | then toString(i.originCaller) | |
386 | 386 | else callerStr | |
387 | 387 | let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr) | |
388 | 388 | let stakedTotalKEY = keyStakedTotal(lpAssetIdStr) | |
389 | 389 | let stakedByUser = readStaked(stakedByUserKEY) | |
390 | 390 | let stakedTotal = readStaked(stakedTotalKEY) | |
391 | - | let $ | |
392 | - | let wxToClaimUserNew = $ | |
393 | - | let integralSTATE = $ | |
394 | - | let debug = $ | |
391 | + | let $t01541515532 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, amount) | |
392 | + | let wxToClaimUserNew = $t01541515532._1 | |
393 | + | let integralSTATE = $t01541515532._2 | |
394 | + | let debug = $t01541515532._3 | |
395 | 395 | ([IntegerEntry(stakedByUserKEY, (stakedByUser + amount)), IntegerEntry(stakedTotalKEY, (stakedTotal + amount)), OperationHistoryEntry("stake", userAddressStr, lpAssetIdStr, amount, i.transactionId)] ++ integralSTATE) | |
396 | 396 | } | |
397 | 397 | ||
398 | 398 | ||
399 | 399 | ||
400 | 400 | @Callable(i) | |
401 | 401 | func unstake (lpAssetIdStr,amount) = { | |
402 | 402 | let lpAssetId = fromBase58String(lpAssetIdStr) | |
403 | 403 | let poolAddressStr = valueOrErrorMessage(getString(factoryContract, keyFactoryLp2AssetsMapping(lpAssetIdStr)), ("unsupported lp asset " + lpAssetIdStr)) | |
404 | 404 | let poolAddon = valueOrElse(getString(this, keyStablePoolAddonAddr()), poolAddressStr) | |
405 | 405 | let callerStr = toString(i.caller) | |
406 | 406 | let userAddressStr = if (if ((callerStr == poolAddressStr)) | |
407 | 407 | then true | |
408 | 408 | else (callerStr == poolAddon)) | |
409 | 409 | then toString(i.originCaller) | |
410 | 410 | else callerStr | |
411 | 411 | let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr) | |
412 | 412 | let stakedTotalKEY = keyStakedTotal(lpAssetIdStr) | |
413 | 413 | let stakedByUser = readStaked(stakedByUserKEY) | |
414 | 414 | let stakedTotal = readStaked(stakedTotalKEY) | |
415 | - | let $ | |
416 | - | let wxToClaimUserNew = $ | |
417 | - | let integralSTATE = $ | |
418 | - | let debug = $ | |
415 | + | let $t01666916787 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, -(amount)) | |
416 | + | let wxToClaimUserNew = $t01666916787._1 | |
417 | + | let integralSTATE = $t01666916787._2 | |
418 | + | let debug = $t01666916787._3 | |
419 | 419 | if ((amount > stakedByUser)) | |
420 | 420 | then throw("passed amount is less then available") | |
421 | 421 | else ([IntegerEntry(stakedByUserKEY, (stakedByUser - amount)), IntegerEntry(stakedTotalKEY, (stakedTotal - amount)), ScriptTransfer(i.caller, amount, lpAssetId), OperationHistoryEntry("unstake", userAddressStr, lpAssetIdStr, amount, i.transactionId)] ++ integralSTATE) | |
422 | 422 | } | |
423 | 423 | ||
424 | 424 | ||
425 | 425 | ||
426 | 426 | @Callable(i) | |
427 | 427 | func claimWx (lpAssetIdStr) = { | |
428 | 428 | let userAddress = i.caller | |
429 | 429 | let userAddressStr = toString(i.caller) | |
430 | 430 | let poolAddressStr = getStringByAddressOrFail(factoryContract, keyFactoryLpAssetToPoolContractAddress(lpAssetIdStr)) | |
431 | 431 | let claimedByUserKEY = keyClaimedByUser(lpAssetIdStr, userAddressStr) | |
432 | 432 | let claimedTotalKEY = keyClaimedTotal(lpAssetIdStr) | |
433 | 433 | let claimedByUserMinRewardKEY = keyClaimedByUserMinReward(lpAssetIdStr, userAddressStr) | |
434 | 434 | let claimedByUserBoostRewardKEY = keyClaimedByUserBoostReward(lpAssetIdStr, userAddressStr) | |
435 | 435 | let claimedByUser = toBigInt(getIntOrZero(this, claimedByUserKEY)) | |
436 | 436 | let claimedByUserMinReward = toBigInt(getIntOrZero(this, claimedByUserMinRewardKEY)) | |
437 | 437 | let claimedByUserBoostReward = toBigInt(getIntOrZero(this, claimedByUserBoostRewardKEY)) | |
438 | 438 | let claimedTotal = toBigInt(getIntOrZero(this, claimedTotalKEY)) | |
439 | - | let $ | |
440 | - | let wxToClaimUserNew = $ | |
441 | - | let integralSTATE = $ | |
442 | - | let debug = $ | |
439 | + | let $t01802318135 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, 0) | |
440 | + | let wxToClaimUserNew = $t01802318135._1 | |
441 | + | let integralSTATE = $t01802318135._2 | |
442 | + | let debug = $t01802318135._3 | |
443 | 443 | let availableToClaim = (wxToClaimUserNew - claimedByUser) | |
444 | 444 | if ((zeroBigInt >= availableToClaim)) | |
445 | 445 | then throw("nothing to claim") | |
446 | 446 | else { | |
447 | 447 | let wxAmountBoostTotal = asInt(asAnyList(invoke(boostingContract, "claimWxBoost", [lpAssetIdStr, userAddressStr], nil))[0]) | |
448 | 448 | let minRewardPart = availableToClaim | |
449 | 449 | let boostRewardPart = min([(minRewardPart * toBigInt(2)), toBigInt(wxAmountBoostTotal)]) | |
450 | 450 | let wxAssetId = asByteVector(asAnyList(invoke(emissionContract, "emit", [minRewardPart], nil))[0]) | |
451 | 451 | let emitBoost = asAnyList(invoke(emissionContract, "emit", [boostRewardPart], nil)) | |
452 | 452 | if ((emitBoost == emitBoost)) | |
453 | 453 | then { | |
454 | 454 | let claimedByUserValue = (claimedByUser + availableToClaim) | |
455 | 455 | let claimedByUserMinRewardPlusPart = (claimedByUserMinReward + minRewardPart) | |
456 | 456 | let claimedByUserBoostRewardPlusBoostRewardPart = (claimedByUserMinReward + minRewardPart) | |
457 | 457 | let claimedTotalPlusAvailableToClaim = (claimedByUserMinReward + minRewardPart) | |
458 | 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 | 459 | } | |
460 | 460 | else throw("Strict value is not equal to itself.") | |
461 | 461 | } | |
462 | 462 | } | |
463 | 463 | ||
464 | 464 | ||
465 | 465 | ||
466 | 466 | @Callable(i) | |
467 | 467 | func claimWxREADONLY (lpAssetIdStr,userAddressStr) = { | |
468 | 468 | let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr) | |
469 | 469 | let stakedTotalKEY = keyStakedTotal(lpAssetIdStr) | |
470 | 470 | let claimedByUserKEY = keyClaimedByUser(lpAssetIdStr, userAddressStr) | |
471 | 471 | let stakedByUser = readStaked(stakedByUserKEY) | |
472 | 472 | let stakedTotal = readStaked(stakedTotalKEY) | |
473 | 473 | let claimedByUser = getIntOrZero(this, claimedByUserKEY) | |
474 | 474 | let poolAddressStr = getStringByAddressOrFail(factoryContract, keyFactoryLpAssetToPoolContractAddress(lpAssetIdStr)) | |
475 | 475 | let poolWeight = getIntegerValue(factoryContract, keyFactoryPoolWeight(poolAddressStr)) | |
476 | 476 | let wxEmissionPerBlock = getIntOrFail(emissionContract, keyEmissionRatePerBlockCurrent()) | |
477 | 477 | let emissionStartBlock = getIntOrFail(emissionContract, keyEmissionStartBlock()) | |
478 | 478 | let passedBlocks = if ((emissionStartBlock > height)) | |
479 | 479 | then 0 | |
480 | 480 | else (height - emissionStartBlock) | |
481 | 481 | let poolWxEmission = fraction((wxEmissionPerBlock * passedBlocks), poolWeight, POOLWEIGHTMULT) | |
482 | 482 | let userWxReward = fraction(poolWxEmission, stakedByUser, stakedTotal) | |
483 | - | let $ | |
484 | - | let wxToClaimUserNew = $ | |
485 | - | let integralSTATE = $ | |
486 | - | let debug = $ | |
483 | + | let $t02072020832 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, 0) | |
484 | + | let wxToClaimUserNew = $t02072020832._1 | |
485 | + | let integralSTATE = $t02072020832._2 | |
486 | + | let debug = $t02072020832._3 | |
487 | 487 | let availableToClaim = (wxToClaimUserNew - toBigInt(claimedByUser)) | |
488 | - | let error = makeString(["availableToClaim", toString(availableToClaim)], " ") | |
489 | - | if ((error == error)) | |
490 | - | then { | |
491 | - | let boostInvResult = asAnyList(invoke(boostingContract, "claimWxBoostREADONLY", [lpAssetIdStr, userAddressStr], nil)) | |
492 | - | let wxAmountBoostTotal = asInt(boostInvResult[0]) | |
493 | - | let boostDebug = asString(boostInvResult[1]) | |
494 | - | let minRewardPart = availableToClaim | |
495 | - | let boostRewardPart = min([(minRewardPart * toBigInt(2)), toBigInt(wxAmountBoostTotal)]) | |
496 | - | let totalReward = (minRewardPart + boostRewardPart) | |
497 | - | $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)) | |
498 | - | } | |
499 | - | else throw("Strict value is not equal to itself.") | |
488 | + | let boostInvResult = asAnyList(invoke(boostingContract, "claimWxBoostREADONLY", [lpAssetIdStr, userAddressStr], nil)) | |
489 | + | let wxAmountBoostTotal = asInt(boostInvResult[0]) | |
490 | + | let boostDebug = asString(boostInvResult[1]) | |
491 | + | let minRewardPart = availableToClaim | |
492 | + | let boostRewardPart = min([(minRewardPart * toBigInt(2)), toBigInt(wxAmountBoostTotal)]) | |
493 | + | let totalReward = (minRewardPart + boostRewardPart) | |
494 | + | $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)) | |
500 | 495 | } | |
501 | 496 | ||
502 | 497 | ||
503 | 498 | ||
504 | 499 | @Callable(i) | |
505 | 500 | func onModifyWeight (lpAssetIdStr,poolAddressStr) = if ((i.caller != factoryContract)) | |
506 | 501 | then throw("permissions denied") | |
507 | 502 | else { | |
508 | - | let $ | |
509 | - | let wxPerLpIntegralNew = $ | |
510 | - | let poolIntegralSTATE = $ | |
511 | - | let poolDEBUG = $ | |
503 | + | let $t02174521855 = refreshPoolINTEGRALS(lpAssetIdStr, poolAddressStr, 0) | |
504 | + | let wxPerLpIntegralNew = $t02174521855._1 | |
505 | + | let poolIntegralSTATE = $t02174521855._2 | |
506 | + | let poolDEBUG = $t02174521855._3 | |
512 | 507 | poolIntegralSTATE | |
513 | 508 | } | |
514 | 509 | ||
515 | 510 | ||
516 | 511 | @Verifier(tx) | |
517 | 512 | func verify () = { | |
518 | 513 | let targetPublicKey = match managerPublicKeyOrUnit() { | |
519 | 514 | case pk: ByteVector => | |
520 | 515 | pk | |
521 | 516 | case _: Unit => | |
522 | 517 | tx.senderPublicKey | |
523 | 518 | case _ => | |
524 | 519 | throw("Match error") | |
525 | 520 | } | |
526 | 521 | sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey) | |
527 | 522 | } | |
528 | 523 |
github/deemru/w8io/169f3d6 71.51 ms ◑