tx · B4JoVjz2hkN18EtBsEns8Lfj9Y5EzdHXY63Sq4enN4q2

3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz:  -0.02200000 Waves

2023.01.24 13:55 [2418951] smart account 3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz > SELF 0.00000000 Waves

{ "type": 13, "id": "B4JoVjz2hkN18EtBsEns8Lfj9Y5EzdHXY63Sq4enN4q2", "fee": 2200000, "feeAssetId": null, "timestamp": 1674557731979, "version": 1, "sender": "3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz", "senderPublicKey": "D28XoueZWsMfm8Y5pa6C5ZFuYoWgre2Wm8tzJANJgMnq", "proofs": [ "gdb298PntVvfsbbu2tNS8JqSjvs9KTAMy97VxE5p3TQoYS18gD5LYBN9mDyV8KA7nZNZkjeUhKbaZ7z2Y1XnefD" ], "script": "base64:BgL1HggCEgMKAQgSAwoBCBIDCgEIEgASABIECgIIARIDCgEIEgQKAggIEgYKBAEYCBgSBAoCGAgSBAoCCAgSAwoBCBIECgIICCIGU0NBTEU4IgVNVUxUOCIHU0NBTEUxOCIGTVVMVDE4IgNTRVAiDlBPT0xXRUlHSFRNVUxUIgp6ZXJvQmlnSW50IglvbmVCaWdJbnQiCWFzQW55TGlzdCIDdmFsIgckbWF0Y2gwIgp2YWxBbnlMeXN0IgVhc0ludCIGdmFsSW50Ighhc1N0cmluZyIGdmFsU3RyIgxhc0J5dGVWZWN0b3IiBnZhbEJpbiIPZ2V0U3RyaW5nT3JGYWlsIgdhZGRyZXNzIgNrZXkiGGdldFN0cmluZ0J5QWRkcmVzc09yRmFpbCIMZ2V0SW50T3JaZXJvIg9nZXRJbnRPckRlZmF1bHQiCmRlZmF1bHRWYWwiDGdldEludE9yRmFpbCIZZ2V0QmlnSW50RnJvbVN0cmluZ09yWmVybyIcZ2V0QmlnSW50RnJvbVN0cmluZ09yRGVmYXVsdCIBcyIFdG9YMTgiB29yaWdWYWwiDW9yaWdTY2Fs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", "chainId": 84, "height": 2418951, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8KcTorLHmiqeazT8V1X7DNSSqMo7PrMWHbU6zgavxKQj Next: 8ywZkHJH22jUj9X8d67V77XCQJqNjQVXAT1wDGmWeA6k Diff:
OldNewDifferences
521521 else false)
522522 then deleteNodeActions(listName, userAddressStr)
523523 else nil
524- let claimedByUser = getBigIntFromStringOrZero(this, keyClaimedByUser(lpAssetIdStr, userAddressStr))
524+ let claimedByUserMinReward = getBigIntFromStringOrZero(this, keyClaimedByUserMinReward(lpAssetIdStr, userAddressStr))
525525 let poolAddress = getStringByAddressOrFail(factoryContract, keyFactoryLpAssetToPoolContractAddress(lpAssetIdStr))
526526 let wxToClaimUserNew = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddress, 0)._1
527- let availableToClaim = (wxToClaimUserNew - claimedByUser)
527+ let availableToClaim = (wxToClaimUserNew - claimedByUserMinReward)
528528 let r = if ((availableToClaim > zeroBigInt))
529529 then invoke(this, "claimWxINTERNAL", [lpAssetIdStr, userAddressStr], nil)
530530 else unit
561561 let claimedByUserMinReward = getBigIntFromStringOrZero(this, claimedByUserMinRewardKEY)
562562 let claimedByUserBoostReward = getBigIntFromStringOrZero(this, claimedByUserBoostRewardKEY)
563563 let claimedTotal = getBigIntFromStringOrZero(this, claimedTotalKEY)
564- let $t02278722899 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, 0)
565- let wxToClaimUserNew = $t02278722899._1
566- let integralSTATE = $t02278722899._2
567- let debug = $t02278722899._3
564+ let $t02281422926 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, 0)
565+ let wxToClaimUserNew = $t02281422926._1
566+ let integralSTATE = $t02281422926._2
567+ let debug = $t02281422926._3
568568 let availableToClaim = max([(wxToClaimUserNew - claimedByUserMinReward), zeroBigInt])
569569 if ((zeroBigInt >= availableToClaim))
570570 then throw("nothing to claim")
644644 else (height - emissionStartBlock)
645645 let poolWxEmission = fraction((wxEmissionPerBlock * passedBlocks), poolWeight, POOLWEIGHTMULT)
646646 let userWxReward = fraction(poolWxEmission, stakedByUser, stakedTotal)
647- let $t02655726669 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, 0)
648- let wxToClaimUserNew = $t02655726669._1
649- let integralSTATE = $t02655726669._2
650- let debug = $t02655726669._3
647+ let $t02658426696 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, 0)
648+ let wxToClaimUserNew = $t02658426696._1
649+ let integralSTATE = $t02658426696._2
650+ let debug = $t02658426696._3
651651 let availableToClaim = max([(wxToClaimUserNew - claimedByUserMinReward), zeroBigInt])
652652 let boostInvResult = asAnyList(invoke(boostingContract, "claimWxBoostREADONLY", [lpAssetIdStr, userAddressStr], nil))
653653 let wxAmountBoostTotal = max([asInt(boostInvResult[0]), 0])
681681 throw("Match error")
682682 }
683683 case userAddress: String =>
684- let claimedByUser = getBigIntFromStringOrZero(this, keyClaimedByUser(lpAssetId, userAddress))
684+ let claimedByUserMinReward = getBigIntFromStringOrZero(this, keyClaimedByUserMinReward(lpAssetId, userAddress))
685685 let poolAddress = getStringByAddressOrFail(factoryContract, keyFactoryLpAssetToPoolContractAddress(lpAssetId))
686686 let wxToClaimUserNew = refreshINTEGRALS(lpAssetId, userAddress, poolAddress, 0)._1
687- let availableToClaim = (wxToClaimUserNew - claimedByUser)
687+ let availableToClaim = (wxToClaimUserNew - claimedByUserMinReward)
688688 let r = if ((availableToClaim > zeroBigInt))
689689 then invoke(this, "claimWxINTERNAL", [lpAssetId, userAddress], nil)
690690 else unit
714714 func onModifyWeight (lpAssetIdStr,poolAddressStr) = if ((i.caller != factoryContract))
715715 then throw("permissions denied")
716716 else {
717- let $t02897829088 = refreshPoolINTEGRALS(lpAssetIdStr, poolAddressStr, 0)
718- let wxPerLpIntegralNew = $t02897829088._1
719- let poolIntegralSTATE = $t02897829088._2
720- let poolDEBUG = $t02897829088._3
717+ let $t02903229142 = refreshPoolINTEGRALS(lpAssetIdStr, poolAddressStr, 0)
718+ let wxPerLpIntegralNew = $t02903229142._1
719+ let poolIntegralSTATE = $t02903229142._2
720+ let poolDEBUG = $t02903229142._3
721721 poolIntegralSTATE
722722 }
723723
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
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 func keyVotingEmissionContract () = "%s__votingEmissionContract"
9090
9191
9292 let IdxFactoryCfgStakingDapp = 1
9393
9494 let IdxFactoryCfgBoostingDapp = 2
9595
9696 let IdxFactoryCfgIdoDapp = 3
9797
9898 let IdxFactoryCfgTeamDapp = 4
9999
100100 let IdxFactoryCfgEmissionDapp = 5
101101
102102 let IdxFactoryCfgRestDapp = 6
103103
104104 let IdxFactoryCfgSlippageDapp = 7
105105
106106 func keyFactoryCfg () = "%s__factoryConfig"
107107
108108
109109 func keyManagerPublicKey () = "%s__managerPublicKey"
110110
111111
112112 func keyPendingManagerPublicKey () = "%s__pendingManagerPublicKey"
113113
114114
115115 func keyStablePoolAddonAddr () = "%s__stablePoolAddonAddr"
116116
117117
118118 func keyAddonAddr () = "%s__addonAddr"
119119
120120
121121 func keyFactoryLp2AssetsMapping (lpAssetStr) = makeString(["%s%s%s", lpAssetStr, "mappings__lpAsset2PoolContract"], SEP)
122122
123123
124124 func keyFactoryLpList () = "%s__lpTokensList"
125125
126126
127127 func keyFactoryLpAssetToPoolContractAddress (lpAssetStr) = makeString(["%s%s%s", lpAssetStr, "mappings__lpAsset2PoolContract"], SEP)
128128
129129
130130 func keyFactoryPoolWeight (contractAddress) = makeString(["%s%s", "poolWeight", contractAddress], SEP)
131131
132132
133133 func readLpList (factory) = split(valueOrElse(getString(factory, keyFactoryLpList()), ""), SEP)
134134
135135
136136 func readFactoryCfgOrFail (factory) = split(getStringByAddressOrFail(factory, keyFactoryCfg()), SEP)
137137
138138
139139 func getBoostingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgBoostingDapp])
140140
141141
142142 func getEmissionAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgEmissionDapp])
143143
144144
145145 func getStakingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgStakingDapp])
146146
147147
148148 func keyEmissionRatePerBlockCurrent () = "%s%s__ratePerBlock__current"
149149
150150
151151 func keyEmissionRatePerBlockMaxCurrent () = "%s%s__ratePerBlockMax__current"
152152
153153
154154 func keyEmissionStartBlock () = "%s%s__emission__startBlock"
155155
156156
157157 func keyEmissionDurationInBlocks () = "%s%s__emission__duration"
158158
159159
160160 func keyEmissionEndBlock () = "%s%s__emission__endBlock"
161161
162162
163163 func keyStakedByUser (userAddressStr,lpAssetIdStr) = makeString(["%s%s%s__staked", userAddressStr, lpAssetIdStr], SEP)
164164
165165
166166 func keyStakedTotal (lpAssetIdStr) = ("%s%s%s__staked__total__" + lpAssetIdStr)
167167
168168
169169 func keyClaimedByUser (lpAssetIdStr,userAddressStr) = makeString(["%s%s%s__claimed", userAddressStr, lpAssetIdStr], SEP)
170170
171171
172172 func keyClaimedByUserMinReward (lpAssetIdStr,userAddressStr) = makeString(["%s%s%s__claimedMinReward", userAddressStr, lpAssetIdStr], SEP)
173173
174174
175175 func keyClaimedByUserBoostReward (lpAssetIdStr,userAddressStr) = makeString(["%s%s%s__claimedBoostReward", userAddressStr, lpAssetIdStr], SEP)
176176
177177
178178 func keyClaimedTotal (lpAssetIdStr) = makeString(["%s%s%s__claimed__total", lpAssetIdStr], SEP)
179179
180180
181181 func readStaked (key) = valueOrElse(getInteger(this, key), 0)
182182
183183
184184 func keyLastTotalLpBalance (lpAssetId) = makeString(["%s%s%s", lpAssetId, "total", "bal"], SEP)
185185
186186
187187 func keyLastUserLpBalance (lpAssetId,userAddress) = makeString(["%s%s%s", lpAssetId, userAddress, "bal"], SEP)
188188
189189
190190 func keyTotalLpBalanceIntegral (lpAssetId) = makeString(["%s%s%s", lpAssetId, "total", "balINT"], SEP)
191191
192192
193193 func keyUserLpBalanceIntegral (lpAssetId,userAddress) = makeString(["%s%s%s", lpAssetId, userAddress, "balINT"], SEP)
194194
195195
196196 func keyTotalLpBalanceIntegralLastUpdHeight (lpAssetId) = makeString(["%s%s%s", lpAssetId, "total", "lastUpd"], SEP)
197197
198198
199199 func keyUserLpBalanceIntegralLastUpdHeight (lpAssetId,userAddress) = makeString(["%s%s%s", lpAssetId, userAddress, "lastUpd"], SEP)
200200
201201
202202 func keyWxPerLpIntegral (lpAssetId) = makeString(["%s%s%s%s", lpAssetId, "common", "lpInt"], SEP)
203203
204204
205205 func keyWxPerLpIntegralLastUpdHeight (lpAssetId) = makeString(["%s%s%s%s", lpAssetId, "common", "lpIntH"], SEP)
206206
207207
208208 func keyWxToClaimUser (lpAssetId,userAddress) = makeString(["%s%s%s%s", lpAssetId, userAddress, "lpInt"], SEP)
209209
210210
211211 func keyWxPerLpIntegralUserLastUpdHeight (lpAssetId,userAddress) = makeString(["%s%s%s%s", lpAssetId, userAddress, "lpIntH"], SEP)
212212
213213
214214 func keyWxPerLp (lpAssetId) = makeString(["%s", lpAssetId, "wxPerLp"], SEP)
215215
216216
217217 func keyWxPerLpX18 (lpAssetId) = makeString(["%s", lpAssetId, "wxPerLpX18"], SEP)
218218
219219
220220 func keyWxPerLpIntegralUserLast (lpAssetId,userAddress) = makeString(["%s%s%s%s", lpAssetId, userAddress, "uIntL"], SEP)
221221
222222
223223 func keyOperationHistoryRecord (type,userAddress,txId58) = makeString(["%s%s%s%s__history", type, userAddress, txId58], SEP)
224224
225225
226226 func formatHistoryRecord (userAddress,lpAssetId,type,amount) = makeString(["%s%s%s%d%d%d", userAddress, lpAssetId, type, toString(height), toString(lastBlock.timestamp), toString(amount)], SEP)
227227
228228
229229 func OperationHistoryEntry (type,userAddress,lpAssetId,amount,txId) = StringEntry(keyOperationHistoryRecord(type, userAddress, toBase58String(txId)), formatHistoryRecord(userAddress, lpAssetId, type, amount))
230230
231231
232232 let factoryAddress = getStringOrFail(this, keyFactoryAddress())
233233
234234 let factoryContract = addressFromStringValue(factoryAddress)
235235
236236 let factoryCfg = readFactoryCfgOrFail(factoryContract)
237237
238238 let emissionContract = getEmissionAddressOrFail(factoryCfg)
239239
240240 let boostingContract = getBoostingAddressOrFail(factoryCfg)
241241
242242 func keyNextUser (lpAssetId) = makeString(["%s%s", lpAssetId, "nextUser"], SEP)
243243
244244
245245 func getUsersListName (lpAssetId) = makeString(["users", lpAssetId], SEP)
246246
247247
248248 func keyListHead (listName) = makeString(["%s%s%s", listName, "head"], SEP)
249249
250250
251251 func keyListSize (listName) = makeString(["%s%s%s", listName, "size"], SEP)
252252
253253
254254 func keyListPrev (listName,id) = makeString(["%s%s%s%s", listName, id, "prev"], SEP)
255255
256256
257257 func keyListNext (listName,id) = makeString(["%s%s%s%s", listName, id, "next"], SEP)
258258
259259
260260 func containsNode (listName,id) = {
261261 let headOrUnit = getString(this, keyListHead(listName))
262262 let prevOrUnit = getString(this, keyListPrev(listName, id))
263263 let nextOrUnit = getString(this, keyListNext(listName, id))
264264 if (if ((id == valueOrElse(headOrUnit, "")))
265265 then true
266266 else (prevOrUnit != unit))
267267 then true
268268 else (nextOrUnit != unit)
269269 }
270270
271271
272272 func insertNodeActions (listName,id) = {
273273 let headOrUnit = getString(this, keyListHead(listName))
274274 let listSize = valueOrElse(getInteger(this, keyListSize(listName)), 0)
275275 let checkNode = if (!(containsNode(listName, id)))
276276 then true
277277 else throw("Node exists")
278278 if ((checkNode == checkNode))
279279 then (([IntegerEntry(keyListSize(listName), (listSize + 1))] ++ (if ((headOrUnit != unit))
280280 then [StringEntry(keyListNext(listName, id), value(headOrUnit)), StringEntry(keyListPrev(listName, value(headOrUnit)), id)]
281281 else nil)) ++ [StringEntry(keyListHead(listName), id)])
282282 else throw("Strict value is not equal to itself.")
283283 }
284284
285285
286286 func deleteNodeActions (listName,id) = {
287287 let headOrUnit = getString(this, keyListHead(listName))
288288 let listSize = valueOrElse(getInteger(this, keyListSize(listName)), 0)
289289 let prevOrUnit = getString(this, keyListPrev(listName, id))
290290 let nextOrUnit = getString(this, keyListNext(listName, id))
291291 ([IntegerEntry(keyListSize(listName), (listSize - 1))] ++ (if (if ((prevOrUnit != unit))
292292 then (nextOrUnit != unit)
293293 else false)
294294 then [StringEntry(keyListNext(listName, value(prevOrUnit)), value(nextOrUnit)), StringEntry(keyListPrev(listName, value(nextOrUnit)), value(prevOrUnit)), DeleteEntry(keyListPrev(listName, id)), DeleteEntry(keyListNext(listName, id))]
295295 else if ((nextOrUnit != unit))
296296 then [StringEntry(keyListHead(listName), value(nextOrUnit)), DeleteEntry(keyListNext(listName, id)), DeleteEntry(keyListPrev(listName, value(nextOrUnit)))]
297297 else if ((prevOrUnit != unit))
298298 then [DeleteEntry(keyListPrev(listName, id)), DeleteEntry(keyListNext(listName, value(prevOrUnit)))]
299299 else if ((id == valueOrElse(headOrUnit, "")))
300300 then [DeleteEntry(keyListHead(listName))]
301301 else throw(((("invalid node: " + listName) + ".") + id))))
302302 }
303303
304304
305305 func calcWxPerLpIntegralUserLast (stakedByUser,wxPerLpIntegralUserLastUpdHeightOrZero,wxPerLpIntegralNew,wxPerLpIntegralUserLastKEY) = if (if ((wxPerLpIntegralUserLastUpdHeightOrZero == zeroBigInt))
306306 then (stakedByUser > zeroBigInt)
307307 else false)
308308 then zeroBigInt
309309 else if ((stakedByUser == zeroBigInt))
310310 then wxPerLpIntegralNew
311311 else if (if ((wxPerLpIntegralUserLastUpdHeightOrZero > zeroBigInt))
312312 then (stakedByUser > zeroBigInt)
313313 else false)
314314 then value(parseBigInt(getStringOrFail(this, wxPerLpIntegralUserLastKEY)))
315315 else throw("calcWxPerLpIntegralUserLast: unexpected state")
316316
317317
318318 func refreshPoolINTEGRALS (lpAssetIdStr,poolAddressStr,lpDeltaAmount) = {
319319 let stakedTotalKEY = keyStakedTotal(lpAssetIdStr)
320320 let stakedTotal = toBigInt(readStaked(stakedTotalKEY))
321321 let nonZeroStakedTotal = if ((stakedTotal == zeroBigInt))
322322 then oneBigInt
323323 else stakedTotal
324324 let poolWeight = getIntegerValue(factoryContract, keyFactoryPoolWeight(poolAddressStr))
325325 let emissionStartBlock = getIntOrFail(emissionContract, keyEmissionStartBlock())
326326 let MULT3 = 1000
327327 let wxEmissionPerBlockX3 = (getIntOrFail(emissionContract, keyEmissionRatePerBlockCurrent()) * MULT3)
328328 let poolWxEmissionPerBlockX3 = fraction(wxEmissionPerBlockX3, poolWeight, (POOLWEIGHTMULT * 3))
329329 let wxPerLpIntegralKEY = keyWxPerLpIntegral(lpAssetIdStr)
330330 let wxPerLpIntegralLastUpdHeightKEY = keyWxPerLpIntegralLastUpdHeight(lpAssetIdStr)
331331 let wxPerLpKEY = keyWxPerLp(lpAssetIdStr)
332332 let wxPerLpIntegralLastUpdHeight = getIntOrDefault(this, wxPerLpIntegralLastUpdHeightKEY, emissionStartBlock)
333333 let wxPerLpIntegral = getBigIntFromStringOrZero(this, wxPerLpIntegralKEY)
334334 let wxPerLpOrZeroX3 = 0
335335 let dh = max([(height - wxPerLpIntegralLastUpdHeight), 0])
336336 let wxPerLpX3 = if ((wxPerLpOrZeroX3 != 0))
337337 then toBigInt(wxPerLpOrZeroX3)
338338 else fraction(toBigInt(poolWxEmissionPerBlockX3), toBigInt(MULT8), nonZeroStakedTotal)
339339 let stakedTotalNew = (stakedTotal + toBigInt(lpDeltaAmount))
340340 let nonZeroStakedTotalNew = if ((stakedTotalNew == zeroBigInt))
341341 then oneBigInt
342342 else stakedTotalNew
343343 let wxPerLpIntegralNew = (wxPerLpIntegral + (wxPerLpX3 * toBigInt(dh)))
344344 let wxPerLpX3New = (toBigInt(poolWxEmissionPerBlockX3) / nonZeroStakedTotalNew)
345345 let wxPerLpIntegralLastUpdHeightNew = height
346346 let debug = makeString([toString(wxPerLpIntegralNew), toString(dh), toString(wxPerLpX3), toString(stakedTotal), toString(poolWxEmissionPerBlockX3), toString(wxEmissionPerBlockX3), toString(poolWeight)], "::")
347347 $Tuple3(wxPerLpIntegralNew, [StringEntry(wxPerLpIntegralKEY, toString(wxPerLpIntegralNew)), IntegerEntry(wxPerLpIntegralLastUpdHeightKEY, wxPerLpIntegralLastUpdHeightNew), StringEntry(wxPerLpKEY, toString(wxPerLpX3New))], debug)
348348 }
349349
350350
351351 func refreshINTEGRALS (lpAssetIdStr,userAddressStr,poolAddressStr,lpDeltaAmount) = {
352352 let $t01427414396 = refreshPoolINTEGRALS(lpAssetIdStr, poolAddressStr, lpDeltaAmount)
353353 let wxPerLpIntegralNew = $t01427414396._1
354354 let poolIntegralSTATE = $t01427414396._2
355355 let poolDEBUG = $t01427414396._3
356356 let MULT3 = 1000
357357 let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr)
358358 let stakedByUser = readStaked(stakedByUserKEY)
359359 let wxToClaimUserKEY = keyWxToClaimUser(lpAssetIdStr, userAddressStr)
360360 let wxPerLpIntegralUserLastUpdHeightKEY = keyWxPerLpIntegralUserLastUpdHeight(lpAssetIdStr, userAddressStr)
361361 let wxPerLpIntegralUserLastKEY = keyWxPerLpIntegralUserLast(lpAssetIdStr, userAddressStr)
362362 let wxToClaimUser = getBigIntFromStringOrZero(this, wxToClaimUserKEY)
363363 let wxPerLpIntegralUserLastUpdHeightOrZero = getIntOrZero(this, wxPerLpIntegralUserLastUpdHeightKEY)
364364 let wxPerLpIntegralUserLast = calcWxPerLpIntegralUserLast(toBigInt(stakedByUser), toBigInt(wxPerLpIntegralUserLastUpdHeightOrZero), wxPerLpIntegralNew, wxPerLpIntegralUserLastKEY)
365365 let MULT11 = (MULT8 * MULT3)
366366 let wxToClaimUserNew = max([(wxToClaimUser + fraction((wxPerLpIntegralNew - wxPerLpIntegralUserLast), toBigInt(stakedByUser), toBigInt(MULT11))), zeroBigInt])
367367 let wxPerLpIntegralUserLastNew = wxPerLpIntegralNew
368368 let wxPerLpIntegralUserLastUpdHeightNew = height
369369 let debug = makeString([toString(wxToClaimUser), toString(wxPerLpIntegralUserLast), toString(stakedByUser), poolDEBUG, toString(height)], "::")
370370 $Tuple3(wxToClaimUserNew, (poolIntegralSTATE ++ [StringEntry(wxToClaimUserKEY, toString(wxToClaimUserNew)), IntegerEntry(wxPerLpIntegralUserLastUpdHeightKEY, wxPerLpIntegralUserLastUpdHeightNew), StringEntry(wxPerLpIntegralUserLastKEY, toString(wxPerLpIntegralUserLastNew))]), debug)
371371 }
372372
373373
374374 func managerPublicKeyOrUnit () = match getString(keyManagerPublicKey()) {
375375 case s: String =>
376376 fromBase58String(s)
377377 case _: Unit =>
378378 unit
379379 case _ =>
380380 throw("Match error")
381381 }
382382
383383
384384 func pendingManagerPublicKeyOrUnit () = match getString(keyPendingManagerPublicKey()) {
385385 case s: String =>
386386 fromBase58String(s)
387387 case _: Unit =>
388388 unit
389389 case _ =>
390390 throw("Match error")
391391 }
392392
393393
394394 let permissionDeniedError = throw("Permission denied")
395395
396396 func mustThis (i) = if ((i.caller == this))
397397 then true
398398 else permissionDeniedError
399399
400400
401401 func mustManager (i) = match managerPublicKeyOrUnit() {
402402 case pk: ByteVector =>
403403 if ((i.callerPublicKey == pk))
404404 then true
405405 else permissionDeniedError
406406 case _: Unit =>
407407 if ((i.caller == this))
408408 then true
409409 else permissionDeniedError
410410 case _ =>
411411 throw("Match error")
412412 }
413413
414414
415415 @Callable(i)
416416 func constructor (factoryAddressStr) = {
417417 let checkCaller = mustManager(i)
418418 if ((checkCaller == checkCaller))
419419 then [StringEntry(keyFactoryAddress(), factoryAddressStr)]
420420 else throw("Strict value is not equal to itself.")
421421 }
422422
423423
424424
425425 @Callable(i)
426426 func constructorV2 (votingEmissionContract) = {
427427 let cheks = [mustManager(i), if ((addressFromString(votingEmissionContract) != unit))
428428 then true
429429 else "invalid voting emission contract address"]
430430 if ((cheks == cheks))
431431 then [StringEntry(keyVotingEmissionContract(), votingEmissionContract)]
432432 else throw("Strict value is not equal to itself.")
433433 }
434434
435435
436436
437437 @Callable(i)
438438 func setManager (pendingManagerPublicKey) = {
439439 let checkCaller = mustManager(i)
440440 if ((checkCaller == checkCaller))
441441 then {
442442 let checkManagerPublicKey = fromBase58String(pendingManagerPublicKey)
443443 if ((checkManagerPublicKey == checkManagerPublicKey))
444444 then [StringEntry(keyPendingManagerPublicKey(), pendingManagerPublicKey)]
445445 else throw("Strict value is not equal to itself.")
446446 }
447447 else throw("Strict value is not equal to itself.")
448448 }
449449
450450
451451
452452 @Callable(i)
453453 func confirmManager () = {
454454 let pm = pendingManagerPublicKeyOrUnit()
455455 let hasPM = if (isDefined(pm))
456456 then true
457457 else throw("No pending manager")
458458 if ((hasPM == hasPM))
459459 then {
460460 let checkPM = if ((i.callerPublicKey == value(pm)))
461461 then true
462462 else throw("You are not pending manager")
463463 if ((checkPM == checkPM))
464464 then [StringEntry(keyManagerPublicKey(), toBase58String(value(pm))), DeleteEntry(keyPendingManagerPublicKey())]
465465 else throw("Strict value is not equal to itself.")
466466 }
467467 else throw("Strict value is not equal to itself.")
468468 }
469469
470470
471471
472472 @Callable(i)
473473 func stake () = if ((size(i.payments) != 1))
474474 then throw("invalid payment - exact one payment must be attached")
475475 else {
476476 let pmt = i.payments[0]
477477 let lpAssetId = value(pmt.assetId)
478478 let lpAssetIdStr = toBase58String(lpAssetId)
479479 let amount = pmt.amount
480480 let poolAddressStr = valueOrErrorMessage(getString(factoryContract, keyFactoryLp2AssetsMapping(lpAssetIdStr)), ("unsupported lp asset " + lpAssetIdStr))
481481 let callerStr = toString(i.caller)
482482 let userAddressStr = if ((callerStr == poolAddressStr))
483483 then toString(i.originCaller)
484484 else callerStr
485485 let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr)
486486 let stakedTotalKEY = keyStakedTotal(lpAssetIdStr)
487487 let stakedByUser = readStaked(stakedByUserKEY)
488488 let stakedTotal = readStaked(stakedTotalKEY)
489489 let $t01883218949 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, amount)
490490 let wxToClaimUserNew = $t01883218949._1
491491 let integralSTATE = $t01883218949._2
492492 let debug = $t01883218949._3
493493 let listName = getUsersListName(lpAssetIdStr)
494494 let listActions = if (containsNode(listName, userAddressStr))
495495 then nil
496496 else insertNodeActions(listName, userAddressStr)
497497 (([IntegerEntry(stakedByUserKEY, (stakedByUser + amount)), IntegerEntry(stakedTotalKEY, (stakedTotal + amount)), OperationHistoryEntry("stake", userAddressStr, lpAssetIdStr, amount, i.transactionId)] ++ integralSTATE) ++ listActions)
498498 }
499499
500500
501501
502502 @Callable(i)
503503 func unstake (lpAssetIdStr,amount) = {
504504 let lpAssetId = fromBase58String(lpAssetIdStr)
505505 let poolAddressStr = valueOrErrorMessage(getString(factoryContract, keyFactoryLp2AssetsMapping(lpAssetIdStr)), ("unsupported lp asset " + lpAssetIdStr))
506506 let poolAddon = valueOrElse(getString(addressFromStringValue(poolAddressStr), keyAddonAddr()), poolAddressStr)
507507 let callerStr = toString(i.caller)
508508 let userAddressStr = if (if ((callerStr == poolAddressStr))
509509 then true
510510 else (callerStr == poolAddon))
511511 then toString(i.originCaller)
512512 else callerStr
513513 let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr)
514514 let stakedTotalKEY = keyStakedTotal(lpAssetIdStr)
515515 let stakedByUser = readStaked(stakedByUserKEY)
516516 let stakedTotal = readStaked(stakedTotalKEY)
517517 let integralSTATE = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, -(amount))._2
518518 let listName = getUsersListName(lpAssetIdStr)
519519 let listActions = if (if (containsNode(listName, userAddressStr))
520520 then (amount == stakedByUser)
521521 else false)
522522 then deleteNodeActions(listName, userAddressStr)
523523 else nil
524- let claimedByUser = getBigIntFromStringOrZero(this, keyClaimedByUser(lpAssetIdStr, userAddressStr))
524+ let claimedByUserMinReward = getBigIntFromStringOrZero(this, keyClaimedByUserMinReward(lpAssetIdStr, userAddressStr))
525525 let poolAddress = getStringByAddressOrFail(factoryContract, keyFactoryLpAssetToPoolContractAddress(lpAssetIdStr))
526526 let wxToClaimUserNew = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddress, 0)._1
527- let availableToClaim = (wxToClaimUserNew - claimedByUser)
527+ let availableToClaim = (wxToClaimUserNew - claimedByUserMinReward)
528528 let r = if ((availableToClaim > zeroBigInt))
529529 then invoke(this, "claimWxINTERNAL", [lpAssetIdStr, userAddressStr], nil)
530530 else unit
531531 if ((r == r))
532532 then if ((amount > stakedByUser))
533533 then throw(((((((("passed amount=" + toString(amount)) + " is greater than available=") + toString(stakedByUser)) + ". lpAssetId=") + lpAssetIdStr) + ". stakedByUserKEY=") + stakedByUserKEY))
534534 else (([IntegerEntry(stakedByUserKEY, (stakedByUser - amount)), IntegerEntry(stakedTotalKEY, (stakedTotal - amount)), ScriptTransfer(i.caller, amount, lpAssetId), OperationHistoryEntry("unstake", userAddressStr, lpAssetIdStr, amount, i.transactionId)] ++ integralSTATE) ++ listActions)
535535 else throw("Strict value is not equal to itself.")
536536 }
537537
538538
539539
540540 @Callable(i)
541541 func claimWx (lpAssetIdStr) = {
542542 let userAddressStr = toString(i.caller)
543543 let result = invoke(this, "claimWxINTERNAL", [lpAssetIdStr, userAddressStr], nil)
544544 $Tuple2(nil, result)
545545 }
546546
547547
548548
549549 @Callable(i)
550550 func claimWxINTERNAL (lpAssetIdStr,userAddressStr) = {
551551 let checkCaller = mustThis(i)
552552 if ((checkCaller == checkCaller))
553553 then {
554554 let userAddress = valueOrErrorMessage(addressFromString(userAddressStr), "claimWxINTERNAL: invalid user address")
555555 let poolAddressStr = getStringByAddressOrFail(factoryContract, keyFactoryLpAssetToPoolContractAddress(lpAssetIdStr))
556556 let claimedByUserKEY = keyClaimedByUser(lpAssetIdStr, userAddressStr)
557557 let claimedTotalKEY = keyClaimedTotal(lpAssetIdStr)
558558 let claimedByUserMinRewardKEY = keyClaimedByUserMinReward(lpAssetIdStr, userAddressStr)
559559 let claimedByUserBoostRewardKEY = keyClaimedByUserBoostReward(lpAssetIdStr, userAddressStr)
560560 let claimedByUser = getBigIntFromStringOrZero(this, claimedByUserKEY)
561561 let claimedByUserMinReward = getBigIntFromStringOrZero(this, claimedByUserMinRewardKEY)
562562 let claimedByUserBoostReward = getBigIntFromStringOrZero(this, claimedByUserBoostRewardKEY)
563563 let claimedTotal = getBigIntFromStringOrZero(this, claimedTotalKEY)
564- let $t02278722899 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, 0)
565- let wxToClaimUserNew = $t02278722899._1
566- let integralSTATE = $t02278722899._2
567- let debug = $t02278722899._3
564+ let $t02281422926 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, 0)
565+ let wxToClaimUserNew = $t02281422926._1
566+ let integralSTATE = $t02281422926._2
567+ let debug = $t02281422926._3
568568 let availableToClaim = max([(wxToClaimUserNew - claimedByUserMinReward), zeroBigInt])
569569 if ((zeroBigInt >= availableToClaim))
570570 then throw("nothing to claim")
571571 else {
572572 let wxAmountBoostTotal = max([asInt(asAnyList(invoke(boostingContract, "claimWxBoost", [lpAssetIdStr, userAddressStr], nil))[0]), 0])
573573 let minRewardPart = availableToClaim
574574 let boostRewardPart = min([(minRewardPart * toBigInt(2)), toBigInt(wxAmountBoostTotal)])
575575 let wxAssetId = asByteVector(asAnyList(invoke(emissionContract, "emit", [toInt(minRewardPart)], nil))[0])
576576 let emitBoost = asAnyList(invoke(emissionContract, "emit", [toInt(boostRewardPart)], nil))
577577 if ((emitBoost == emitBoost))
578578 then {
579579 let claimedByUserValue = ((claimedByUser + minRewardPart) + boostRewardPart)
580580 let claimedByUserMinRewardPlusPart = (claimedByUserMinReward + minRewardPart)
581581 let claimedByUserBoostRewardPlusBoostRewardPart = (claimedByUserBoostReward + boostRewardPart)
582582 let claimedTotalPlusAvailableToClaim = (claimedTotal + availableToClaim)
583583 [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)]
584584 }
585585 else throw("Strict value is not equal to itself.")
586586 }
587587 }
588588 else throw("Strict value is not equal to itself.")
589589 }
590590
591591
592592
593593 @Callable(i)
594594 func claimWxBulkInternalREADONLY (currentIter,lpAssetIds,userAddressStr,resAcc) = if ((currentIter == size(lpAssetIds)))
595595 then $Tuple2(nil, resAcc)
596596 else {
597597 let lpAssetId = lpAssetIds[currentIter]
598598 let info = split({
599599 let @ = invoke(this, "claimWxREADONLY", [lpAssetId, userAddressStr], nil)
600600 if ($isInstanceOf(@, "String"))
601601 then @
602602 else throw(($getType(@) + " couldn't be cast to String"))
603603 }, SEP)
604604 let unclaimed = info[3]
605605 let claimed = info[4]
606606 let res = (resAcc :+ makeString(["%d%d", unclaimed, claimed], SEP))
607607 let inv = {
608608 let @ = invoke(this, "claimWxBulkInternalREADONLY", [(currentIter + 1), lpAssetIds, userAddressStr, res], nil)
609609 if ($isInstanceOf(@, "List[Any]"))
610610 then @
611611 else throw(($getType(@) + " couldn't be cast to List[Any]"))
612612 }
613613 if ((inv == inv))
614614 then $Tuple2(nil, inv)
615615 else throw("Strict value is not equal to itself.")
616616 }
617617
618618
619619
620620 @Callable(i)
621621 func claimWxBulkREADONLY (lpAssetIds,userAddressStr) = {
622622 let res = invoke(this, "claimWxBulkInternalREADONLY", [0, lpAssetIds, userAddressStr, nil], nil)
623623 $Tuple2(nil, res)
624624 }
625625
626626
627627
628628 @Callable(i)
629629 func claimWxREADONLY (lpAssetIdStr,userAddressStr) = {
630630 let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr)
631631 let stakedTotalKEY = keyStakedTotal(lpAssetIdStr)
632632 let claimedByUserKEY = keyClaimedByUser(lpAssetIdStr, userAddressStr)
633633 let claimedByUserMinRewardKEY = keyClaimedByUserMinReward(lpAssetIdStr, userAddressStr)
634634 let stakedByUser = readStaked(stakedByUserKEY)
635635 let stakedTotal = readStaked(stakedTotalKEY)
636636 let claimedByUser = getBigIntFromStringOrZero(this, claimedByUserKEY)
637637 let claimedByUserMinReward = getBigIntFromStringOrZero(this, claimedByUserMinRewardKEY)
638638 let poolAddressStr = getStringByAddressOrFail(factoryContract, keyFactoryLpAssetToPoolContractAddress(lpAssetIdStr))
639639 let poolWeight = getIntegerValue(factoryContract, keyFactoryPoolWeight(poolAddressStr))
640640 let wxEmissionPerBlock = getIntOrFail(emissionContract, keyEmissionRatePerBlockCurrent())
641641 let emissionStartBlock = getIntOrFail(emissionContract, keyEmissionStartBlock())
642642 let passedBlocks = if ((emissionStartBlock > height))
643643 then 0
644644 else (height - emissionStartBlock)
645645 let poolWxEmission = fraction((wxEmissionPerBlock * passedBlocks), poolWeight, POOLWEIGHTMULT)
646646 let userWxReward = fraction(poolWxEmission, stakedByUser, stakedTotal)
647- let $t02655726669 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, 0)
648- let wxToClaimUserNew = $t02655726669._1
649- let integralSTATE = $t02655726669._2
650- let debug = $t02655726669._3
647+ let $t02658426696 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, 0)
648+ let wxToClaimUserNew = $t02658426696._1
649+ let integralSTATE = $t02658426696._2
650+ let debug = $t02658426696._3
651651 let availableToClaim = max([(wxToClaimUserNew - claimedByUserMinReward), zeroBigInt])
652652 let boostInvResult = asAnyList(invoke(boostingContract, "claimWxBoostREADONLY", [lpAssetIdStr, userAddressStr], nil))
653653 let wxAmountBoostTotal = max([asInt(boostInvResult[0]), 0])
654654 let boostDebug = asString(boostInvResult[1])
655655 let minRewardPart = availableToClaim
656656 let boostRewardPart = min([(minRewardPart * toBigInt(2)), toBigInt(wxAmountBoostTotal)])
657657 let totalReward = (minRewardPart + boostRewardPart)
658658 $Tuple2(nil, makeString(["%s%s%d%d%d%d%s", lpAssetIdStr, userAddressStr, toString(totalReward), toString(claimedByUser), toString(minRewardPart), toString(boostRewardPart), "soon"], SEP))
659659 }
660660
661661
662662
663663 @Callable(i)
664664 func usersListTraversal (lpAssetId) = {
665665 let checkCaller = if ((toBase58String(i.caller.bytes) == valueOrElse(getString(this, keyVotingEmissionContract()), "")))
666666 then true
667667 else mustManager(i)
668668 if ((checkCaller == checkCaller))
669669 then {
670670 let listName = getUsersListName(lpAssetId)
671671 let userOrUnit = getString(keyNextUser(lpAssetId))
672672 let headOrUnit = getString(keyListHead(listName))
673673 match userOrUnit {
674674 case _: Unit =>
675675 match headOrUnit {
676676 case _: Unit =>
677677 $Tuple2(nil, false)
678678 case head: String =>
679679 $Tuple2([StringEntry(keyNextUser(lpAssetId), head)], true)
680680 case _ =>
681681 throw("Match error")
682682 }
683683 case userAddress: String =>
684- let claimedByUser = getBigIntFromStringOrZero(this, keyClaimedByUser(lpAssetId, userAddress))
684+ let claimedByUserMinReward = getBigIntFromStringOrZero(this, keyClaimedByUserMinReward(lpAssetId, userAddress))
685685 let poolAddress = getStringByAddressOrFail(factoryContract, keyFactoryLpAssetToPoolContractAddress(lpAssetId))
686686 let wxToClaimUserNew = refreshINTEGRALS(lpAssetId, userAddress, poolAddress, 0)._1
687- let availableToClaim = (wxToClaimUserNew - claimedByUser)
687+ let availableToClaim = (wxToClaimUserNew - claimedByUserMinReward)
688688 let r = if ((availableToClaim > zeroBigInt))
689689 then invoke(this, "claimWxINTERNAL", [lpAssetId, userAddress], nil)
690690 else unit
691691 if ((r == r))
692692 then {
693693 let nextUserOrUnit = getString(keyListNext(listName, userAddress))
694694 match nextUserOrUnit {
695695 case _: Unit =>
696696 $Tuple2([DeleteEntry(keyNextUser(lpAssetId))], false)
697697 case nextUser: String =>
698698 $Tuple2([StringEntry(keyNextUser(lpAssetId), nextUser)], true)
699699 case _ =>
700700 throw("Match error")
701701 }
702702 }
703703 else throw("Strict value is not equal to itself.")
704704 case _ =>
705705 throw("Match error")
706706 }
707707 }
708708 else throw("Strict value is not equal to itself.")
709709 }
710710
711711
712712
713713 @Callable(i)
714714 func onModifyWeight (lpAssetIdStr,poolAddressStr) = if ((i.caller != factoryContract))
715715 then throw("permissions denied")
716716 else {
717- let $t02897829088 = refreshPoolINTEGRALS(lpAssetIdStr, poolAddressStr, 0)
718- let wxPerLpIntegralNew = $t02897829088._1
719- let poolIntegralSTATE = $t02897829088._2
720- let poolDEBUG = $t02897829088._3
717+ let $t02903229142 = refreshPoolINTEGRALS(lpAssetIdStr, poolAddressStr, 0)
718+ let wxPerLpIntegralNew = $t02903229142._1
719+ let poolIntegralSTATE = $t02903229142._2
720+ let poolDEBUG = $t02903229142._3
721721 poolIntegralSTATE
722722 }
723723
724724
725725 @Verifier(tx)
726726 func verify () = {
727727 let targetPublicKey = match managerPublicKeyOrUnit() {
728728 case pk: ByteVector =>
729729 pk
730730 case _: Unit =>
731731 tx.senderPublicKey
732732 case _ =>
733733 throw("Match error")
734734 }
735735 sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)
736736 }
737737

github/deemru/w8io/026f985 
125.45 ms