tx · 3JJjxUejEVcqNWSscnVVyKA8E17CFEfj1ZFBBX2ep1pY

3MvkaAmaBu7ngK68fQMV8faYLdcnnBJtrj5:  -0.01400000 Waves

2022.01.19 20:16 [1886096] smart account 3MvkaAmaBu7ngK68fQMV8faYLdcnnBJtrj5 > SELF 0.00000000 Waves

{ "type": 13, "id": "3JJjxUejEVcqNWSscnVVyKA8E17CFEfj1ZFBBX2ep1pY", "fee": 1400000, "feeAssetId": null, "timestamp": 1642612627540, "version": 1, "sender": "3MvkaAmaBu7ngK68fQMV8faYLdcnnBJtrj5", "senderPublicKey": "hXnMcUKtqomxgSbnHn7eToAsYJGaa1PWq7Lq6QQLumm", "proofs": [ "64phkFQftMdYMmniTnhyJ5Rr86kz3X7QqhRzwRcaBY73ZM39zcQbJHLbywYdhbkxqwceyR7WfMbj94n294htX7Gf" ], "script": "base64:AAIFAAAAAAAAACAIAhIDCgEIEgASBAoCCAESAwoBCBIECgIICBIECgIICAAAAEgAAAAABlNDQUxFOAAAAAAAAAAACAAAAAAFTVVMVDgAAAAAAAX14QAAAAAAB1NDQUxFMTgAAAAAAAAAABIAAAAABk1VTFQxOAkAATYAAAABAA3gtrOnZAAAAAAAAANTRVACAAAAAl9fAAAAAA5QT09MV0VJR0hUTVVMVAUAAAAFTVVMVDgBAAAACWFzQW55TGlzdAAAAAEAAAADdmFsBAAAAAckbWF0Y2gwBQAAAAN2YWwDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAACUxpc3RbQW55XQQAAAAKdmFsQW55THlzdAUAAAAHJG1hdGNoMAUAAAAKdmFsQW55THlzdAkAAAIAAAABAgAAABtmYWlsIHRvIGNhc3QgaW50byBMaXN0W0FueV0BAAAABWFzSW50AAAAAQAAAAN2YWwEAAAAByRtYXRjaDAFAAAAA3ZhbAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAZ2YWxJbnQFAAAAByRtYXRjaDAFAAAABnZhbEludAkAAAIAAAABAgAAABVmYWlsIHRvIGNh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AAAAAWkBAAAADm9uTW9kaWZ5V2VpZ2h0AAAAAgAAAAxscEFzc2V0SWRTdHIAAAAOcG9vbEFkZHJlc3NTdHIDCQEAAAACIT0AAAACCAUAAAABaQAAAAZjYWxsZXIFAAAAD2ZhY3RvcnlDb250cmFjdAkAAAIAAAABAgAAABJwZXJtaXNzaW9ucyBkZW5pZWQEAAAADSR0MDE4OTY5MTkwNzkJAQAAABRyZWZyZXNoUG9vbElOVEVHUkFMUwAAAAMFAAAADGxwQXNzZXRJZFN0cgUAAAAOcG9vbEFkZHJlc3NTdHIAAAAAAAAAAAAEAAAAEnd4UGVyTHBJbnRlZ3JhbE5ldwgFAAAADSR0MDE4OTY5MTkwNzkAAAACXzEEAAAAEXBvb2xJbnRlZ3JhbFNUQVRFCAUAAAANJHQwMTg5NjkxOTA3OQAAAAJfMgQAAAAJcG9vbERFQlVHCAUAAAANJHQwMTg5NjkxOTA3OQAAAAJfMwUAAAARcG9vbEludGVncmFsU1RBVEUAAAAA3hge+w==", "chainId": 84, "height": 1886096, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5FUxwLK6BRwqBphQzLRkqjNp28aJQRnkf3cK6mmbTdJJ Next: none Diff:
OldNewDifferences
311311 let poolAddressStr = valueOrErrorMessage(getString(factoryContract, keyFactoryLp2AssetsMapping(lpAssetIdStr)), ("unsupported lp asset " + lpAssetIdStr))
312312 let poolAddon = valueOrElse(getString(this, keyStablePoolAddonAddr()), poolAddressStr)
313313 let callerStr = toString(i.caller)
314- let userAddressStr = if (if ((callerStr == poolAddressStr))
315- then true
316- else (callerStr == poolAddon))
317- then toString(i.originCaller)
318- else callerStr
319- let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr)
320- let stakedTotalKEY = keyStakedTotal(lpAssetIdStr)
321- let stakedByUser = readStaked(stakedByUserKEY)
322- let stakedTotal = readStaked(stakedTotalKEY)
323- let $t01430014418 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, -(amount))
324- let wxToClaimUserNew = $t01430014418._1
325- let integralSTATE = $t01430014418._2
326- let debug = $t01430014418._3
327- if ((amount > stakedByUser))
328- then throw("passed amount is less then available")
329- else ([IntegerEntry(stakedByUserKEY, (stakedByUser - amount)), IntegerEntry(stakedTotalKEY, (stakedTotal - amount)), ScriptTransfer(i.caller, amount, lpAssetId), OperationHistoryEntry("unstake", userAddressStr, lpAssetIdStr, amount, i.transactionId)] ++ integralSTATE)
314+ if (true)
315+ then throw(("poolAddon = " + poolAddon))
316+ else {
317+ let userAddressStr = if (if ((callerStr == poolAddressStr))
318+ then true
319+ else (callerStr == poolAddon))
320+ then toString(i.originCaller)
321+ else callerStr
322+ let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr)
323+ let stakedTotalKEY = keyStakedTotal(lpAssetIdStr)
324+ let stakedByUser = readStaked(stakedByUserKEY)
325+ let stakedTotal = readStaked(stakedTotalKEY)
326+ let $t01435514473 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, -(amount))
327+ let wxToClaimUserNew = $t01435514473._1
328+ let integralSTATE = $t01435514473._2
329+ let debug = $t01435514473._3
330+ if ((amount > stakedByUser))
331+ then throw("passed amount is less then available")
332+ else ([IntegerEntry(stakedByUserKEY, (stakedByUser - amount)), IntegerEntry(stakedTotalKEY, (stakedTotal - amount)), ScriptTransfer(i.caller, amount, lpAssetId), OperationHistoryEntry("unstake", userAddressStr, lpAssetIdStr, amount, i.transactionId)] ++ integralSTATE)
333+ }
330334 }
331335
332336
344348 let claimedByUserMinReward = getIntOrZero(this, claimedByUserMinRewardKEY)
345349 let claimedByUserBoostReward = getIntOrZero(this, claimedByUserBoostRewardKEY)
346350 let claimedTotal = getIntOrZero(this, claimedTotalKEY)
347- let $t01561015722 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, 0)
348- let wxToClaimUserNew = $t01561015722._1
349- let integralSTATE = $t01561015722._2
350- let debug = $t01561015722._3
351+ let $t01566515777 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, 0)
352+ let wxToClaimUserNew = $t01566515777._1
353+ let integralSTATE = $t01566515777._2
354+ let debug = $t01566515777._3
351355 let availableToClaim = (wxToClaimUserNew - claimedByUser)
352356 if ((0 >= availableToClaim))
353357 then throw("nothing to claim")
382386 else (height - emissionStartBlock)
383387 let poolWxEmission = fraction((wxEmissionPerBlock * passedBlocks), poolWeight, POOLWEIGHTMULT)
384388 let userWxReward = fraction(poolWxEmission, stakedByUser, stakedTotal)
385- let $t01792218034 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, 0)
386- let wxToClaimUserNew = $t01792218034._1
387- let integralSTATE = $t01792218034._2
388- let debug = $t01792218034._3
389+ let $t01797718089 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, 0)
390+ let wxToClaimUserNew = $t01797718089._1
391+ let integralSTATE = $t01797718089._2
392+ let debug = $t01797718089._3
389393 let availableToClaim = (wxToClaimUserNew - claimedByUser)
390394 let boostInvResult = asAnyList(invoke(boostingContract, "claimWxBoostREADONLY", [lpAssetIdStr, userAddressStr], nil))
391395 let wxAmountBoostTotal = asInt(boostInvResult[0])
402406 func onModifyWeight (lpAssetIdStr,poolAddressStr) = if ((i.caller != factoryContract))
403407 then throw("permissions denied")
404408 else {
405- let $t01891419024 = refreshPoolINTEGRALS(lpAssetIdStr, poolAddressStr, 0)
406- let wxPerLpIntegralNew = $t01891419024._1
407- let poolIntegralSTATE = $t01891419024._2
408- let poolDEBUG = $t01891419024._3
409+ let $t01896919079 = refreshPoolINTEGRALS(lpAssetIdStr, poolAddressStr, 0)
410+ let wxPerLpIntegralNew = $t01896919079._1
411+ let poolIntegralSTATE = $t01896919079._2
412+ let poolDEBUG = $t01896919079._3
409413 poolIntegralSTATE
410414 }
411415
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 keyStablePoolAddonAddr () = "%s__stablePoolAddonAddr"
9090
9191
9292 func keyFactoryLp2AssetsMapping (lpAssetStr) = makeString(["%s%s%s", lpAssetStr, "mappings__lpAsset2PoolContract"], SEP)
9393
9494
9595 func keyFactoryLpList () = "%s__lpTokensList"
9696
9797
9898 func keyFactoryLpAssetToPoolContractAddress (lpAssetStr) = makeString(["%s%s%s", lpAssetStr, "mappings__lpAsset2PoolContract"], SEP)
9999
100100
101101 func keyFactoryPoolWeight (contractAddress) = makeString(["%s%s", "poolWeight", contractAddress], SEP)
102102
103103
104104 func readLpList (factory) = split(valueOrElse(getString(factory, 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 factoryAddress = getStringOrFail(keyFactoryAddress())
204204
205205 let factoryContract = addressFromStringValue(factoryAddress)
206206
207207 let factoryCfg = readFactoryCfgOrFail(factoryContract)
208208
209209 let emissionContract = getEmissionAddressOrFail(factoryCfg)
210210
211211 let boostingContract = getBoostingAddressOrFail(factoryCfg)
212212
213213 func calcWxPerLpIntegralUserLast (stakedByUser,wxPerLpIntegralUserLastUpdHeightOrZero,wxPerLpIntegralNew,wxPerLpIntegralUserLastKEY) = if (if ((wxPerLpIntegralUserLastUpdHeightOrZero == 0))
214214 then (stakedByUser > 0)
215215 else false)
216216 then 0
217217 else if ((stakedByUser == 0))
218218 then wxPerLpIntegralNew
219219 else if (if ((wxPerLpIntegralUserLastUpdHeightOrZero > 0))
220220 then (stakedByUser > 0)
221221 else false)
222222 then getIntOrFail(this, wxPerLpIntegralUserLastKEY)
223223 else throw("calcWxPerLpIntegralUserLast: unexpected state")
224224
225225
226226 func refreshPoolINTEGRALS (lpAssetIdStr,poolAddressStr,lpDeltaAmount) = {
227227 let stakedTotalKEY = keyStakedTotal(lpAssetIdStr)
228228 let stakedTotal = readStaked(stakedTotalKEY)
229229 let poolWeight = getIntegerValue(factoryContract, keyFactoryPoolWeight(poolAddressStr))
230230 let emissionStartBlock = getIntOrFail(emissionContract, keyEmissionStartBlock())
231231 let MULT3 = 1000
232232 let wxEmissionPerBlockX3 = (getIntOrFail(emissionContract, keyEmissionRatePerBlockCurrent()) * MULT3)
233233 let poolWxEmissionPerBlockX3 = fraction(wxEmissionPerBlockX3, poolWeight, (POOLWEIGHTMULT * 3))
234234 let wxPerLpIntegralKEY = keyWxPerLpIntegral(lpAssetIdStr)
235235 let wxPerLpIntegralLastUpdHeightKEY = keyWxPerLpIntegralLastUpdHeight(lpAssetIdStr)
236236 let wxPerLpKEY = keyWxPerLp(lpAssetIdStr)
237237 let wxPerLpIntegralLastUpdHeight = getIntOrDefault(this, wxPerLpIntegralLastUpdHeightKEY, emissionStartBlock)
238238 let wxPerLpIntegral = getIntOrZero(this, wxPerLpIntegralKEY)
239239 let wxPerLpOrZeroX3 = 0
240240 let dh = max([(height - wxPerLpIntegralLastUpdHeight), 0])
241241 let wxPerLpX3 = if ((wxPerLpOrZeroX3 != 0))
242242 then wxPerLpOrZeroX3
243243 else fraction(poolWxEmissionPerBlockX3, MULT8, stakedTotal)
244244 let stakedTotalNew = (stakedTotal + lpDeltaAmount)
245245 let wxPerLpIntegralNew = (wxPerLpIntegral + (wxPerLpX3 * dh))
246246 let wxPerLpX3New = (poolWxEmissionPerBlockX3 / stakedTotalNew)
247247 let wxPerLpIntegralLastUpdHeightNew = height
248248 let debug = makeString([toString(wxPerLpIntegralNew), toString(dh), toString(wxPerLpX3), toString(stakedTotal), toString(poolWxEmissionPerBlockX3), toString(wxEmissionPerBlockX3), toString(poolWeight)], "::")
249249 $Tuple3(wxPerLpIntegralNew, [IntegerEntry(wxPerLpIntegralKEY, wxPerLpIntegralNew), IntegerEntry(wxPerLpIntegralLastUpdHeightKEY, wxPerLpIntegralLastUpdHeightNew), IntegerEntry(wxPerLpKEY, wxPerLpX3New)], debug)
250250 }
251251
252252
253253 func refreshINTEGRALS (lpAssetIdStr,userAddressStr,poolAddressStr,lpDeltaAmount) = {
254254 let $t01038110503 = refreshPoolINTEGRALS(lpAssetIdStr, poolAddressStr, lpDeltaAmount)
255255 let wxPerLpIntegralNew = $t01038110503._1
256256 let poolIntegralSTATE = $t01038110503._2
257257 let poolDEBUG = $t01038110503._3
258258 let MULT3 = 1000
259259 let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr)
260260 let stakedByUser = readStaked(stakedByUserKEY)
261261 let wxToClaimUserKEY = keyWxToClaimUser(lpAssetIdStr, userAddressStr)
262262 let wxPerLpIntegralUserLastUpdHeightKEY = keyWxPerLpIntegralUserLastUpdHeight(lpAssetIdStr, userAddressStr)
263263 let wxPerLpIntegralUserLastKEY = keyWxPerLpIntegralUserLast(lpAssetIdStr, userAddressStr)
264264 let wxToClaimUser = getIntOrZero(this, wxToClaimUserKEY)
265265 let wxPerLpIntegralUserLastUpdHeightOrZero = getIntOrZero(this, wxPerLpIntegralUserLastUpdHeightKEY)
266266 let wxPerLpIntegralUserLast = calcWxPerLpIntegralUserLast(stakedByUser, wxPerLpIntegralUserLastUpdHeightOrZero, wxPerLpIntegralNew, wxPerLpIntegralUserLastKEY)
267267 let wxToClaimUserNew = (wxToClaimUser + fraction((wxPerLpIntegralNew - wxPerLpIntegralUserLast), stakedByUser, (MULT8 * MULT3)))
268268 let wxPerLpIntegralUserLastNew = wxPerLpIntegralNew
269269 let wxPerLpIntegralUserLastUpdHeightNew = height
270270 let debug = makeString([toString(wxToClaimUserNew), toString(wxPerLpIntegralUserLast), toString(stakedByUser), poolDEBUG, toString(height)], "::")
271271 $Tuple3(wxToClaimUserNew, (poolIntegralSTATE ++ [IntegerEntry(wxToClaimUserKEY, wxToClaimUserNew), IntegerEntry(wxPerLpIntegralUserLastUpdHeightKEY, wxPerLpIntegralUserLastUpdHeightNew), IntegerEntry(wxPerLpIntegralUserLastKEY, wxPerLpIntegralUserLastNew)]), debug)
272272 }
273273
274274
275275 @Callable(i)
276276 func constructor (factoryAddressStr) = if ((i.caller != this))
277277 then throw("not authorized")
278278 else [StringEntry(keyFactoryAddress(), factoryAddressStr)]
279279
280280
281281
282282 @Callable(i)
283283 func stake () = if ((size(i.payments) != 1))
284284 then throw("invalid payment - exact one payment must be attached")
285285 else {
286286 let pmt = i.payments[0]
287287 let lpAssetId = value(pmt.assetId)
288288 let lpAssetIdStr = toBase58String(lpAssetId)
289289 let amount = pmt.amount
290290 let poolAddressStr = valueOrErrorMessage(getString(factoryContract, keyFactoryLp2AssetsMapping(lpAssetIdStr)), ("unsupported lp asset " + lpAssetIdStr))
291291 let callerStr = toString(i.caller)
292292 let userAddressStr = if ((callerStr == poolAddressStr))
293293 then toString(i.originCaller)
294294 else callerStr
295295 let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr)
296296 let stakedTotalKEY = keyStakedTotal(lpAssetIdStr)
297297 let stakedByUser = readStaked(stakedByUserKEY)
298298 let stakedTotal = readStaked(stakedTotalKEY)
299299 let $t01304613163 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, amount)
300300 let wxToClaimUserNew = $t01304613163._1
301301 let integralSTATE = $t01304613163._2
302302 let debug = $t01304613163._3
303303 ([IntegerEntry(stakedByUserKEY, (stakedByUser + amount)), IntegerEntry(stakedTotalKEY, (stakedTotal + amount)), OperationHistoryEntry("stake", userAddressStr, lpAssetIdStr, amount, i.transactionId)] ++ integralSTATE)
304304 }
305305
306306
307307
308308 @Callable(i)
309309 func unstake (lpAssetIdStr,amount) = {
310310 let lpAssetId = fromBase58String(lpAssetIdStr)
311311 let poolAddressStr = valueOrErrorMessage(getString(factoryContract, keyFactoryLp2AssetsMapping(lpAssetIdStr)), ("unsupported lp asset " + lpAssetIdStr))
312312 let poolAddon = valueOrElse(getString(this, keyStablePoolAddonAddr()), poolAddressStr)
313313 let callerStr = toString(i.caller)
314- let userAddressStr = if (if ((callerStr == poolAddressStr))
315- then true
316- else (callerStr == poolAddon))
317- then toString(i.originCaller)
318- else callerStr
319- let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr)
320- let stakedTotalKEY = keyStakedTotal(lpAssetIdStr)
321- let stakedByUser = readStaked(stakedByUserKEY)
322- let stakedTotal = readStaked(stakedTotalKEY)
323- let $t01430014418 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, -(amount))
324- let wxToClaimUserNew = $t01430014418._1
325- let integralSTATE = $t01430014418._2
326- let debug = $t01430014418._3
327- if ((amount > stakedByUser))
328- then throw("passed amount is less then available")
329- else ([IntegerEntry(stakedByUserKEY, (stakedByUser - amount)), IntegerEntry(stakedTotalKEY, (stakedTotal - amount)), ScriptTransfer(i.caller, amount, lpAssetId), OperationHistoryEntry("unstake", userAddressStr, lpAssetIdStr, amount, i.transactionId)] ++ integralSTATE)
314+ if (true)
315+ then throw(("poolAddon = " + poolAddon))
316+ else {
317+ let userAddressStr = if (if ((callerStr == poolAddressStr))
318+ then true
319+ else (callerStr == poolAddon))
320+ then toString(i.originCaller)
321+ else callerStr
322+ let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr)
323+ let stakedTotalKEY = keyStakedTotal(lpAssetIdStr)
324+ let stakedByUser = readStaked(stakedByUserKEY)
325+ let stakedTotal = readStaked(stakedTotalKEY)
326+ let $t01435514473 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, -(amount))
327+ let wxToClaimUserNew = $t01435514473._1
328+ let integralSTATE = $t01435514473._2
329+ let debug = $t01435514473._3
330+ if ((amount > stakedByUser))
331+ then throw("passed amount is less then available")
332+ else ([IntegerEntry(stakedByUserKEY, (stakedByUser - amount)), IntegerEntry(stakedTotalKEY, (stakedTotal - amount)), ScriptTransfer(i.caller, amount, lpAssetId), OperationHistoryEntry("unstake", userAddressStr, lpAssetIdStr, amount, i.transactionId)] ++ integralSTATE)
333+ }
330334 }
331335
332336
333337
334338 @Callable(i)
335339 func claimWx (lpAssetIdStr) = {
336340 let userAddress = i.caller
337341 let userAddressStr = toString(i.caller)
338342 let poolAddressStr = getStringByAddressOrFail(factoryContract, keyFactoryLpAssetToPoolContractAddress(lpAssetIdStr))
339343 let claimedByUserKEY = keyClaimedByUser(lpAssetIdStr, userAddressStr)
340344 let claimedTotalKEY = keyClaimedTotal(lpAssetIdStr)
341345 let claimedByUserMinRewardKEY = keyClaimedByUserMinReward(lpAssetIdStr, userAddressStr)
342346 let claimedByUserBoostRewardKEY = keyClaimedByUserBoostReward(lpAssetIdStr, userAddressStr)
343347 let claimedByUser = getIntOrZero(this, claimedByUserKEY)
344348 let claimedByUserMinReward = getIntOrZero(this, claimedByUserMinRewardKEY)
345349 let claimedByUserBoostReward = getIntOrZero(this, claimedByUserBoostRewardKEY)
346350 let claimedTotal = getIntOrZero(this, claimedTotalKEY)
347- let $t01561015722 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, 0)
348- let wxToClaimUserNew = $t01561015722._1
349- let integralSTATE = $t01561015722._2
350- let debug = $t01561015722._3
351+ let $t01566515777 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, 0)
352+ let wxToClaimUserNew = $t01566515777._1
353+ let integralSTATE = $t01566515777._2
354+ let debug = $t01566515777._3
351355 let availableToClaim = (wxToClaimUserNew - claimedByUser)
352356 if ((0 >= availableToClaim))
353357 then throw("nothing to claim")
354358 else {
355359 let wxAmountBoostTotal = asInt(asAnyList(invoke(boostingContract, "claimWxBoost", [lpAssetIdStr, userAddressStr], nil))[0])
356360 let minRewardPart = availableToClaim
357361 let boostRewardPart = min([(minRewardPart * 2), wxAmountBoostTotal])
358362 let wxAssetId = asByteVector(asAnyList(invoke(emissionContract, "emit", [minRewardPart], nil))[0])
359363 let emitBoost = asAnyList(invoke(emissionContract, "emit", [boostRewardPart], nil))
360364 if ((emitBoost == emitBoost))
361365 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)]
362366 else throw("Strict value is not equal to itself.")
363367 }
364368 }
365369
366370
367371
368372 @Callable(i)
369373 func claimWxREADONLY (lpAssetIdStr,userAddressStr) = {
370374 let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr)
371375 let stakedTotalKEY = keyStakedTotal(lpAssetIdStr)
372376 let claimedByUserKEY = keyClaimedByUser(lpAssetIdStr, userAddressStr)
373377 let stakedByUser = readStaked(stakedByUserKEY)
374378 let stakedTotal = readStaked(stakedTotalKEY)
375379 let claimedByUser = getIntOrZero(this, claimedByUserKEY)
376380 let poolAddressStr = getStringByAddressOrFail(factoryContract, keyFactoryLpAssetToPoolContractAddress(lpAssetIdStr))
377381 let poolWeight = getIntegerValue(factoryContract, keyFactoryPoolWeight(poolAddressStr))
378382 let wxEmissionPerBlock = getIntOrFail(emissionContract, keyEmissionRatePerBlockCurrent())
379383 let emissionStartBlock = getIntOrFail(emissionContract, keyEmissionStartBlock())
380384 let passedBlocks = if ((emissionStartBlock > height))
381385 then 0
382386 else (height - emissionStartBlock)
383387 let poolWxEmission = fraction((wxEmissionPerBlock * passedBlocks), poolWeight, POOLWEIGHTMULT)
384388 let userWxReward = fraction(poolWxEmission, stakedByUser, stakedTotal)
385- let $t01792218034 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, 0)
386- let wxToClaimUserNew = $t01792218034._1
387- let integralSTATE = $t01792218034._2
388- let debug = $t01792218034._3
389+ let $t01797718089 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, 0)
390+ let wxToClaimUserNew = $t01797718089._1
391+ let integralSTATE = $t01797718089._2
392+ let debug = $t01797718089._3
389393 let availableToClaim = (wxToClaimUserNew - claimedByUser)
390394 let boostInvResult = asAnyList(invoke(boostingContract, "claimWxBoostREADONLY", [lpAssetIdStr, userAddressStr], nil))
391395 let wxAmountBoostTotal = asInt(boostInvResult[0])
392396 let boostDebug = asString(boostInvResult[1])
393397 let minRewardPart = availableToClaim
394398 let boostRewardPart = min([(minRewardPart * 2), wxAmountBoostTotal])
395399 let totalReward = (minRewardPart + boostRewardPart)
396400 $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))
397401 }
398402
399403
400404
401405 @Callable(i)
402406 func onModifyWeight (lpAssetIdStr,poolAddressStr) = if ((i.caller != factoryContract))
403407 then throw("permissions denied")
404408 else {
405- let $t01891419024 = refreshPoolINTEGRALS(lpAssetIdStr, poolAddressStr, 0)
406- let wxPerLpIntegralNew = $t01891419024._1
407- let poolIntegralSTATE = $t01891419024._2
408- let poolDEBUG = $t01891419024._3
409+ let $t01896919079 = refreshPoolINTEGRALS(lpAssetIdStr, poolAddressStr, 0)
410+ let wxPerLpIntegralNew = $t01896919079._1
411+ let poolIntegralSTATE = $t01896919079._2
412+ let poolDEBUG = $t01896919079._3
409413 poolIntegralSTATE
410414 }
411415
412416

github/deemru/w8io/026f985 
64.99 ms