tx · 4ANkMz4DGaFvtGXBkYWpkTGidXYLDE6Ztq6JTmLaPjwF

3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz:  -0.01000000 Waves

2021.12.15 11:37 [1835137] smart account 3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz > SELF 0.00000000 Waves

{ "type": 13, "id": "4ANkMz4DGaFvtGXBkYWpkTGidXYLDE6Ztq6JTmLaPjwF", "fee": 1000000, "feeAssetId": null, "timestamp": 1639557493528, "version": 1, "sender": "3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz", "senderPublicKey": "D28XoueZWsMfm8Y5pa6C5ZFuYoWgre2Wm8tzJANJgMnq", "proofs": [ "tBncB78VRv6hQap7of3EPSrXMxPnmpFLQfcEU1dpmUDmDEp6v9j22HAq26njPuRMyVGEaPfCDFvz2wJTqowfEMb" ], "script": "base64:AAIFAAAAAAAAABoIAhIDCgEIEgASBAoCCAESAwoBCBIECgIICAAAAEYAAAAABlNDQUxFOAAAAAAAAAAACAAAAAAFTVVMVDgAAAAAAAX14QAAAAAAB1NDQUxFMTgAAAAAAAAAABIAAAAABk1VTFQxOAkAATYAAAABAA3gtrOnZAAAAAAAAANTRVACAAAAAl9fAAAAAA5QT09MV0VJR0hUTVVMVAUAAAAFTVVMVDgBAAAACWFzQW55TGlzdAAAAAEAAAADdmFsBAAAAAckbWF0Y2gwBQAAAAN2YWwDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAACUxpc3RbQW55XQQAAAAKdmFsQW55THlzdAUAAAAHJG1hdGNoMAUAAAAKdmFsQW55THlzdAkAAAIAAAABAgAAABtmYWlsIHRvIGNhc3QgaW50byBMaXN0W0FueV0BAAAABWFzSW50AAAAAQAAAAN2YWwEAAAAByRtYXRjaDAFAAAAA3ZhbAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAZ2YWxJbnQFAAAAByRtYXRjaDAFAAAABnZhbEludAkAAAIAAAABAgAAABVmYWls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wAAAACCQABpAAAAAEFAAAAD2Jvb3N0UmV3YXJkUGFydAkABEwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIFAAAABWRlYnVnAgAAAAI6OgkAAaQAAAABBQAAAAx1c2VyV3hSZXdhcmQCAAAADjo6Qk9PU1RERUJVRzo6BQAAAApib29zdERlYnVnBQAAAANuaWwFAAAAA1NFUAAAAABf1T1n", "chainId": 84, "height": 1835137, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: mq3BN61DGfVzK9yG6hf6GknxbjTvw7T2mHhWrPBoeaQ Next: 7VasV9EDZPvJLDMRqomGxTE5diWCUrALey8gHsHuPgqa Diff:
OldNewDifferences
241241 let wxPerLpIntegral = getIntOrZero(this, wxPerLpIntegralKEY)
242242 let wxToClaimUser = getIntOrZero(this, wxToClaimUserKEY)
243243 let wxPerLpIntegralUserLastUpdHeightOrZero = getIntOrZero(this, wxPerLpIntegralUserLastUpdHeightKEY)
244- let wxPerLpOrZeroX8 = getIntOrZero(this, wxPerLpKEY)
244+ let wxPerLpOrZeroX8 = 0
245245 let dh = max([(height - wxPerLpIntegralLastUpdHeight), 0])
246246 let wxPerLpX8 = if ((wxPerLpOrZeroX8 != 0))
247247 then wxPerLpOrZeroX8
283283 let stakedTotalKEY = keyStakedTotal(lpAssetIdStr)
284284 let stakedByUser = readStaked(stakedByUserKEY)
285285 let stakedTotal = readStaked(stakedTotalKEY)
286- let $t01255012667 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, amount)
287- let wxToClaimUserNew = $t01255012667._1
288- let integralSTATE = $t01255012667._2
289- let debug = $t01255012667._3
286+ let $t01252212639 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, amount)
287+ let wxToClaimUserNew = $t01252212639._1
288+ let integralSTATE = $t01252212639._2
289+ let debug = $t01252212639._3
290290 ([IntegerEntry(stakedByUserKEY, (stakedByUser + amount)), IntegerEntry(stakedTotalKEY, (stakedTotal + amount)), OperationHistoryEntry("stake", userAddressStr, lpAssetIdStr, amount, i.transactionId)] ++ integralSTATE)
291291 }
292292
301301 let stakedTotalKEY = keyStakedTotal(lpAssetIdStr)
302302 let stakedByUser = readStaked(stakedByUserKEY)
303303 let stakedTotal = readStaked(stakedTotalKEY)
304- let $t01348413602 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, -(amount))
305- let wxToClaimUserNew = $t01348413602._1
306- let integralSTATE = $t01348413602._2
307- let debug = $t01348413602._3
304+ let $t01345613574 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, -(amount))
305+ let wxToClaimUserNew = $t01345613574._1
306+ let integralSTATE = $t01345613574._2
307+ let debug = $t01345613574._3
308308 if ((amount > stakedByUser))
309309 then throw("passed amount is less then available")
310310 else ([IntegerEntry(stakedByUserKEY, (stakedByUser - amount)), IntegerEntry(stakedTotalKEY, (stakedTotal - amount)), ScriptTransfer(i.caller, amount, lpAssetId), OperationHistoryEntry("unstake", userAddressStr, lpAssetIdStr, amount, i.transactionId)] ++ integralSTATE)
325325 let claimedByUserMinReward = getIntOrZero(this, claimedByUserMinRewardKEY)
326326 let claimedByUserBoostReward = getIntOrZero(this, claimedByUserBoostRewardKEY)
327327 let claimedTotal = getIntOrZero(this, claimedTotalKEY)
328- let $t01479414906 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, 0)
329- let wxToClaimUserNew = $t01479414906._1
330- let integralSTATE = $t01479414906._2
331- let debug = $t01479414906._3
328+ let $t01476614878 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, 0)
329+ let wxToClaimUserNew = $t01476614878._1
330+ let integralSTATE = $t01476614878._2
331+ let debug = $t01476614878._3
332332 let availableToClaim = (wxToClaimUserNew - claimedByUser)
333333 if ((0 >= availableToClaim))
334334 then throw("nothing to claim")
365365 else (height - emissionStartBlock)
366366 let poolWxEmission = fraction((wxEmissionPerBlock * passedBlocks), poolWeight, poolWeightMult)
367367 let userWxReward = fraction(poolWxEmission, stakedByUser, stakedTotal)
368- let $t01725717369 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, 0)
369- let wxToClaimUserNew = $t01725717369._1
370- let integralSTATE = $t01725717369._2
371- let debug = $t01725717369._3
368+ let $t01722917341 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, 0)
369+ let wxToClaimUserNew = $t01722917341._1
370+ let integralSTATE = $t01722917341._2
371+ let debug = $t01722917341._3
372372 let availableToClaim = (wxToClaimUserNew - claimedByUser)
373373 let boostInvResult = asAnyList(invoke(boostingContract, "claimWxBoostREADONLY", [lpAssetIdStr, userAddressStr], nil))
374374 let wxAmountBoostTotal = asInt(boostInvResult[0])
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 func asAnyList (val) = match val {
1717 case valAnyLyst: List[Any] =>
1818 valAnyLyst
1919 case _ =>
2020 throw("fail to cast into List[Any]")
2121 }
2222
2323
2424 func asInt (val) = match val {
2525 case valInt: Int =>
2626 valInt
2727 case _ =>
2828 throw("fail to cast into Int")
2929 }
3030
3131
3232 func asString (val) = match val {
3333 case valStr: String =>
3434 valStr
3535 case _ =>
3636 throw("fail to cast into Int")
3737 }
3838
3939
4040 func asByteVector (val) = match val {
4141 case valBin: ByteVector =>
4242 valBin
4343 case _ =>
4444 throw("fail to cast into Int")
4545 }
4646
4747
4848 func getStringOrFail (key) = valueOrErrorMessage(getString(key), (("mandatory this." + key) + " is not defined"))
4949
5050
5151 func getStringByAddressOrFail (address,key) = valueOrErrorMessage(getString(address, key), (((("mandatory " + toString(address)) + ".") + key) + " is not defined"))
5252
5353
5454 func getIntOrZero (address,key) = valueOrElse(getInteger(address, key), 0)
5555
5656
5757 func getIntOrDefault (address,key,defaultVal) = valueOrElse(getInteger(address, key), defaultVal)
5858
5959
6060 func getIntOrFail (address,key) = valueOrErrorMessage(getInteger(address, key), (("mandatory this." + key) + " is not defined"))
6161
6262
6363 func toX18 (origVal,origScaleMult) = fraction(toBigInt(origVal), MULT18, toBigInt(origScaleMult))
6464
6565
6666 func fromX18 (val,resultScaleMult) = toInt(fraction(val, toBigInt(resultScaleMult), MULT18))
6767
6868
6969 func keyFactoryAddress () = "%s%s__config__factoryAddress"
7070
7171
7272 let IdxFactoryCfgStakingDapp = 1
7373
7474 let IdxFactoryCfgBoostingDapp = 2
7575
7676 let IdxFactoryCfgIdoDapp = 3
7777
7878 let IdxFactoryCfgTeamDapp = 4
7979
8080 let IdxFactoryCfgEmissionDapp = 5
8181
8282 let IdxFactoryCfgRestDapp = 6
8383
8484 let IdxFactoryCfgSlippageDapp = 7
8585
8686 func keyFactoryCfg () = "%s__factoryConfig"
8787
8888
8989 func keyFactoryLp2AssetsMapping (lpAssetStr) = makeString(["%s%s%s", lpAssetStr, "mappings__lpAsset2PoolContract"], SEP)
9090
9191
9292 func keyFactoryLpList () = "%s__lpTokensList"
9393
9494
9595 func keyFactoryLpAssetToPoolContractAddress (lpAssetStr) = makeString(["%s%s%s", lpAssetStr, "mappings__lpAsset2PoolContract"], SEP)
9696
9797
9898 func keyFactoryPoolWeight (contractAddress) = makeString(["%s%s", "poolWeight", contractAddress], SEP)
9999
100100
101101 func readFactoryAddressOrFail () = addressFromStringValue(getStringOrFail(keyFactoryAddress()))
102102
103103
104104 func readLpList () = split(valueOrElse(getString(readFactoryAddressOrFail(), keyFactoryLpList()), ""), SEP)
105105
106106
107107 func readFactoryCfgOrFail (factory) = split(getStringByAddressOrFail(factory, keyFactoryCfg()), SEP)
108108
109109
110110 func getBoostingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgBoostingDapp])
111111
112112
113113 func getEmissionAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgEmissionDapp])
114114
115115
116116 func getStakingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgStakingDapp])
117117
118118
119119 func keyEmissionRatePerBlockCurrent () = "%s%s__ratePerBlock__current"
120120
121121
122122 func keyEmissionRatePerBlockMaxCurrent () = "%s%s__ratePerBlockMax__current"
123123
124124
125125 func keyEmissionStartBlock () = "%s%s__emission__startBlock"
126126
127127
128128 func keyEmissionDurationInBlocks () = "%s%s__emission__duration"
129129
130130
131131 func keyEmissionEndBlock () = "%s%s__emission__endBlock"
132132
133133
134134 func keyStakedByUser (userAddressStr,lpAssetIdStr) = makeString(["%s%s%s__staked", userAddressStr, lpAssetIdStr], SEP)
135135
136136
137137 func keyStakedTotal (lpAssetIdStr) = ("%s%s%s__staked__total__" + lpAssetIdStr)
138138
139139
140140 func keyClaimedByUser (lpAssetIdStr,userAddressStr) = makeString(["%s%s%s__claimed", userAddressStr, lpAssetIdStr], SEP)
141141
142142
143143 func keyClaimedByUserMinReward (lpAssetIdStr,userAddressStr) = makeString(["%s%s%s__claimedMinReward", userAddressStr, lpAssetIdStr], SEP)
144144
145145
146146 func keyClaimedByUserBoostReward (lpAssetIdStr,userAddressStr) = makeString(["%s%s%s__claimedBoostReward", userAddressStr, lpAssetIdStr], SEP)
147147
148148
149149 func keyClaimedTotal (lpAssetIdStr) = makeString(["%s%s%s__claimed", "total", lpAssetIdStr], SEP)
150150
151151
152152 func readStaked (key) = valueOrElse(getInteger(this, key), 0)
153153
154154
155155 func keyLastTotalLpBalance (lpAssetId) = makeString(["%s%s%s", lpAssetId, "total", "bal"], SEP)
156156
157157
158158 func keyLastUserLpBalance (lpAssetId,userAddress) = makeString(["%s%s%s", lpAssetId, userAddress, "bal"], SEP)
159159
160160
161161 func keyTotalLpBalanceIntegral (lpAssetId) = makeString(["%s%s%s", lpAssetId, "total", "balINT"], SEP)
162162
163163
164164 func keyUserLpBalanceIntegral (lpAssetId,userAddress) = makeString(["%s%s%s", lpAssetId, userAddress, "balINT"], SEP)
165165
166166
167167 func keyTotalLpBalanceIntegralLastUpdHeight (lpAssetId) = makeString(["%s%s%s", lpAssetId, "total", "lastUpd"], SEP)
168168
169169
170170 func keyUserLpBalanceIntegralLastUpdHeight (lpAssetId,userAddress) = makeString(["%s%s%s", lpAssetId, userAddress, "lastUpd"], SEP)
171171
172172
173173 func keyWxPerLpIntegral (lpAssetId) = makeString(["%s%s%s%s", lpAssetId, "common", "lpInt"], SEP)
174174
175175
176176 func keyWxPerLpIntegralLastUpdHeight (lpAssetId) = makeString(["%s%s%s%s", lpAssetId, "common", "lpIntH"], SEP)
177177
178178
179179 func keyWxToClaimUser (lpAssetId,userAddress) = makeString(["%s%s%s%s", lpAssetId, userAddress, "lpInt"], SEP)
180180
181181
182182 func keyWxPerLpIntegralUserLastUpdHeight (lpAssetId,userAddress) = makeString(["%s%s%s%s", lpAssetId, userAddress, "lpIntH"], SEP)
183183
184184
185185 func keyWxPerLp (lpAssetId) = makeString(["%s", lpAssetId, "wxPerLp"], SEP)
186186
187187
188188 func keyWxPerLpX18 (lpAssetId) = makeString(["%s", lpAssetId, "wxPerLpX18"], SEP)
189189
190190
191191 func keyWxPerLpIntegralUserLast (lpAssetId,userAddress) = makeString(["%s%s%s%s", lpAssetId, userAddress, "uIntL"], SEP)
192192
193193
194194 func keyOperationHistoryRecord (type,userAddress,txId58) = makeString(["%s%s%s%s__history", type, userAddress, txId58], SEP)
195195
196196
197197 func formatHistoryRecord (userAddress,lpAssetId,type,amount) = makeString(["%s%s%s%d%d%d", userAddress, lpAssetId, type, toString(height), toString(lastBlock.timestamp), toString(amount)], SEP)
198198
199199
200200 func OperationHistoryEntry (type,userAddress,lpAssetId,amount,txId) = StringEntry(keyOperationHistoryRecord(type, userAddress, toBase58String(txId)), formatHistoryRecord(userAddress, lpAssetId, type, amount))
201201
202202
203203 let factoryContract = readFactoryAddressOrFail()
204204
205205 let factoryCfg = readFactoryCfgOrFail(factoryContract)
206206
207207 let emissionContract = getEmissionAddressOrFail(factoryCfg)
208208
209209 let boostingContract = getBoostingAddressOrFail(factoryCfg)
210210
211211 func calcWxPerLpIntegralUserLast (stakedByUser,wxPerLpIntegralUserLastUpdHeightOrZero,wxPerLpIntegralNew,wxPerLpIntegralUserLastKEY) = if (if ((wxPerLpIntegralUserLastUpdHeightOrZero == 0))
212212 then (stakedByUser > 0)
213213 else false)
214214 then 0
215215 else if ((stakedByUser == 0))
216216 then wxPerLpIntegralNew
217217 else if (if ((wxPerLpIntegralUserLastUpdHeightOrZero > 0))
218218 then (stakedByUser > 0)
219219 else false)
220220 then getIntOrFail(this, wxPerLpIntegralUserLastKEY)
221221 else throw("calcWxPerLpIntegralUserLast: unexpected state")
222222
223223
224224 func refreshINTEGRALS (lpAssetIdStr,userAddressStr,poolAddressStr,lpDeltaAmount) = {
225225 let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr)
226226 let stakedTotalKEY = keyStakedTotal(lpAssetIdStr)
227227 let stakedByUser = readStaked(stakedByUserKEY)
228228 let stakedTotal = readStaked(stakedTotalKEY)
229229 let poolWeight = getIntegerValue(factoryContract, keyFactoryPoolWeight(poolAddressStr))
230230 let emissionStartBlock = getIntOrFail(emissionContract, keyEmissionStartBlock())
231231 let MULT3 = 1000
232232 let wxEmissionPerBlock = (getIntOrFail(emissionContract, keyEmissionRatePerBlockCurrent()) * MULT3)
233233 let poolWxEmissionPerBlock = fraction(wxEmissionPerBlock, poolWeight, (POOLWEIGHTMULT * 3))
234234 let wxPerLpIntegralKEY = keyWxPerLpIntegral(lpAssetIdStr)
235235 let wxPerLpIntegralLastUpdHeightKEY = keyWxPerLpIntegralLastUpdHeight(lpAssetIdStr)
236236 let wxToClaimUserKEY = keyWxToClaimUser(lpAssetIdStr, userAddressStr)
237237 let wxPerLpIntegralUserLastUpdHeightKEY = keyWxPerLpIntegralUserLastUpdHeight(lpAssetIdStr, userAddressStr)
238238 let wxPerLpKEY = keyWxPerLp(lpAssetIdStr)
239239 let wxPerLpIntegralUserLastKEY = keyWxPerLpIntegralUserLast(lpAssetIdStr, userAddressStr)
240240 let wxPerLpIntegralLastUpdHeight = getIntOrDefault(this, wxPerLpIntegralLastUpdHeightKEY, emissionStartBlock)
241241 let wxPerLpIntegral = getIntOrZero(this, wxPerLpIntegralKEY)
242242 let wxToClaimUser = getIntOrZero(this, wxToClaimUserKEY)
243243 let wxPerLpIntegralUserLastUpdHeightOrZero = getIntOrZero(this, wxPerLpIntegralUserLastUpdHeightKEY)
244- let wxPerLpOrZeroX8 = getIntOrZero(this, wxPerLpKEY)
244+ let wxPerLpOrZeroX8 = 0
245245 let dh = max([(height - wxPerLpIntegralLastUpdHeight), 0])
246246 let wxPerLpX8 = if ((wxPerLpOrZeroX8 != 0))
247247 then wxPerLpOrZeroX8
248248 else fraction(poolWxEmissionPerBlock, MULT8, stakedTotal)
249249 let stakedTotalNew = (stakedTotal + lpDeltaAmount)
250250 let wxPerLpIntegralNew = (wxPerLpIntegral + (wxPerLpX8 * dh))
251251 let wxPerLpIntegralUserLast = calcWxPerLpIntegralUserLast(stakedByUser, wxPerLpIntegralUserLastUpdHeightOrZero, wxPerLpIntegralNew, wxPerLpIntegralUserLastKEY)
252252 let wxToClaimUserNew = (wxToClaimUser + fraction((wxPerLpIntegralNew - wxPerLpIntegralUserLast), stakedByUser, (MULT8 * MULT3)))
253253 let wxPerLpIntegralUserLastNew = wxPerLpIntegralNew
254254 let wxPerLpNewX8 = 0
255255 let wxPerLpIntegralLastUpdHeightNew = height
256256 let wxPerLpIntegralUserLastUpdHeightNew = height
257257 let debug = makeString([toString(wxToClaimUserNew), toString(wxPerLpIntegralNew), toString(wxPerLpIntegralUserLast), toString(stakedByUser), toString(dh), toString(wxPerLpX8), toString(stakedTotal), toString(poolWxEmissionPerBlock), toString(wxEmissionPerBlock), toString(poolWeight), toString(height)], "::")
258258 $Tuple3(wxToClaimUserNew, [IntegerEntry(wxPerLpIntegralKEY, wxPerLpIntegralNew), IntegerEntry(wxPerLpIntegralLastUpdHeightKEY, wxPerLpIntegralLastUpdHeightNew), IntegerEntry(wxToClaimUserKEY, wxToClaimUserNew), IntegerEntry(wxPerLpIntegralUserLastUpdHeightKEY, wxPerLpIntegralUserLastUpdHeightNew), IntegerEntry(wxPerLpKEY, wxPerLpNewX8), IntegerEntry(wxPerLpIntegralUserLastKEY, wxPerLpIntegralUserLastNew)], debug)
259259 }
260260
261261
262262 @Callable(i)
263263 func constructor (factoryAddressStr) = if ((i.caller != this))
264264 then throw("not authorized")
265265 else [StringEntry(keyFactoryAddress(), factoryAddressStr)]
266266
267267
268268
269269 @Callable(i)
270270 func stake () = if ((size(i.payments) != 1))
271271 then throw("invalid payment - exact one payment must be attached")
272272 else {
273273 let pmt = i.payments[0]
274274 let lpAssetId = value(pmt.assetId)
275275 let lpAssetIdStr = toBase58String(lpAssetId)
276276 let amount = pmt.amount
277277 let poolAddressStr = valueOrErrorMessage(getString(factoryContract, keyFactoryLp2AssetsMapping(lpAssetIdStr)), ("unsupported lp asset " + lpAssetIdStr))
278278 let callerStr = toString(i.caller)
279279 let userAddressStr = if ((callerStr == poolAddressStr))
280280 then toString(i.originCaller)
281281 else callerStr
282282 let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr)
283283 let stakedTotalKEY = keyStakedTotal(lpAssetIdStr)
284284 let stakedByUser = readStaked(stakedByUserKEY)
285285 let stakedTotal = readStaked(stakedTotalKEY)
286- let $t01255012667 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, amount)
287- let wxToClaimUserNew = $t01255012667._1
288- let integralSTATE = $t01255012667._2
289- let debug = $t01255012667._3
286+ let $t01252212639 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, amount)
287+ let wxToClaimUserNew = $t01252212639._1
288+ let integralSTATE = $t01252212639._2
289+ let debug = $t01252212639._3
290290 ([IntegerEntry(stakedByUserKEY, (stakedByUser + amount)), IntegerEntry(stakedTotalKEY, (stakedTotal + amount)), OperationHistoryEntry("stake", userAddressStr, lpAssetIdStr, amount, i.transactionId)] ++ integralSTATE)
291291 }
292292
293293
294294
295295 @Callable(i)
296296 func unstake (lpAssetIdStr,amount) = {
297297 let userAddressStr = toString(i.caller)
298298 let lpAssetId = fromBase58String(lpAssetIdStr)
299299 let poolAddressStr = valueOrErrorMessage(getString(factoryContract, keyFactoryLp2AssetsMapping(lpAssetIdStr)), ("unsupported lp asset " + lpAssetIdStr))
300300 let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr)
301301 let stakedTotalKEY = keyStakedTotal(lpAssetIdStr)
302302 let stakedByUser = readStaked(stakedByUserKEY)
303303 let stakedTotal = readStaked(stakedTotalKEY)
304- let $t01348413602 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, -(amount))
305- let wxToClaimUserNew = $t01348413602._1
306- let integralSTATE = $t01348413602._2
307- let debug = $t01348413602._3
304+ let $t01345613574 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, -(amount))
305+ let wxToClaimUserNew = $t01345613574._1
306+ let integralSTATE = $t01345613574._2
307+ let debug = $t01345613574._3
308308 if ((amount > stakedByUser))
309309 then throw("passed amount is less then available")
310310 else ([IntegerEntry(stakedByUserKEY, (stakedByUser - amount)), IntegerEntry(stakedTotalKEY, (stakedTotal - amount)), ScriptTransfer(i.caller, amount, lpAssetId), OperationHistoryEntry("unstake", userAddressStr, lpAssetIdStr, amount, i.transactionId)] ++ integralSTATE)
311311 }
312312
313313
314314
315315 @Callable(i)
316316 func claimWx (lpAssetIdStr) = {
317317 let userAddress = i.caller
318318 let userAddressStr = toString(i.caller)
319319 let poolAddressStr = getStringByAddressOrFail(factoryContract, keyFactoryLpAssetToPoolContractAddress(lpAssetIdStr))
320320 let claimedByUserKEY = keyClaimedByUser(lpAssetIdStr, userAddressStr)
321321 let claimedTotalKEY = keyClaimedTotal(lpAssetIdStr)
322322 let claimedByUserMinRewardKEY = keyClaimedByUserMinReward(lpAssetIdStr, userAddressStr)
323323 let claimedByUserBoostRewardKEY = keyClaimedByUserBoostReward(lpAssetIdStr, userAddressStr)
324324 let claimedByUser = getIntOrZero(this, claimedByUserKEY)
325325 let claimedByUserMinReward = getIntOrZero(this, claimedByUserMinRewardKEY)
326326 let claimedByUserBoostReward = getIntOrZero(this, claimedByUserBoostRewardKEY)
327327 let claimedTotal = getIntOrZero(this, claimedTotalKEY)
328- let $t01479414906 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, 0)
329- let wxToClaimUserNew = $t01479414906._1
330- let integralSTATE = $t01479414906._2
331- let debug = $t01479414906._3
328+ let $t01476614878 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, 0)
329+ let wxToClaimUserNew = $t01476614878._1
330+ let integralSTATE = $t01476614878._2
331+ let debug = $t01476614878._3
332332 let availableToClaim = (wxToClaimUserNew - claimedByUser)
333333 if ((0 >= availableToClaim))
334334 then throw("nothing to claim")
335335 else {
336336 let wxAmountBoostTotal = asInt(asAnyList(invoke(boostingContract, "claimWxBoost", [lpAssetIdStr, userAddressStr], nil))[0])
337337 let poolWeight = getIntegerValue(factoryContract, keyFactoryPoolWeight(poolAddressStr))
338338 let minRewardPart = availableToClaim
339339 let boostRewardPart = min([(minRewardPart * 2), wxAmountBoostTotal])
340340 let wxAssetId = asByteVector(asAnyList(invoke(emissionContract, "emit", [minRewardPart], nil))[0])
341341 let emitBoost = asAnyList(invoke(emissionContract, "emit", [boostRewardPart], nil))
342342 if ((emitBoost == emitBoost))
343343 then [IntegerEntry(claimedByUserKEY, (claimedByUser + availableToClaim)), IntegerEntry(claimedByUserMinRewardKEY, (claimedByUserMinReward + minRewardPart)), IntegerEntry(claimedByUserBoostRewardKEY, (claimedByUserBoostReward + boostRewardPart)), IntegerEntry(claimedTotalKEY, (claimedTotal + availableToClaim)), ScriptTransfer(userAddress, minRewardPart, wxAssetId), ScriptTransfer(userAddress, boostRewardPart, wxAssetId), OperationHistoryEntry("claim", userAddressStr, lpAssetIdStr, availableToClaim, i.transactionId)]
344344 else throw("Strict value is not equal to itself.")
345345 }
346346 }
347347
348348
349349
350350 @Callable(i)
351351 func claimWxREADONLY (lpAssetIdStr,userAddressStr) = {
352352 let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr)
353353 let stakedTotalKEY = keyStakedTotal(lpAssetIdStr)
354354 let claimedByUserKEY = keyClaimedByUser(lpAssetIdStr, userAddressStr)
355355 let stakedByUser = readStaked(stakedByUserKEY)
356356 let stakedTotal = readStaked(stakedTotalKEY)
357357 let claimedByUser = getIntOrZero(this, claimedByUserKEY)
358358 let poolAddressStr = getStringByAddressOrFail(factoryContract, keyFactoryLpAssetToPoolContractAddress(lpAssetIdStr))
359359 let poolWeightMult = MULT8
360360 let poolWeight = getIntegerValue(factoryContract, keyFactoryPoolWeight(poolAddressStr))
361361 let wxEmissionPerBlock = getIntOrFail(emissionContract, keyEmissionRatePerBlockCurrent())
362362 let emissionStartBlock = getIntOrFail(emissionContract, keyEmissionStartBlock())
363363 let passedBlocks = if ((emissionStartBlock > height))
364364 then 0
365365 else (height - emissionStartBlock)
366366 let poolWxEmission = fraction((wxEmissionPerBlock * passedBlocks), poolWeight, poolWeightMult)
367367 let userWxReward = fraction(poolWxEmission, stakedByUser, stakedTotal)
368- let $t01725717369 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, 0)
369- let wxToClaimUserNew = $t01725717369._1
370- let integralSTATE = $t01725717369._2
371- let debug = $t01725717369._3
368+ let $t01722917341 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, 0)
369+ let wxToClaimUserNew = $t01722917341._1
370+ let integralSTATE = $t01722917341._2
371+ let debug = $t01722917341._3
372372 let availableToClaim = (wxToClaimUserNew - claimedByUser)
373373 let boostInvResult = asAnyList(invoke(boostingContract, "claimWxBoostREADONLY", [lpAssetIdStr, userAddressStr], nil))
374374 let wxAmountBoostTotal = asInt(boostInvResult[0])
375375 let boostDebug = asString(boostInvResult[1])
376376 let minRewardPart = availableToClaim
377377 let boostRewardPart = min([(minRewardPart * 2), wxAmountBoostTotal])
378378 let totalReward = (minRewardPart + boostRewardPart)
379379 $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))
380380 }
381381
382382

github/deemru/w8io/fabc49c 
58.98 ms