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