tx · 7oskVMXXvLPLv1vqySq2iPhJG3B6FfXhYCezotG3DofP

3N9Q1fto4gNiBzBhunuF57xU7chekeJBzJb:  -0.01000000 Waves

2021.11.24 04:13 [1804445] smart account 3N9Q1fto4gNiBzBhunuF57xU7chekeJBzJb > SELF 0.00000000 Waves

{ "type": 13, "id": "7oskVMXXvLPLv1vqySq2iPhJG3B6FfXhYCezotG3DofP", "fee": 1000000, "feeAssetId": null, "timestamp": 1637716459093, "version": 1, "sender": "3N9Q1fto4gNiBzBhunuF57xU7chekeJBzJb", "senderPublicKey": "5LCbyfeLnA6WFFq4M6L7AEzy8ktT8sL9A5JXoyuaxCCJ", "proofs": [ "5A32qzVjNwBsearve7H7dkAKyZQisF8XgkcKcbKbQPBH3YNNnUk6xgcNYraJTnreiQMog78f9PGebjACeThLRU4c" ], "script": "base64:AAIFAAAAAAAAABoIAhIDCgEIEgASBAoCCAESAwoBCBIECgIICAAAAD4AAAAABlNDQUxFOAAAAAAAAAAACAAAAAAFTVVMVDgAAAAAAAX14QAAAAAAB1NDQUxFMTgAAAAAAAAAABIAAAAABk1VTFQxOAkAATYAAAABAA3gtrOnZAAAAAAAAANTRVACAAAAAl9fAAAAAA5QT09MV0VJR0hUTVVMVAUAAAAFTVVMVDgBAAAACWFzQW55TGlzdAAAAAEAAAADdmFsBAAAAAckbWF0Y2gwBQAAAAN2YWwDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAACUxpc3RbQW55XQQAAAAKdmFsQW55THlzdAUAAAAHJG1hdGNoMAUAAAAKdmFsQW55THlzdAkAAAIAAAABAgAAABtmYWlsIHRvIGNhc3QgaW50byBMaXN0W0FueV0BAAAADGFzQnl0ZVZlY3RvcgAAAAEAAAADdmFsBAAAAAckbWF0Y2gwBQAAAAN2YWwDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAACkJ5dGVWZWN0b3IEAAAABnZhbEJpbgUAAAAHJG1hdGNoMAUAAAAGdmFsQmluCQAAAgAAAAECAAAAFWZhaWwgdG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EwAAAACAgAAAAolcyVzJWQlZCVzCQAETAAAAAIFAAAADGxwQXNzZXRJZFN0cgkABEwAAAACBQAAAA51c2VyQWRkcmVzc1N0cgkABEwAAAACCQABpAAAAAEFAAAADHVzZXJXeFJld2FyZAkABEwAAAACCQABpAAAAAEFAAAADWNsYWltZWRCeVVzZXIJAARMAAAAAgUAAAAFZGVidWcFAAAAA25pbAUAAAADU0VQAAAAAFQyXK4=", "chainId": 84, "height": 1804445, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8YsUZh4c4Y9TSzSjEZ6ZUoc2kjewLDmcucJvyd2ehK8H Next: 5xNBsHSf5W9QoN4KjxcnY2r5FHEWEDNJhvu9VHxoV5qd Diff:
OldNewDifferences
1212 let SEP = "__"
1313
1414 let POOLWEIGHTMULT = MULT8
15+
16+func asAnyList (val) = match val {
17+ case valAnyLyst: List[Any] =>
18+ valAnyLyst
19+ case _ =>
20+ throw("fail to cast into List[Any]")
21+}
22+
23+
24+func asByteVector (val) = match val {
25+ case valBin: ByteVector =>
26+ valBin
27+ case _ =>
28+ throw("fail to cast into Int")
29+}
30+
1531
1632 func getStringOrFail (key) = valueOrErrorMessage(getString(key), (("mandatory this." + key) + " is not defined"))
1733
233249 let stakedTotalKEY = keyStakedTotal(lpAssetIdStr)
234250 let stakedByUser = readStaked(stakedByUserKEY)
235251 let stakedTotal = readStaked(stakedTotalKEY)
236- let $t01127211389 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, amount)
237- let wxToClaimUserNew = $t01127211389._1
238- let integralSTATE = $t01127211389._2
239- let debug = $t01127211389._3
252+ let $t01155411671 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, amount)
253+ let wxToClaimUserNew = $t01155411671._1
254+ let integralSTATE = $t01155411671._2
255+ let debug = $t01155411671._3
240256 ([IntegerEntry(stakedByUserKEY, (stakedByUser + amount)), IntegerEntry(stakedTotalKEY, (stakedTotal + amount)), OperationHistoryEntry("stake", userAddressStr, lpAssetIdStr, amount, i.transactionId)] ++ integralSTATE)
241257 }
242258
251267 let stakedTotalKEY = keyStakedTotal(lpAssetIdStr)
252268 let stakedByUser = readStaked(stakedByUserKEY)
253269 let stakedTotal = readStaked(stakedTotalKEY)
254- let $t01220612324 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, -(amount))
255- let wxToClaimUserNew = $t01220612324._1
256- let integralSTATE = $t01220612324._2
257- let debug = $t01220612324._3
270+ let $t01248812606 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, -(amount))
271+ let wxToClaimUserNew = $t01248812606._1
272+ let integralSTATE = $t01248812606._2
273+ let debug = $t01248812606._3
258274 if ((amount > stakedByUser))
259275 then throw("passed amount is less then available")
260276 else ([IntegerEntry(stakedByUserKEY, (stakedByUser - amount)), IntegerEntry(stakedTotalKEY, (stakedTotal - amount)), ScriptTransfer(i.caller, amount, lpAssetId), OperationHistoryEntry("unstake", userAddressStr, lpAssetIdStr, amount, i.transactionId)] ++ integralSTATE)
271287 let claimedTotalKEY = keyClaimedTotal(lpAssetIdStr)
272288 let claimedByUser = getIntOrZero(this, claimedByUserKEY)
273289 let claimedTotal = getIntOrZero(this, claimedTotalKEY)
274- let $t01317613288 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, 0)
275- let wxToClaimUserNew = $t01317613288._1
276- let integralSTATE = $t01317613288._2
277- let debug = $t01317613288._3
290+ let $t01345813570 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, 0)
291+ let wxToClaimUserNew = $t01345813570._1
292+ let integralSTATE = $t01345813570._2
293+ let debug = $t01345813570._3
278294 let availableToClaim = (wxToClaimUserNew - claimedByUser)
279295 if ((0 >= availableToClaim))
280296 then throw("nothing to claim")
281297 else {
282- let wxAssetId = if ($isInstanceOf(invoke(emissionContract, "emit", [availableToClaim], nil), "ByteVector"))
283- then invoke(emissionContract, "emit", [availableToClaim], nil)
284- else throw("Couldn't cast Any to ByteVector")
298+ let wxAssetId = asByteVector(asAnyList(invoke(emissionContract, "emit", [availableToClaim], nil))[0])
285299 [IntegerEntry(claimedByUserKEY, (claimedByUser + availableToClaim)), IntegerEntry(claimedTotalKEY, (claimedTotal + availableToClaim)), ScriptTransfer(userAddress, availableToClaim, wxAssetId), OperationHistoryEntry("claim", userAddressStr, lpAssetIdStr, availableToClaim, i.transactionId)]
286300 }
287301 }
306320 else (height - emissionStartBlock)
307321 let poolWxEmission = fraction((wxEmissionPerBlock * passedBlocks), poolWeight, poolWeightMult)
308322 let userWxReward = fraction(poolWxEmission, stakedByUser, stakedTotal)
309- let $t01494715059 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, 0)
310- let wxToClaimUserNew = $t01494715059._1
311- let integralSTATE = $t01494715059._2
312- let debug = $t01494715059._3
323+ let $t01523915351 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, 0)
324+ let wxToClaimUserNew = $t01523915351._1
325+ let integralSTATE = $t01523915351._2
326+ let debug = $t01523915351._3
313327 $Tuple2(nil, makeString(["%s%s%d%d%s", lpAssetIdStr, userAddressStr, toString(userWxReward), toString(claimedByUser), debug], SEP))
314328 }
315329
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
15+
16+func asAnyList (val) = match val {
17+ case valAnyLyst: List[Any] =>
18+ valAnyLyst
19+ case _ =>
20+ throw("fail to cast into List[Any]")
21+}
22+
23+
24+func asByteVector (val) = match val {
25+ case valBin: ByteVector =>
26+ valBin
27+ case _ =>
28+ throw("fail to cast into Int")
29+}
30+
1531
1632 func getStringOrFail (key) = valueOrErrorMessage(getString(key), (("mandatory this." + key) + " is not defined"))
1733
1834
1935 func getStringByAddressOrFail (address,key) = valueOrErrorMessage(getString(address, key), (((("mandatory " + toString(address)) + ".") + key) + " is not defined"))
2036
2137
2238 func getIntOrZero (address,key) = valueOrElse(getInteger(address, key), 0)
2339
2440
2541 func getIntOrDefault (address,key,defaultVal) = valueOrElse(getInteger(address, key), defaultVal)
2642
2743
2844 func getIntOrFail (address,key) = valueOrErrorMessage(getInteger(address, key), (("mandatory this." + key) + " is not defined"))
2945
3046
3147 func keyFactoryAddress () = "%s%s__config__factoryAddress"
3248
3349
3450 let IdxFactoryCfgStakingDapp = 1
3551
3652 let IdxFactoryCfgBoostingDapp = 2
3753
3854 let IdxFactoryCfgIdoDapp = 3
3955
4056 let IdxFactoryCfgTeamDapp = 4
4157
4258 let IdxFactoryCfgEmissionDapp = 5
4359
4460 let IdxFactoryCfgRestDapp = 6
4561
4662 let IdxFactoryCfgSlippageDapp = 7
4763
4864 func keyFactoryCfg () = "%s__factoryConfig"
4965
5066
5167 func keyFactoryLp2AssetsMapping (lpAssetStr) = makeString(["%s%s%s", lpAssetStr, "mappings__lpAsset2PoolContract"], SEP)
5268
5369
5470 func keyFactoryLpList () = "%s__lpTokensList"
5571
5672
5773 func keyFactoryLpAssetToPoolContractAddress (lpAssetStr) = makeString(["%s%s%s", lpAssetStr, "mappings__lpAsset2PoolContract"], SEP)
5874
5975
6076 func keyFactoryPoolWeight (contractAddress) = makeString(["%s%s", "poolWeight", contractAddress], SEP)
6177
6278
6379 func readFactoryAddressOrFail () = addressFromStringValue(getStringOrFail(keyFactoryAddress()))
6480
6581
6682 func readLpList () = split(valueOrElse(getString(readFactoryAddressOrFail(), keyFactoryLpList()), ""), SEP)
6783
6884
6985 func readFactoryCfgOrFail (factory) = split(getStringByAddressOrFail(factory, keyFactoryCfg()), SEP)
7086
7187
7288 func getBoostingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgBoostingDapp])
7389
7490
7591 func getEmissionAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgEmissionDapp])
7692
7793
7894 func getStakingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgStakingDapp])
7995
8096
8197 func keyEmissionRatePerBlockCurrent () = "%s%s__ratePerBlock__current"
8298
8399
84100 func keyEmissionRatePerBlockMaxCurrent () = "%s%s__ratePerBlockMax__current"
85101
86102
87103 func keyEmissionStartBlock () = "%s%s__emission__startBlock"
88104
89105
90106 func keyEmissionDurationInBlocks () = "%s%s__emission__duration"
91107
92108
93109 func keyEmissionEndBlock () = "%s%s__emission__endBlock"
94110
95111
96112 func keyStakedByUser (userAddressStr,lpAssetIdStr) = makeString(["%s%s%s__staked", userAddressStr, lpAssetIdStr], SEP)
97113
98114
99115 func keyStakedTotal (lpAssetIdStr) = ("%s%s%s__staked__total__" + lpAssetIdStr)
100116
101117
102118 func keyClaimedByUser (userAddressStr,lpAssetIdStr) = makeString(["%s%s%s__claimed", userAddressStr, lpAssetIdStr], SEP)
103119
104120
105121 func keyClaimedTotal (lpAssetIdStr) = makeString(["%s%s%s__claimed", "total", lpAssetIdStr], SEP)
106122
107123
108124 func readStaked (key) = valueOrElse(getInteger(this, key), 0)
109125
110126
111127 func keyLastTotalLpBalance (lpAssetId) = makeString(["%s%s%s", lpAssetId, "total", "bal"], SEP)
112128
113129
114130 func keyLastUserLpBalance (lpAssetId,userAddress) = makeString(["%s%s%s", lpAssetId, userAddress, "bal"], SEP)
115131
116132
117133 func keyTotalLpBalanceIntegral (lpAssetId) = makeString(["%s%s%s", lpAssetId, "total", "balINT"], SEP)
118134
119135
120136 func keyUserLpBalanceIntegral (lpAssetId,userAddress) = makeString(["%s%s%s", lpAssetId, userAddress, "balINT"], SEP)
121137
122138
123139 func keyTotalLpBalanceIntegralLastUpdHeight (lpAssetId) = makeString(["%s%s%s", lpAssetId, "total", "lastUpd"], SEP)
124140
125141
126142 func keyUserLpBalanceIntegralLastUpdHeight (lpAssetId,userAddress) = makeString(["%s%s%s", lpAssetId, userAddress, "lastUpd"], SEP)
127143
128144
129145 func keyWxPerLpIntegral (lpAssetId) = makeString(["%s%s%s%s", lpAssetId, "common", "lpInt"], SEP)
130146
131147
132148 func keyWxPerLpIntegralLastUpdHeight (lpAssetId) = makeString(["%s%s%s%s", lpAssetId, "common", "lpIntH"], SEP)
133149
134150
135151 func keyWxToClaimUser (lpAssetId,userAddress) = makeString(["%s%s%s%s", lpAssetId, userAddress, "lpInt"], SEP)
136152
137153
138154 func keyWxPerLpIntegralUserLastUpdHeight (lpAssetId,userAddress) = makeString(["%s%s%s%s", lpAssetId, userAddress, "lpIntH"], SEP)
139155
140156
141157 func keyWxPerLp (lpAssetId) = makeString(["%s", lpAssetId, "wxPerLp"], SEP)
142158
143159
144160 func keyWxPerLpIntegralUserLast (lpAssetId,userAddress) = makeString(["%s%s%s%s", lpAssetId, userAddress, "uIntL"], SEP)
145161
146162
147163 func keyOperationHistoryRecord (type,userAddress,txId58) = makeString(["%s%s%s%s__history", type, userAddress, txId58], SEP)
148164
149165
150166 func formatHistoryRecord (userAddress,lpAssetId,type,amount) = makeString(["%s%s%s%d%d%d", userAddress, lpAssetId, type, toString(height), toString(lastBlock.timestamp), toString(amount)], SEP)
151167
152168
153169 func OperationHistoryEntry (type,userAddress,lpAssetId,amount,txId) = StringEntry(keyOperationHistoryRecord(type, userAddress, toBase58String(txId)), formatHistoryRecord(userAddress, lpAssetId, type, amount))
154170
155171
156172 let factoryContract = readFactoryAddressOrFail()
157173
158174 let factoryCfg = readFactoryCfgOrFail(factoryContract)
159175
160176 let emissionContract = getEmissionAddressOrFail(factoryCfg)
161177
162178 func calcWxPerLpIntegralUserLast (stakedByUser,wxPerLpIntegralUserLastUpdHeightOrZero,wxPerLpIntegralNew,wxPerLpIntegralUserLastKEY) = if (if ((wxPerLpIntegralUserLastUpdHeightOrZero == 0))
163179 then (stakedByUser > 0)
164180 else false)
165181 then 0
166182 else if ((stakedByUser == 0))
167183 then wxPerLpIntegralNew
168184 else if (if ((wxPerLpIntegralUserLastUpdHeightOrZero > 0))
169185 then (stakedByUser > 0)
170186 else false)
171187 then getIntOrFail(this, wxPerLpIntegralUserLastKEY)
172188 else throw("calcWxPerLpIntegralUserLast: unexpected state")
173189
174190
175191 func refreshINTEGRALS (lpAssetIdStr,userAddressStr,poolAddressStr,lpDeltaAmount) = {
176192 let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr)
177193 let stakedTotalKEY = keyStakedTotal(lpAssetIdStr)
178194 let stakedByUser = readStaked(stakedByUserKEY)
179195 let stakedTotal = readStaked(stakedTotalKEY)
180196 let poolWeight = getIntegerValue(factoryContract, keyFactoryPoolWeight(poolAddressStr))
181197 let emissionStartBlock = getIntOrFail(emissionContract, keyEmissionStartBlock())
182198 let wxEmissionPerBlock = getIntOrFail(emissionContract, keyEmissionRatePerBlockCurrent())
183199 let poolWxEmissionPerBlock = fraction(wxEmissionPerBlock, poolWeight, POOLWEIGHTMULT)
184200 let wxPerLpIntegralKEY = keyWxPerLpIntegral(lpAssetIdStr)
185201 let wxPerLpIntegralLastUpdHeightKEY = keyWxPerLpIntegralLastUpdHeight(lpAssetIdStr)
186202 let wxToClaimUserKEY = keyWxToClaimUser(lpAssetIdStr, userAddressStr)
187203 let wxPerLpIntegralUserLastUpdHeightKEY = keyWxPerLpIntegralUserLastUpdHeight(lpAssetIdStr, userAddressStr)
188204 let wxPerLpKEY = keyWxPerLp(lpAssetIdStr)
189205 let wxPerLpIntegralUserLastKEY = keyWxPerLpIntegralUserLast(lpAssetIdStr, userAddressStr)
190206 let wxPerLpIntegralLastUpdHeight = getIntOrDefault(this, wxPerLpIntegralLastUpdHeightKEY, emissionStartBlock)
191207 let wxPerLpIntegral = getIntOrZero(this, wxPerLpIntegralKEY)
192208 let wxToClaimUser = getIntOrZero(this, wxToClaimUserKEY)
193209 let wxPerLpIntegralUserLastUpdHeightOrZero = getIntOrZero(this, wxPerLpIntegralUserLastUpdHeightKEY)
194210 let wxPerLpOrZero = getIntOrZero(this, wxPerLpKEY)
195211 let dh = max([(height - wxPerLpIntegralLastUpdHeight), 0])
196212 let wxPerLp = if ((wxPerLpOrZero != 0))
197213 then wxPerLpOrZero
198214 else fraction(poolWxEmissionPerBlock, MULT8, stakedTotal)
199215 let stakedTotalNew = (stakedTotal + lpDeltaAmount)
200216 let wxPerLpIntegralNew = (wxPerLpIntegral + (wxPerLp * dh))
201217 let wxPerLpIntegralUserLast = calcWxPerLpIntegralUserLast(stakedByUser, wxPerLpIntegralUserLastUpdHeightOrZero, wxPerLpIntegralNew, wxPerLpIntegralUserLastKEY)
202218 let wxToClaimUserNew = (wxToClaimUser + fraction((wxPerLpIntegralNew - wxPerLpIntegralUserLast), stakedByUser, MULT8))
203219 let wxPerLpIntegralUserLastNew = wxPerLpIntegralNew
204220 let wxPerLpNew = (poolWxEmissionPerBlock / stakedTotalNew)
205221 let wxPerLpIntegralLastUpdHeightNew = height
206222 let wxPerLpIntegralUserLastUpdHeightNew = height
207223 let debug = makeString([toString(wxToClaimUserNew), toString(wxPerLpIntegralNew), toString(wxPerLpIntegralUserLast), toString(stakedByUser), toString(dh), toString(wxPerLp), toString(stakedTotal), toString(poolWxEmissionPerBlock), toString(wxEmissionPerBlock), toString(poolWeight), toString(height)], "::")
208224 $Tuple3(wxToClaimUserNew, [IntegerEntry(wxPerLpIntegralKEY, wxPerLpIntegralNew), IntegerEntry(wxPerLpIntegralLastUpdHeightKEY, wxPerLpIntegralLastUpdHeightNew), IntegerEntry(wxToClaimUserKEY, wxToClaimUserNew), IntegerEntry(wxPerLpIntegralUserLastUpdHeightKEY, wxPerLpIntegralUserLastUpdHeightNew), IntegerEntry(wxPerLpKEY, wxPerLpNew), IntegerEntry(wxPerLpIntegralUserLastKEY, wxPerLpIntegralUserLastNew)], debug)
209225 }
210226
211227
212228 @Callable(i)
213229 func constructor (factoryAddressStr) = if ((i.caller != this))
214230 then throw("not authorized")
215231 else [StringEntry(keyFactoryAddress(), factoryAddressStr)]
216232
217233
218234
219235 @Callable(i)
220236 func stake () = if ((size(i.payments) != 1))
221237 then throw("invalid payment - exact one payment must be attached")
222238 else {
223239 let pmt = i.payments[0]
224240 let lpAssetId = value(pmt.assetId)
225241 let lpAssetIdStr = toBase58String(lpAssetId)
226242 let amount = pmt.amount
227243 let poolAddressStr = valueOrErrorMessage(getString(factoryContract, keyFactoryLp2AssetsMapping(lpAssetIdStr)), ("unsupported lp asset " + lpAssetIdStr))
228244 let callerStr = toString(i.caller)
229245 let userAddressStr = if ((callerStr == poolAddressStr))
230246 then toString(i.originCaller)
231247 else callerStr
232248 let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr)
233249 let stakedTotalKEY = keyStakedTotal(lpAssetIdStr)
234250 let stakedByUser = readStaked(stakedByUserKEY)
235251 let stakedTotal = readStaked(stakedTotalKEY)
236- let $t01127211389 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, amount)
237- let wxToClaimUserNew = $t01127211389._1
238- let integralSTATE = $t01127211389._2
239- let debug = $t01127211389._3
252+ let $t01155411671 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, amount)
253+ let wxToClaimUserNew = $t01155411671._1
254+ let integralSTATE = $t01155411671._2
255+ let debug = $t01155411671._3
240256 ([IntegerEntry(stakedByUserKEY, (stakedByUser + amount)), IntegerEntry(stakedTotalKEY, (stakedTotal + amount)), OperationHistoryEntry("stake", userAddressStr, lpAssetIdStr, amount, i.transactionId)] ++ integralSTATE)
241257 }
242258
243259
244260
245261 @Callable(i)
246262 func unstake (lpAssetIdStr,amount) = {
247263 let userAddressStr = toString(i.caller)
248264 let lpAssetId = fromBase58String(lpAssetIdStr)
249265 let poolAddressStr = valueOrErrorMessage(getString(factoryContract, keyFactoryLp2AssetsMapping(lpAssetIdStr)), ("unsupported lp asset " + lpAssetIdStr))
250266 let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr)
251267 let stakedTotalKEY = keyStakedTotal(lpAssetIdStr)
252268 let stakedByUser = readStaked(stakedByUserKEY)
253269 let stakedTotal = readStaked(stakedTotalKEY)
254- let $t01220612324 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, -(amount))
255- let wxToClaimUserNew = $t01220612324._1
256- let integralSTATE = $t01220612324._2
257- let debug = $t01220612324._3
270+ let $t01248812606 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, -(amount))
271+ let wxToClaimUserNew = $t01248812606._1
272+ let integralSTATE = $t01248812606._2
273+ let debug = $t01248812606._3
258274 if ((amount > stakedByUser))
259275 then throw("passed amount is less then available")
260276 else ([IntegerEntry(stakedByUserKEY, (stakedByUser - amount)), IntegerEntry(stakedTotalKEY, (stakedTotal - amount)), ScriptTransfer(i.caller, amount, lpAssetId), OperationHistoryEntry("unstake", userAddressStr, lpAssetIdStr, amount, i.transactionId)] ++ integralSTATE)
261277 }
262278
263279
264280
265281 @Callable(i)
266282 func claimWx (lpAssetIdStr) = {
267283 let userAddress = i.caller
268284 let userAddressStr = toString(i.caller)
269285 let poolAddressStr = getStringByAddressOrFail(factoryContract, keyFactoryLpAssetToPoolContractAddress(lpAssetIdStr))
270286 let claimedByUserKEY = keyClaimedByUser(lpAssetIdStr, userAddressStr)
271287 let claimedTotalKEY = keyClaimedTotal(lpAssetIdStr)
272288 let claimedByUser = getIntOrZero(this, claimedByUserKEY)
273289 let claimedTotal = getIntOrZero(this, claimedTotalKEY)
274- let $t01317613288 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, 0)
275- let wxToClaimUserNew = $t01317613288._1
276- let integralSTATE = $t01317613288._2
277- let debug = $t01317613288._3
290+ let $t01345813570 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, 0)
291+ let wxToClaimUserNew = $t01345813570._1
292+ let integralSTATE = $t01345813570._2
293+ let debug = $t01345813570._3
278294 let availableToClaim = (wxToClaimUserNew - claimedByUser)
279295 if ((0 >= availableToClaim))
280296 then throw("nothing to claim")
281297 else {
282- let wxAssetId = if ($isInstanceOf(invoke(emissionContract, "emit", [availableToClaim], nil), "ByteVector"))
283- then invoke(emissionContract, "emit", [availableToClaim], nil)
284- else throw("Couldn't cast Any to ByteVector")
298+ let wxAssetId = asByteVector(asAnyList(invoke(emissionContract, "emit", [availableToClaim], nil))[0])
285299 [IntegerEntry(claimedByUserKEY, (claimedByUser + availableToClaim)), IntegerEntry(claimedTotalKEY, (claimedTotal + availableToClaim)), ScriptTransfer(userAddress, availableToClaim, wxAssetId), OperationHistoryEntry("claim", userAddressStr, lpAssetIdStr, availableToClaim, i.transactionId)]
286300 }
287301 }
288302
289303
290304
291305 @Callable(i)
292306 func claimWxREADONLY (lpAssetIdStr,userAddressStr) = {
293307 let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr)
294308 let stakedTotalKEY = keyStakedTotal(lpAssetIdStr)
295309 let claimedByUserKEY = keyClaimedByUser(lpAssetIdStr, userAddressStr)
296310 let stakedByUser = readStaked(stakedByUserKEY)
297311 let stakedTotal = readStaked(stakedTotalKEY)
298312 let claimedByUser = getIntOrZero(this, claimedByUserKEY)
299313 let poolAddressStr = getStringByAddressOrFail(factoryContract, keyFactoryLpAssetToPoolContractAddress(lpAssetIdStr))
300314 let poolWeightMult = MULT8
301315 let poolWeight = getIntegerValue(factoryContract, keyFactoryPoolWeight(poolAddressStr))
302316 let wxEmissionPerBlock = getIntOrFail(emissionContract, keyEmissionRatePerBlockCurrent())
303317 let emissionStartBlock = getIntOrFail(emissionContract, keyEmissionStartBlock())
304318 let passedBlocks = if ((emissionStartBlock > height))
305319 then 0
306320 else (height - emissionStartBlock)
307321 let poolWxEmission = fraction((wxEmissionPerBlock * passedBlocks), poolWeight, poolWeightMult)
308322 let userWxReward = fraction(poolWxEmission, stakedByUser, stakedTotal)
309- let $t01494715059 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, 0)
310- let wxToClaimUserNew = $t01494715059._1
311- let integralSTATE = $t01494715059._2
312- let debug = $t01494715059._3
323+ let $t01523915351 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, 0)
324+ let wxToClaimUserNew = $t01523915351._1
325+ let integralSTATE = $t01523915351._2
326+ let debug = $t01523915351._3
313327 $Tuple2(nil, makeString(["%s%s%d%d%s", lpAssetIdStr, userAddressStr, toString(userWxReward), toString(claimedByUser), debug], SEP))
314328 }
315329
316330

github/deemru/w8io/026f985 
45.72 ms