tx · BRfxWS1rqCjfKpqnQ1SD53wKa8twc6iUWjLGnK1HdyHv

3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz:  -0.03500000 Waves

2022.06.28 09:55 [2115950] smart account 3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz > SELF 0.00000000 Waves

{ "type": 13, "id": "BRfxWS1rqCjfKpqnQ1SD53wKa8twc6iUWjLGnK1HdyHv", "fee": 3500000, "feeAssetId": null, "timestamp": 1656399341074, "version": 2, "chainId": 84, "sender": "3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz", "senderPublicKey": "D28XoueZWsMfm8Y5pa6C5ZFuYoWgre2Wm8tzJANJgMnq", "proofs": [ "2Dt2oS6vNpie3C6MKfLuxNDKQ5HNvBw9A29RD3tNgBatevY8PSFnqx1bDyySxzstm1yTPNRpaF7AESKRmSLhs46C" ], "script": "base64:AAIFAAAAAAAAACcIAhIDCgEIEgMKAQgSABIAEgQKAggBEgMKAQgSBAoCCAgSBAoCCAgAAABTAAAAAAZTQ0FMRTgAAAAAAAAAAAgAAAAABU1VTFQ4AAAAAAAF9eEAAAAAAAdTQ0FMRTE4AAAAAAAAAAASAAAAAAZNVUxUMTgJAAE2AAAAAQAN4Lazp2QAAAAAAAADU0VQAgAAAAJfXwAAAAAOUE9PTFdFSUdIVE1VTFQFAAAABU1VTFQ4AAAAAAp6ZXJvQmlnSW50CQABNgAAAAEAAAAAAAAAAAAAAAAACW9uZUJpZ0ludAkAATYAAAABAAAAAAAAAAABAQAAAAlhc0FueUxpc3QAAAABAAAAA3ZhbAQAAAAHJG1hdGNoMAUAAAADdmFsAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAlMaXN0W0FueV0EAAAACnZhbEFueUx5c3QFAAAAByRtYXRjaDAFAAAACnZhbEFueUx5c3QJAAACAAAAAQIAAAAbZmFpbCB0byBjYXN0IGludG8gTGlzdFtBbnldAQAAAAVhc0ludAAAAAEAAAADdmFsBAAAAAckb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AAByRtYXRjaDACAAAACkJ5dGVWZWN0b3IEAAAAAnBrBQAAAAckbWF0Y2gwBQAAAAJwawMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAEVW5pdAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQkAAAIAAAABAgAAAAtNYXRjaCBlcnJvcgMJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAA90YXJnZXRQdWJsaWNLZXkGCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAARbWlncmF0b3JQdWJsaWNLZXlGT8X/", "height": 2115950, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: E6P6cg8PQS81ZrNMkmm1WhuwzpbQhcmNjhxoFUcKkkUX Next: GtacQoYKn31UnnwCikGvmvVQaB14g9sQ8qKLYpKu77em Diff:
OldNewDifferences
300300 let wxToClaimUserNew = (wxToClaimUser + fraction((wxPerLpIntegralNew - wxPerLpIntegralUserLast), toBigInt(stakedByUser), toBigInt(MULT11)))
301301 let wxPerLpIntegralUserLastNew = wxPerLpIntegralNew
302302 let wxPerLpIntegralUserLastUpdHeightNew = height
303- let debug = makeString(["wxPerLpInteg", toString(wxPerLpIntegralUserLastUpdHeightOrZero), "this.getString", toString(value(parseBigInt(getStringOrFail(this, wxPerLpIntegralUserLastKEY)))), "wxPerLpIntegralNew", toString(wxPerLpIntegralNew), "wxToClaimUserNew", toString(wxToClaimUserNew), "wxPerLpIntegralUserLast", toString(wxPerLpIntegralUserLast), toString(stakedByUser), "poolDEBUG=", poolDEBUG, "height=", toString(height)], "::")
303+ let debug = makeString(["wxToClaimUser", toString(wxToClaimUser), "wxPerLpInteg", toString(wxPerLpIntegralUserLastUpdHeightOrZero), "this.getString", toString(value(parseBigInt(getStringOrFail(this, wxPerLpIntegralUserLastKEY)))), "wxPerLpIntegralNew", toString(wxPerLpIntegralNew), "wxToClaimUserNew", toString(wxToClaimUserNew), "wxPerLpIntegralUserLast", toString(wxPerLpIntegralUserLast), toString(stakedByUser), "poolDEBUG=", poolDEBUG, "height=", toString(height)], "::")
304304 $Tuple3(wxToClaimUserNew, (poolIntegralSTATE ++ [StringEntry(wxToClaimUserKEY, toString(wxToClaimUserNew)), IntegerEntry(wxPerLpIntegralUserLastUpdHeightKEY, wxPerLpIntegralUserLastUpdHeightNew), StringEntry(wxPerLpIntegralUserLastKEY, toString(wxPerLpIntegralUserLastNew))]), debug)
305305 }
306306
414414 let stakedTotalKEY = keyStakedTotal(lpAssetIdStr)
415415 let stakedByUser = readStaked(stakedByUserKEY)
416416 let stakedTotal = readStaked(stakedTotalKEY)
417- let $t01656116678 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, amount)
418- let wxToClaimUserNew = $t01656116678._1
419- let integralSTATE = $t01656116678._2
420- let debug = $t01656116678._3
417+ let $t01661216729 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, amount)
418+ let wxToClaimUserNew = $t01661216729._1
419+ let integralSTATE = $t01661216729._2
420+ let debug = $t01661216729._3
421421 ([IntegerEntry(stakedByUserKEY, (stakedByUser + amount)), IntegerEntry(stakedTotalKEY, (stakedTotal + amount)), OperationHistoryEntry("stake", userAddressStr, lpAssetIdStr, amount, i.transactionId)] ++ integralSTATE)
422422 }
423423
438438 let stakedTotalKEY = keyStakedTotal(lpAssetIdStr)
439439 let stakedByUser = readStaked(stakedByUserKEY)
440440 let stakedTotal = readStaked(stakedTotalKEY)
441- let $t01781517933 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, -(amount))
442- let wxToClaimUserNew = $t01781517933._1
443- let integralSTATE = $t01781517933._2
444- let debug = $t01781517933._3
441+ let $t01786617984 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, -(amount))
442+ let wxToClaimUserNew = $t01786617984._1
443+ let integralSTATE = $t01786617984._2
444+ let debug = $t01786617984._3
445445 if ((amount > stakedByUser))
446446 then throw("passed amount is less then available")
447447 else ([IntegerEntry(stakedByUserKEY, (stakedByUser - amount)), IntegerEntry(stakedTotalKEY, (stakedTotal - amount)), ScriptTransfer(i.caller, amount, lpAssetId), OperationHistoryEntry("unstake", userAddressStr, lpAssetIdStr, amount, i.transactionId)] ++ integralSTATE)
462462 let claimedByUserMinReward = toBigInt(getIntOrZero(this, claimedByUserMinRewardKEY))
463463 let claimedByUserBoostReward = toBigInt(getIntOrZero(this, claimedByUserBoostRewardKEY))
464464 let claimedTotal = getBigIntFromStringOrZero(this, claimedTotalKEY)
465- let $t01917119283 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, 0)
466- let wxToClaimUserNew = $t01917119283._1
467- let integralSTATE = $t01917119283._2
468- let debug = $t01917119283._3
465+ let $t01922219334 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, 0)
466+ let wxToClaimUserNew = $t01922219334._1
467+ let integralSTATE = $t01922219334._2
468+ let debug = $t01922219334._3
469469 let availableToClaim = (wxToClaimUserNew - claimedByUser)
470470 if ((zeroBigInt >= availableToClaim))
471471 then throw("nothing to claim")
506506 else (height - emissionStartBlock)
507507 let poolWxEmission = fraction((wxEmissionPerBlock * passedBlocks), poolWeight, POOLWEIGHTMULT)
508508 let userWxReward = fraction(poolWxEmission, stakedByUser, stakedTotal)
509- let $t02188321995 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, 0)
510- let wxToClaimUserNew = $t02188321995._1
511- let integralSTATE = $t02188321995._2
512- let debug = $t02188321995._3
509+ let $t02193422046 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, 0)
510+ let wxToClaimUserNew = $t02193422046._1
511+ let integralSTATE = $t02193422046._2
512+ let debug = $t02193422046._3
513513 let availableToClaim = (wxToClaimUserNew - toBigInt(claimedByUser))
514514 let boostInvResult = asAnyList(invoke(boostingContract, "claimWxBoostREADONLY", [lpAssetIdStr, userAddressStr], nil))
515515 let wxAmountBoostTotal = asInt(boostInvResult[0])
526526 func onModifyWeight (lpAssetIdStr,poolAddressStr) = if ((i.caller != factoryContract))
527527 then throw("permissions denied")
528528 else {
529- let $t02290823018 = refreshPoolINTEGRALS(lpAssetIdStr, poolAddressStr, 0)
530- let wxPerLpIntegralNew = $t02290823018._1
531- let poolIntegralSTATE = $t02290823018._2
532- let poolDEBUG = $t02290823018._3
529+ let $t02295923069 = refreshPoolINTEGRALS(lpAssetIdStr, poolAddressStr, 0)
530+ let wxPerLpIntegralNew = $t02295923069._1
531+ let poolIntegralSTATE = $t02295923069._2
532+ let poolDEBUG = $t02295923069._3
533533 poolIntegralSTATE
534534 }
535535
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let SCALE8 = 8
55
66 let MULT8 = 100000000
77
88 let SCALE18 = 18
99
1010 let MULT18 = toBigInt(1000000000000000000)
1111
1212 let SEP = "__"
1313
1414 let POOLWEIGHTMULT = MULT8
1515
1616 let zeroBigInt = toBigInt(0)
1717
1818 let oneBigInt = toBigInt(1)
1919
2020 func asAnyList (val) = match val {
2121 case valAnyLyst: List[Any] =>
2222 valAnyLyst
2323 case _ =>
2424 throw("fail to cast into List[Any]")
2525 }
2626
2727
2828 func asInt (val) = match val {
2929 case valInt: Int =>
3030 valInt
3131 case _ =>
3232 throw("fail to cast into Int")
3333 }
3434
3535
3636 func asString (val) = match val {
3737 case valStr: String =>
3838 valStr
3939 case _ =>
4040 throw("fail to cast into Int")
4141 }
4242
4343
4444 func asByteVector (val) = match val {
4545 case valBin: ByteVector =>
4646 valBin
4747 case _ =>
4848 throw("fail to cast into Int")
4949 }
5050
5151
5252 func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), (("mandatory this." + key) + " is not defined"))
5353
5454
5555 func getStringByAddressOrFail (address,key) = valueOrErrorMessage(getString(address, key), (((("mandatory " + toString(address)) + ".") + key) + " is not defined"))
5656
5757
5858 func getIntOrZero (address,key) = valueOrElse(getInteger(address, key), 0)
5959
6060
6161 func getIntOrDefault (address,key,defaultVal) = valueOrElse(getInteger(address, key), defaultVal)
6262
6363
6464 func getIntOrFail (address,key) = valueOrErrorMessage(getInteger(address, key), (("mandatory this." + key) + " is not defined"))
6565
6666
6767 func getBigIntFromStringOrZero (address,key) = value(parseBigInt(valueOrElse(getString(address, key), "0")))
6868
6969
7070 func getBigIntFromStringOrDefault (address,key,defaultVal) = match getString(address, key) {
7171 case s: String =>
7272 value(parseBigInt(s))
7373 case _: Unit =>
7474 defaultVal
7575 case _ =>
7676 throw("Match error")
7777 }
7878
7979
8080 func toX18 (origVal,origScaleMult) = fraction(toBigInt(origVal), MULT18, toBigInt(origScaleMult))
8181
8282
8383 func fromX18 (val,resultScaleMult) = toInt(fraction(val, toBigInt(resultScaleMult), MULT18))
8484
8585
8686 func keyFactoryAddress () = "%s%s__config__factoryAddress"
8787
8888
8989 let IdxFactoryCfgStakingDapp = 1
9090
9191 let IdxFactoryCfgBoostingDapp = 2
9292
9393 let IdxFactoryCfgIdoDapp = 3
9494
9595 let IdxFactoryCfgTeamDapp = 4
9696
9797 let IdxFactoryCfgEmissionDapp = 5
9898
9999 let IdxFactoryCfgRestDapp = 6
100100
101101 let IdxFactoryCfgSlippageDapp = 7
102102
103103 func keyFactoryCfg () = "%s__factoryConfig"
104104
105105
106106 func keyManagerPublicKey () = "%s__managerPublicKey"
107107
108108
109109 func keyMigratorPublicKey () = "%s__migratorPublicKey"
110110
111111
112112 func keyPendingManagerPublicKey () = "%s__pendingManagerPublicKey"
113113
114114
115115 func keyStablePoolAddonAddr () = "%s__stablePoolAddonAddr"
116116
117117
118118 func keyFactoryLp2AssetsMapping (lpAssetStr) = makeString(["%s%s%s", lpAssetStr, "mappings__lpAsset2PoolContract"], SEP)
119119
120120
121121 func keyFactoryLpList () = "%s__lpTokensList"
122122
123123
124124 func keyFactoryLpAssetToPoolContractAddress (lpAssetStr) = makeString(["%s%s%s", lpAssetStr, "mappings__lpAsset2PoolContract"], SEP)
125125
126126
127127 func keyFactoryPoolWeight (contractAddress) = makeString(["%s%s", "poolWeight", contractAddress], SEP)
128128
129129
130130 func readLpList (factory) = split(valueOrElse(getString(factory, keyFactoryLpList()), ""), SEP)
131131
132132
133133 func readFactoryCfgOrFail (factory) = split(getStringByAddressOrFail(factory, keyFactoryCfg()), SEP)
134134
135135
136136 func getBoostingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgBoostingDapp])
137137
138138
139139 func getEmissionAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgEmissionDapp])
140140
141141
142142 func getStakingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgStakingDapp])
143143
144144
145145 func keyEmissionRatePerBlockCurrent () = "%s%s__ratePerBlock__current"
146146
147147
148148 func keyEmissionRatePerBlockMaxCurrent () = "%s%s__ratePerBlockMax__current"
149149
150150
151151 func keyEmissionStartBlock () = "%s%s__emission__startBlock"
152152
153153
154154 func keyEmissionDurationInBlocks () = "%s%s__emission__duration"
155155
156156
157157 func keyEmissionEndBlock () = "%s%s__emission__endBlock"
158158
159159
160160 func keyStakedByUser (userAddressStr,lpAssetIdStr) = makeString(["%s%s%s__staked", userAddressStr, lpAssetIdStr], SEP)
161161
162162
163163 func keyStakedTotal (lpAssetIdStr) = ("%s%s%s__staked__total__" + lpAssetIdStr)
164164
165165
166166 func keyClaimedByUser (lpAssetIdStr,userAddressStr) = makeString(["%s%s%s__claimed", userAddressStr, lpAssetIdStr], SEP)
167167
168168
169169 func keyClaimedByUserMinReward (lpAssetIdStr,userAddressStr) = makeString(["%s%s%s__claimedMinReward", userAddressStr, lpAssetIdStr], SEP)
170170
171171
172172 func keyClaimedByUserBoostReward (lpAssetIdStr,userAddressStr) = makeString(["%s%s%s__claimedBoostReward", userAddressStr, lpAssetIdStr], SEP)
173173
174174
175175 func keyClaimedTotal (lpAssetIdStr) = makeString(["%s%s%s__claimed__total", lpAssetIdStr], SEP)
176176
177177
178178 func readStaked (key) = valueOrElse(getInteger(this, key), 0)
179179
180180
181181 func keyLastTotalLpBalance (lpAssetId) = makeString(["%s%s%s", lpAssetId, "total", "bal"], SEP)
182182
183183
184184 func keyLastUserLpBalance (lpAssetId,userAddress) = makeString(["%s%s%s", lpAssetId, userAddress, "bal"], SEP)
185185
186186
187187 func keyTotalLpBalanceIntegral (lpAssetId) = makeString(["%s%s%s", lpAssetId, "total", "balINT"], SEP)
188188
189189
190190 func keyUserLpBalanceIntegral (lpAssetId,userAddress) = makeString(["%s%s%s", lpAssetId, userAddress, "balINT"], SEP)
191191
192192
193193 func keyTotalLpBalanceIntegralLastUpdHeight (lpAssetId) = makeString(["%s%s%s", lpAssetId, "total", "lastUpd"], SEP)
194194
195195
196196 func keyUserLpBalanceIntegralLastUpdHeight (lpAssetId,userAddress) = makeString(["%s%s%s", lpAssetId, userAddress, "lastUpd"], SEP)
197197
198198
199199 func keyWxPerLpIntegral (lpAssetId) = makeString(["%s%s%s%s", lpAssetId, "common", "lpInt"], SEP)
200200
201201
202202 func keyWxPerLpIntegralLastUpdHeight (lpAssetId) = makeString(["%s%s%s%s", lpAssetId, "common", "lpIntH"], SEP)
203203
204204
205205 func keyWxToClaimUser (lpAssetId,userAddress) = makeString(["%s%s%s%s", lpAssetId, userAddress, "lpInt"], SEP)
206206
207207
208208 func keyWxPerLpIntegralUserLastUpdHeight (lpAssetId,userAddress) = makeString(["%s%s%s%s", lpAssetId, userAddress, "lpIntH"], SEP)
209209
210210
211211 func keyWxPerLp (lpAssetId) = makeString(["%s", lpAssetId, "wxPerLp"], SEP)
212212
213213
214214 func keyWxPerLpX18 (lpAssetId) = makeString(["%s", lpAssetId, "wxPerLpX18"], SEP)
215215
216216
217217 func keyWxPerLpIntegralUserLast (lpAssetId,userAddress) = makeString(["%s%s%s%s", lpAssetId, userAddress, "uIntL"], SEP)
218218
219219
220220 func keyOperationHistoryRecord (type,userAddress,txId58) = makeString(["%s%s%s%s__history", type, userAddress, txId58], SEP)
221221
222222
223223 func formatHistoryRecord (userAddress,lpAssetId,type,amount) = makeString(["%s%s%s%d%d%d", userAddress, lpAssetId, type, toString(height), toString(lastBlock.timestamp), toString(amount)], SEP)
224224
225225
226226 func OperationHistoryEntry (type,userAddress,lpAssetId,amount,txId) = StringEntry(keyOperationHistoryRecord(type, userAddress, toBase58String(txId)), formatHistoryRecord(userAddress, lpAssetId, type, amount))
227227
228228
229229 let factoryAddress = getStringOrFail(this, keyFactoryAddress())
230230
231231 let factoryContract = addressFromStringValue(factoryAddress)
232232
233233 let factoryCfg = readFactoryCfgOrFail(factoryContract)
234234
235235 let emissionContract = getEmissionAddressOrFail(factoryCfg)
236236
237237 let boostingContract = getBoostingAddressOrFail(factoryCfg)
238238
239239 func calcWxPerLpIntegralUserLast (stakedByUser,wxPerLpIntegralUserLastUpdHeightOrZero,wxPerLpIntegralNew,wxPerLpIntegralUserLastKEY) = if (if ((wxPerLpIntegralUserLastUpdHeightOrZero == zeroBigInt))
240240 then (stakedByUser > zeroBigInt)
241241 else false)
242242 then zeroBigInt
243243 else if ((stakedByUser == zeroBigInt))
244244 then wxPerLpIntegralNew
245245 else if (if ((wxPerLpIntegralUserLastUpdHeightOrZero > zeroBigInt))
246246 then (stakedByUser > zeroBigInt)
247247 else false)
248248 then value(parseBigInt(getStringOrFail(this, wxPerLpIntegralUserLastKEY)))
249249 else throw("calcWxPerLpIntegralUserLast: unexpected state")
250250
251251
252252 func refreshPoolINTEGRALS (lpAssetIdStr,poolAddressStr,lpDeltaAmount) = {
253253 let stakedTotalKEY = keyStakedTotal(lpAssetIdStr)
254254 let stakedTotal = toBigInt(readStaked(stakedTotalKEY))
255255 let nonZeroStakedTotal = if ((stakedTotal == zeroBigInt))
256256 then oneBigInt
257257 else stakedTotal
258258 let poolWeight = getIntegerValue(factoryContract, keyFactoryPoolWeight(poolAddressStr))
259259 let emissionStartBlock = getIntOrFail(emissionContract, keyEmissionStartBlock())
260260 let MULT3 = 1000
261261 let wxEmissionPerBlockX3 = (getIntOrFail(emissionContract, keyEmissionRatePerBlockCurrent()) * MULT3)
262262 let poolWxEmissionPerBlockX3 = fraction(wxEmissionPerBlockX3, poolWeight, (POOLWEIGHTMULT * 3))
263263 let wxPerLpIntegralKEY = keyWxPerLpIntegral(lpAssetIdStr)
264264 let wxPerLpIntegralLastUpdHeightKEY = keyWxPerLpIntegralLastUpdHeight(lpAssetIdStr)
265265 let wxPerLpKEY = keyWxPerLp(lpAssetIdStr)
266266 let wxPerLpIntegralLastUpdHeight = getIntOrDefault(this, wxPerLpIntegralLastUpdHeightKEY, emissionStartBlock)
267267 let wxPerLpIntegral = getBigIntFromStringOrZero(this, wxPerLpIntegralKEY)
268268 let wxPerLpOrZeroX3 = 0
269269 let dh = max([(height - wxPerLpIntegralLastUpdHeight), 0])
270270 let wxPerLpX3 = if ((wxPerLpOrZeroX3 != 0))
271271 then toBigInt(wxPerLpOrZeroX3)
272272 else fraction(toBigInt(poolWxEmissionPerBlockX3), toBigInt(MULT8), nonZeroStakedTotal)
273273 let stakedTotalNew = (stakedTotal + toBigInt(lpDeltaAmount))
274274 let nonZeroStakedTotalNew = if ((stakedTotalNew == zeroBigInt))
275275 then oneBigInt
276276 else stakedTotalNew
277277 let wxPerLpIntegralNew = (wxPerLpIntegral + (wxPerLpX3 * toBigInt(dh)))
278278 let wxPerLpX3New = (toBigInt(poolWxEmissionPerBlockX3) / nonZeroStakedTotalNew)
279279 let wxPerLpIntegralLastUpdHeightNew = height
280280 let debug = makeString([toString(wxPerLpIntegralNew), "dh=", toString(dh), "wxPerLpX3=", toString(wxPerLpX3), "stakedTotal=", toString(stakedTotal), toString(poolWxEmissionPerBlockX3), toString(wxEmissionPerBlockX3), "poolWeight=", toString(poolWeight)], "::")
281281 $Tuple3(wxPerLpIntegralNew, [StringEntry(wxPerLpIntegralKEY, toString(wxPerLpIntegralNew)), IntegerEntry(wxPerLpIntegralLastUpdHeightKEY, wxPerLpIntegralLastUpdHeightNew), StringEntry(wxPerLpKEY, toString(wxPerLpX3New))], debug)
282282 }
283283
284284
285285 func refreshINTEGRALS (lpAssetIdStr,userAddressStr,poolAddressStr,lpDeltaAmount) = {
286286 let $t01176211884 = refreshPoolINTEGRALS(lpAssetIdStr, poolAddressStr, lpDeltaAmount)
287287 let wxPerLpIntegralNew = $t01176211884._1
288288 let poolIntegralSTATE = $t01176211884._2
289289 let poolDEBUG = $t01176211884._3
290290 let MULT3 = 1000
291291 let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr)
292292 let stakedByUser = readStaked(stakedByUserKEY)
293293 let wxToClaimUserKEY = keyWxToClaimUser(lpAssetIdStr, userAddressStr)
294294 let wxPerLpIntegralUserLastUpdHeightKEY = keyWxPerLpIntegralUserLastUpdHeight(lpAssetIdStr, userAddressStr)
295295 let wxPerLpIntegralUserLastKEY = keyWxPerLpIntegralUserLast(lpAssetIdStr, userAddressStr)
296296 let wxToClaimUser = getBigIntFromStringOrZero(this, wxToClaimUserKEY)
297297 let wxPerLpIntegralUserLastUpdHeightOrZero = getIntOrZero(this, wxPerLpIntegralUserLastUpdHeightKEY)
298298 let wxPerLpIntegralUserLast = calcWxPerLpIntegralUserLast(toBigInt(stakedByUser), toBigInt(wxPerLpIntegralUserLastUpdHeightOrZero), wxPerLpIntegralNew, wxPerLpIntegralUserLastKEY)
299299 let MULT11 = (MULT8 * MULT3)
300300 let wxToClaimUserNew = (wxToClaimUser + fraction((wxPerLpIntegralNew - wxPerLpIntegralUserLast), toBigInt(stakedByUser), toBigInt(MULT11)))
301301 let wxPerLpIntegralUserLastNew = wxPerLpIntegralNew
302302 let wxPerLpIntegralUserLastUpdHeightNew = height
303- let debug = makeString(["wxPerLpInteg", toString(wxPerLpIntegralUserLastUpdHeightOrZero), "this.getString", toString(value(parseBigInt(getStringOrFail(this, wxPerLpIntegralUserLastKEY)))), "wxPerLpIntegralNew", toString(wxPerLpIntegralNew), "wxToClaimUserNew", toString(wxToClaimUserNew), "wxPerLpIntegralUserLast", toString(wxPerLpIntegralUserLast), toString(stakedByUser), "poolDEBUG=", poolDEBUG, "height=", toString(height)], "::")
303+ let debug = makeString(["wxToClaimUser", toString(wxToClaimUser), "wxPerLpInteg", toString(wxPerLpIntegralUserLastUpdHeightOrZero), "this.getString", toString(value(parseBigInt(getStringOrFail(this, wxPerLpIntegralUserLastKEY)))), "wxPerLpIntegralNew", toString(wxPerLpIntegralNew), "wxToClaimUserNew", toString(wxToClaimUserNew), "wxPerLpIntegralUserLast", toString(wxPerLpIntegralUserLast), toString(stakedByUser), "poolDEBUG=", poolDEBUG, "height=", toString(height)], "::")
304304 $Tuple3(wxToClaimUserNew, (poolIntegralSTATE ++ [StringEntry(wxToClaimUserKEY, toString(wxToClaimUserNew)), IntegerEntry(wxPerLpIntegralUserLastUpdHeightKEY, wxPerLpIntegralUserLastUpdHeightNew), StringEntry(wxPerLpIntegralUserLastKEY, toString(wxPerLpIntegralUserLastNew))]), debug)
305305 }
306306
307307
308308 func managerPublicKeyOrUnit () = match getString(keyManagerPublicKey()) {
309309 case s: String =>
310310 fromBase58String(s)
311311 case _: Unit =>
312312 unit
313313 case _ =>
314314 throw("Match error")
315315 }
316316
317317
318318 func migratorPublicKeyOrUnit () = match getString(keyMigratorPublicKey()) {
319319 case s: String =>
320320 fromBase58String(s)
321321 case _: Unit =>
322322 unit
323323 case _ =>
324324 throw("Match error")
325325 }
326326
327327
328328 func pendingManagerPublicKeyOrUnit () = match getString(keyPendingManagerPublicKey()) {
329329 case s: String =>
330330 fromBase58String(s)
331331 case _: Unit =>
332332 unit
333333 case _ =>
334334 throw("Match error")
335335 }
336336
337337
338338 func mustManager (i) = {
339339 let pd = throw("Permission denied")
340340 match managerPublicKeyOrUnit() {
341341 case pk: ByteVector =>
342342 if ((i.callerPublicKey == pk))
343343 then true
344344 else pd
345345 case _: Unit =>
346346 if ((i.caller == this))
347347 then true
348348 else pd
349349 case _ =>
350350 throw("Match error")
351351 }
352352 }
353353
354354
355355 @Callable(i)
356356 func constructor (factoryAddressStr) = {
357357 let checkCaller = mustManager(i)
358358 if ((checkCaller == checkCaller))
359359 then [StringEntry(keyFactoryAddress(), factoryAddressStr)]
360360 else throw("Strict value is not equal to itself.")
361361 }
362362
363363
364364
365365 @Callable(i)
366366 func setManager (pendingManagerPublicKey) = {
367367 let checkCaller = mustManager(i)
368368 if ((checkCaller == checkCaller))
369369 then {
370370 let checkManagerPublicKey = fromBase58String(pendingManagerPublicKey)
371371 if ((checkManagerPublicKey == checkManagerPublicKey))
372372 then [StringEntry(keyPendingManagerPublicKey(), pendingManagerPublicKey)]
373373 else throw("Strict value is not equal to itself.")
374374 }
375375 else throw("Strict value is not equal to itself.")
376376 }
377377
378378
379379
380380 @Callable(i)
381381 func confirmManager () = {
382382 let pm = pendingManagerPublicKeyOrUnit()
383383 let hasPM = if (isDefined(pm))
384384 then true
385385 else throw("No pending manager")
386386 if ((hasPM == hasPM))
387387 then {
388388 let checkPM = if ((i.callerPublicKey == value(pm)))
389389 then true
390390 else throw("You are not pending manager")
391391 if ((checkPM == checkPM))
392392 then [StringEntry(keyManagerPublicKey(), toBase58String(value(pm))), DeleteEntry(keyPendingManagerPublicKey())]
393393 else throw("Strict value is not equal to itself.")
394394 }
395395 else throw("Strict value is not equal to itself.")
396396 }
397397
398398
399399
400400 @Callable(i)
401401 func stake () = if ((size(i.payments) != 1))
402402 then throw("invalid payment - exact one payment must be attached")
403403 else {
404404 let pmt = i.payments[0]
405405 let lpAssetId = value(pmt.assetId)
406406 let lpAssetIdStr = toBase58String(lpAssetId)
407407 let amount = pmt.amount
408408 let poolAddressStr = valueOrErrorMessage(getString(factoryContract, keyFactoryLp2AssetsMapping(lpAssetIdStr)), ("unsupported lp asset " + lpAssetIdStr))
409409 let callerStr = toString(i.caller)
410410 let userAddressStr = if ((callerStr == poolAddressStr))
411411 then toString(i.originCaller)
412412 else callerStr
413413 let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr)
414414 let stakedTotalKEY = keyStakedTotal(lpAssetIdStr)
415415 let stakedByUser = readStaked(stakedByUserKEY)
416416 let stakedTotal = readStaked(stakedTotalKEY)
417- let $t01656116678 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, amount)
418- let wxToClaimUserNew = $t01656116678._1
419- let integralSTATE = $t01656116678._2
420- let debug = $t01656116678._3
417+ let $t01661216729 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, amount)
418+ let wxToClaimUserNew = $t01661216729._1
419+ let integralSTATE = $t01661216729._2
420+ let debug = $t01661216729._3
421421 ([IntegerEntry(stakedByUserKEY, (stakedByUser + amount)), IntegerEntry(stakedTotalKEY, (stakedTotal + amount)), OperationHistoryEntry("stake", userAddressStr, lpAssetIdStr, amount, i.transactionId)] ++ integralSTATE)
422422 }
423423
424424
425425
426426 @Callable(i)
427427 func unstake (lpAssetIdStr,amount) = {
428428 let lpAssetId = fromBase58String(lpAssetIdStr)
429429 let poolAddressStr = valueOrErrorMessage(getString(factoryContract, keyFactoryLp2AssetsMapping(lpAssetIdStr)), ("unsupported lp asset " + lpAssetIdStr))
430430 let poolAddon = valueOrElse(getString(this, keyStablePoolAddonAddr()), poolAddressStr)
431431 let callerStr = toString(i.caller)
432432 let userAddressStr = if (if ((callerStr == poolAddressStr))
433433 then true
434434 else (callerStr == poolAddon))
435435 then toString(i.originCaller)
436436 else callerStr
437437 let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr)
438438 let stakedTotalKEY = keyStakedTotal(lpAssetIdStr)
439439 let stakedByUser = readStaked(stakedByUserKEY)
440440 let stakedTotal = readStaked(stakedTotalKEY)
441- let $t01781517933 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, -(amount))
442- let wxToClaimUserNew = $t01781517933._1
443- let integralSTATE = $t01781517933._2
444- let debug = $t01781517933._3
441+ let $t01786617984 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, -(amount))
442+ let wxToClaimUserNew = $t01786617984._1
443+ let integralSTATE = $t01786617984._2
444+ let debug = $t01786617984._3
445445 if ((amount > stakedByUser))
446446 then throw("passed amount is less then available")
447447 else ([IntegerEntry(stakedByUserKEY, (stakedByUser - amount)), IntegerEntry(stakedTotalKEY, (stakedTotal - amount)), ScriptTransfer(i.caller, amount, lpAssetId), OperationHistoryEntry("unstake", userAddressStr, lpAssetIdStr, amount, i.transactionId)] ++ integralSTATE)
448448 }
449449
450450
451451
452452 @Callable(i)
453453 func claimWx (lpAssetIdStr) = {
454454 let userAddress = i.caller
455455 let userAddressStr = toString(i.caller)
456456 let poolAddressStr = getStringByAddressOrFail(factoryContract, keyFactoryLpAssetToPoolContractAddress(lpAssetIdStr))
457457 let claimedByUserKEY = keyClaimedByUser(lpAssetIdStr, userAddressStr)
458458 let claimedTotalKEY = keyClaimedTotal(lpAssetIdStr)
459459 let claimedByUserMinRewardKEY = keyClaimedByUserMinReward(lpAssetIdStr, userAddressStr)
460460 let claimedByUserBoostRewardKEY = keyClaimedByUserBoostReward(lpAssetIdStr, userAddressStr)
461461 let claimedByUser = toBigInt(getIntOrZero(this, claimedByUserKEY))
462462 let claimedByUserMinReward = toBigInt(getIntOrZero(this, claimedByUserMinRewardKEY))
463463 let claimedByUserBoostReward = toBigInt(getIntOrZero(this, claimedByUserBoostRewardKEY))
464464 let claimedTotal = getBigIntFromStringOrZero(this, claimedTotalKEY)
465- let $t01917119283 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, 0)
466- let wxToClaimUserNew = $t01917119283._1
467- let integralSTATE = $t01917119283._2
468- let debug = $t01917119283._3
465+ let $t01922219334 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, 0)
466+ let wxToClaimUserNew = $t01922219334._1
467+ let integralSTATE = $t01922219334._2
468+ let debug = $t01922219334._3
469469 let availableToClaim = (wxToClaimUserNew - claimedByUser)
470470 if ((zeroBigInt >= availableToClaim))
471471 then throw("nothing to claim")
472472 else {
473473 let wxAmountBoostTotal = asInt(asAnyList(invoke(boostingContract, "claimWxBoost", [lpAssetIdStr, userAddressStr], nil))[0])
474474 let minRewardPart = availableToClaim
475475 let boostRewardPart = min([(minRewardPart * toBigInt(2)), toBigInt(wxAmountBoostTotal)])
476476 let wxAssetId = asByteVector(asAnyList(invoke(emissionContract, "emit", [toInt(minRewardPart)], nil))[0])
477477 let emitBoost = asAnyList(invoke(emissionContract, "emit", [toInt(boostRewardPart)], nil))
478478 if ((emitBoost == emitBoost))
479479 then {
480480 let claimedByUserValue = (claimedByUser + availableToClaim)
481481 let claimedByUserMinRewardPlusPart = (claimedByUserMinReward + minRewardPart)
482482 let claimedByUserBoostRewardPlusBoostRewardPart = (claimedByUserMinReward + minRewardPart)
483483 let claimedTotalPlusAvailableToClaim = (claimedByUserMinReward + minRewardPart)
484484 [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)]
485485 }
486486 else throw("Strict value is not equal to itself.")
487487 }
488488 }
489489
490490
491491
492492 @Callable(i)
493493 func claimWxREADONLY (lpAssetIdStr,userAddressStr) = {
494494 let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr)
495495 let stakedTotalKEY = keyStakedTotal(lpAssetIdStr)
496496 let claimedByUserKEY = keyClaimedByUser(lpAssetIdStr, userAddressStr)
497497 let stakedByUser = readStaked(stakedByUserKEY)
498498 let stakedTotal = readStaked(stakedTotalKEY)
499499 let claimedByUser = getIntOrZero(this, claimedByUserKEY)
500500 let poolAddressStr = getStringByAddressOrFail(factoryContract, keyFactoryLpAssetToPoolContractAddress(lpAssetIdStr))
501501 let poolWeight = getIntegerValue(factoryContract, keyFactoryPoolWeight(poolAddressStr))
502502 let wxEmissionPerBlock = getIntOrFail(emissionContract, keyEmissionRatePerBlockCurrent())
503503 let emissionStartBlock = getIntOrFail(emissionContract, keyEmissionStartBlock())
504504 let passedBlocks = if ((emissionStartBlock > height))
505505 then 0
506506 else (height - emissionStartBlock)
507507 let poolWxEmission = fraction((wxEmissionPerBlock * passedBlocks), poolWeight, POOLWEIGHTMULT)
508508 let userWxReward = fraction(poolWxEmission, stakedByUser, stakedTotal)
509- let $t02188321995 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, 0)
510- let wxToClaimUserNew = $t02188321995._1
511- let integralSTATE = $t02188321995._2
512- let debug = $t02188321995._3
509+ let $t02193422046 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, 0)
510+ let wxToClaimUserNew = $t02193422046._1
511+ let integralSTATE = $t02193422046._2
512+ let debug = $t02193422046._3
513513 let availableToClaim = (wxToClaimUserNew - toBigInt(claimedByUser))
514514 let boostInvResult = asAnyList(invoke(boostingContract, "claimWxBoostREADONLY", [lpAssetIdStr, userAddressStr], nil))
515515 let wxAmountBoostTotal = asInt(boostInvResult[0])
516516 let boostDebug = asString(boostInvResult[1])
517517 let minRewardPart = availableToClaim
518518 let boostRewardPart = min([(minRewardPart * toBigInt(2)), toBigInt(wxAmountBoostTotal)])
519519 let totalReward = (minRewardPart + boostRewardPart)
520520 $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))
521521 }
522522
523523
524524
525525 @Callable(i)
526526 func onModifyWeight (lpAssetIdStr,poolAddressStr) = if ((i.caller != factoryContract))
527527 then throw("permissions denied")
528528 else {
529- let $t02290823018 = refreshPoolINTEGRALS(lpAssetIdStr, poolAddressStr, 0)
530- let wxPerLpIntegralNew = $t02290823018._1
531- let poolIntegralSTATE = $t02290823018._2
532- let poolDEBUG = $t02290823018._3
529+ let $t02295923069 = refreshPoolINTEGRALS(lpAssetIdStr, poolAddressStr, 0)
530+ let wxPerLpIntegralNew = $t02295923069._1
531+ let poolIntegralSTATE = $t02295923069._2
532+ let poolDEBUG = $t02295923069._3
533533 poolIntegralSTATE
534534 }
535535
536536
537537 @Verifier(tx)
538538 func verify () = {
539539 let targetPublicKey = match managerPublicKeyOrUnit() {
540540 case pk: ByteVector =>
541541 pk
542542 case _: Unit =>
543543 tx.senderPublicKey
544544 case _ =>
545545 throw("Match error")
546546 }
547547 let migratorPublicKey = match migratorPublicKeyOrUnit() {
548548 case pk: ByteVector =>
549549 pk
550550 case _: Unit =>
551551 tx.senderPublicKey
552552 case _ =>
553553 throw("Match error")
554554 }
555555 if (sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey))
556556 then true
557557 else sigVerify(tx.bodyBytes, tx.proofs[0], migratorPublicKey)
558558 }
559559

github/deemru/w8io/fabc49c 
67.75 ms