tx · 7sPC7WGKDVesY1h9B7tEHeV5qT3UBWHx8kyCvNanpTE4

3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz:  -0.02900000 Waves

2022.07.01 17:14 [2120689] smart account 3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz > SELF 0.00000000 Waves

{ "type": 13, "id": "7sPC7WGKDVesY1h9B7tEHeV5qT3UBWHx8kyCvNanpTE4", "fee": 2900000, "feeAssetId": null, "timestamp": 1656684856974, "version": 1, "sender": "3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz", "senderPublicKey": "D28XoueZWsMfm8Y5pa6C5ZFuYoWgre2Wm8tzJANJgMnq", "proofs": [ "dGWQDk9WryTcvsjh5FXBwaaB68xoWuwuHtaEeRTGzprLypcthNYwanw1cL254Nw5TzwswXTz4XP223VLESWcnTh" ], "script": "base64:BgI3CAISAwoBCBIDCgEIEgMKAQgSABIAEgQKAggBEgMKAQgSBAoCCAgSBAoCCAgSAwoBCBIECgIICF0ABlNDQUxFOAAIAAVNVUxUOACAwtcvAAdTQ0FMRTE4ABIABk1VTFQxOAkAtgIBAICAkLu61q3wDQADU0VQAgJfXwAOUE9PTFdFSUdIVE1VTFQFBU1VTFQ4AAp6ZXJvQmlnSW50CQC2AgEAAAAJb25lQmlnSW50CQC2AgEAAQEJYXNBbnlMaXN0AQN2YWwEByRtYXRjaDAFA3ZhbAMJAAECBQckbWF0Y2gwAglMaXN0W0FueV0ECnZhbEFueUx5c3QFByRtYXRjaDAFCnZhbEFueUx5c3QJAAIBAhtmYWlsIHRvIGNhc3QgaW50byBMaXN0W0FueV0BBWFzSW50AQN2YWwEByRtYXRjaDAFA3ZhbAMJAAECBQckbWF0Y2gwAgNJbnQEBnZhbEludAUHJG1hdGNoMAUGdmFsSW50CQACAQIVZmFpbCB0byBjYXN0IGludG8gSW50AQhhc1N0cmluZwEDdmFsBAckbWF0Y2gwBQN2YWwDCQABAgUHJG1hdGNoMAIGU3RyaW5nB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dHIFDnBvb2xBZGRyZXNzU3RyAAAEEnd4UGVyTHBJbnRlZ3JhbE5ldwgFDSR0MDI3ODA3Mjc5MTcCXzEEEXBvb2xJbnRlZ3JhbFNUQVRFCAUNJHQwMjc4MDcyNzkxNwJfMgQJcG9vbERFQlVHCAUNJHQwMjc4MDcyNzkxNwJfMwURcG9vbEludGVncmFsU1RBVEUBAnR4AQZ2ZXJpZnkABA90YXJnZXRQdWJsaWNLZXkEByRtYXRjaDAJARZtYW5hZ2VyUHVibGljS2V5T3JVbml0AAMJAAECBQckbWF0Y2gwAgpCeXRlVmVjdG9yBAJwawUHJG1hdGNoMAUCcGsDCQABAgUHJG1hdGNoMAIEVW5pdAgFAnR4D3NlbmRlclB1YmxpY0tleQkAAgECC01hdGNoIGVycm9yCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAABQ90YXJnZXRQdWJsaWNLZXn9mf+Q", "chainId": 84, "height": 2120689, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HVd3EkU4EtN3uSgoEeaoGs9jwfyGoPzhTsBR5cR96Bf8 Next: 2mZgu1Cjhs5Cj2gYCuR9ChbfZfn85ieLWKzf7dw89and Diff:
OldNewDifferences
1616 let zeroBigInt = toBigInt(0)
1717
1818 let oneBigInt = toBigInt(1)
19-
20-let keyMigrator = "migrator"
2119
2220 func asAnyList (val) = match val {
2321 case valAnyLyst: List[Any] =>
348346
349347
350348 func refreshINTEGRALS (lpAssetIdStr,userAddressStr,poolAddressStr,lpDeltaAmount) = {
351- let $t01424614368 = refreshPoolINTEGRALS(lpAssetIdStr, poolAddressStr, lpDeltaAmount)
352- let wxPerLpIntegralNew = $t01424614368._1
353- let poolIntegralSTATE = $t01424614368._2
354- let poolDEBUG = $t01424614368._3
349+ let $t01421714339 = refreshPoolINTEGRALS(lpAssetIdStr, poolAddressStr, lpDeltaAmount)
350+ let wxPerLpIntegralNew = $t01421714339._1
351+ let poolIntegralSTATE = $t01421714339._2
352+ let poolDEBUG = $t01421714339._3
355353 let MULT3 = 1000
356354 let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr)
357355 let stakedByUser = readStaked(stakedByUserKEY)
469467
470468
471469 @Callable(i)
472-func stake () = {
473- let migration = if ((getBinary(this, keyMigrator) != unit))
474- then throw("maintenance")
475- else unit
476- if ((migration == migration))
477- then if ((size(i.payments) != 1))
478- then throw("invalid payment - exact one payment must be attached")
479- else {
480- let pmt = i.payments[0]
481- let lpAssetId = value(pmt.assetId)
482- let lpAssetIdStr = toBase58String(lpAssetId)
483- let amount = pmt.amount
484- let poolAddressStr = valueOrErrorMessage(getString(factoryContract, keyFactoryLp2AssetsMapping(lpAssetIdStr)), ("unsupported lp asset " + lpAssetIdStr))
485- let callerStr = toString(i.caller)
486- let userAddressStr = if ((callerStr == poolAddressStr))
487- then toString(i.originCaller)
488- else callerStr
489- let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr)
490- let stakedTotalKEY = keyStakedTotal(lpAssetIdStr)
491- let stakedByUser = readStaked(stakedByUserKEY)
492- let stakedTotal = readStaked(stakedTotalKEY)
493- let $t01893619053 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, amount)
494- let wxToClaimUserNew = $t01893619053._1
495- let integralSTATE = $t01893619053._2
496- let debug = $t01893619053._3
497- let listName = getUsersListName(lpAssetIdStr)
498- let listActions = if (containsNode(listName, userAddressStr))
499- then nil
500- else insertNodeActions(listName, userAddressStr)
501- (([IntegerEntry(stakedByUserKEY, (stakedByUser + amount)), IntegerEntry(stakedTotalKEY, (stakedTotal + amount)), OperationHistoryEntry("stake", userAddressStr, lpAssetIdStr, amount, i.transactionId)] ++ integralSTATE) ++ listActions)
502- }
503- else throw("Strict value is not equal to itself.")
504- }
470+func stake () = if ((size(i.payments) != 1))
471+ then throw("invalid payment - exact one payment must be attached")
472+ else {
473+ let pmt = i.payments[0]
474+ let lpAssetId = value(pmt.assetId)
475+ let lpAssetIdStr = toBase58String(lpAssetId)
476+ let amount = pmt.amount
477+ let poolAddressStr = valueOrErrorMessage(getString(factoryContract, keyFactoryLp2AssetsMapping(lpAssetIdStr)), ("unsupported lp asset " + lpAssetIdStr))
478+ let callerStr = toString(i.caller)
479+ let userAddressStr = if ((callerStr == poolAddressStr))
480+ then toString(i.originCaller)
481+ else callerStr
482+ let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr)
483+ let stakedTotalKEY = keyStakedTotal(lpAssetIdStr)
484+ let stakedByUser = readStaked(stakedByUserKEY)
485+ let stakedTotal = readStaked(stakedTotalKEY)
486+ let $t01877518892 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, amount)
487+ let wxToClaimUserNew = $t01877518892._1
488+ let integralSTATE = $t01877518892._2
489+ let debug = $t01877518892._3
490+ let listName = getUsersListName(lpAssetIdStr)
491+ let listActions = if (containsNode(listName, userAddressStr))
492+ then nil
493+ else insertNodeActions(listName, userAddressStr)
494+ (([IntegerEntry(stakedByUserKEY, (stakedByUser + amount)), IntegerEntry(stakedTotalKEY, (stakedTotal + amount)), OperationHistoryEntry("stake", userAddressStr, lpAssetIdStr, amount, i.transactionId)] ++ integralSTATE) ++ listActions)
495+ }
505496
506497
507498
508499 @Callable(i)
509500 func unstake (lpAssetIdStr,amount) = {
510- let migration = if ((getBinary(this, keyMigrator) != unit))
511- then throw("maintenance")
501+ let lpAssetId = fromBase58String(lpAssetIdStr)
502+ let poolAddressStr = valueOrErrorMessage(getString(factoryContract, keyFactoryLp2AssetsMapping(lpAssetIdStr)), ("unsupported lp asset " + lpAssetIdStr))
503+ let poolAddon = valueOrElse(getString(this, keyStablePoolAddonAddr()), poolAddressStr)
504+ let callerStr = toString(i.caller)
505+ let userAddressStr = if (if ((callerStr == poolAddressStr))
506+ then true
507+ else (callerStr == poolAddon))
508+ then toString(i.originCaller)
509+ else callerStr
510+ let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr)
511+ let stakedTotalKEY = keyStakedTotal(lpAssetIdStr)
512+ let stakedByUser = readStaked(stakedByUserKEY)
513+ let stakedTotal = readStaked(stakedTotalKEY)
514+ let integralSTATE = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, -(amount))._2
515+ let listName = getUsersListName(lpAssetIdStr)
516+ let listActions = if (if (containsNode(listName, userAddressStr))
517+ then (amount == stakedByUser)
518+ else false)
519+ then deleteNodeActions(listName, userAddressStr)
520+ else nil
521+ let claimedByUser = getBigIntFromStringOrZero(this, keyClaimedByUser(lpAssetIdStr, userAddressStr))
522+ let poolAddress = getStringByAddressOrFail(factoryContract, keyFactoryLpAssetToPoolContractAddress(lpAssetIdStr))
523+ let wxToClaimUserNew = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddress, 0)._1
524+ let availableToClaim = (wxToClaimUserNew - claimedByUser)
525+ let r = if ((availableToClaim > zeroBigInt))
526+ then invoke(this, "claimWxINTERNAL", [lpAssetIdStr, userAddressStr], nil)
512527 else unit
513- if ((migration == migration))
514- then {
515- let lpAssetId = fromBase58String(lpAssetIdStr)
516- let poolAddressStr = valueOrErrorMessage(getString(factoryContract, keyFactoryLp2AssetsMapping(lpAssetIdStr)), ("unsupported lp asset " + lpAssetIdStr))
517- let poolAddon = valueOrElse(getString(this, keyStablePoolAddonAddr()), poolAddressStr)
518- let callerStr = toString(i.caller)
519- let userAddressStr = if (if ((callerStr == poolAddressStr))
520- then true
521- else (callerStr == poolAddon))
522- then toString(i.originCaller)
523- else callerStr
524- let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr)
525- let stakedTotalKEY = keyStakedTotal(lpAssetIdStr)
526- let stakedByUser = readStaked(stakedByUserKEY)
527- let stakedTotal = readStaked(stakedTotalKEY)
528- let integralSTATE = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, -(amount))._2
529- let listName = getUsersListName(lpAssetIdStr)
530- let listActions = if (if (containsNode(listName, userAddressStr))
531- then (amount == stakedByUser)
532- else false)
533- then deleteNodeActions(listName, userAddressStr)
534- else nil
535- let claimedByUser = getBigIntFromStringOrZero(this, keyClaimedByUser(lpAssetIdStr, userAddressStr))
536- let poolAddress = getStringByAddressOrFail(factoryContract, keyFactoryLpAssetToPoolContractAddress(lpAssetIdStr))
537- let wxToClaimUserNew = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddress, 0)._1
538- let availableToClaim = (wxToClaimUserNew - claimedByUser)
539- let r = if ((availableToClaim > zeroBigInt))
540- then invoke(this, "claimWxINTERNAL", [lpAssetIdStr, userAddressStr], nil)
541- else unit
542- if ((r == r))
543- then if ((amount > stakedByUser))
544- then throw("passed amount is less then available")
545- else (([IntegerEntry(stakedByUserKEY, (stakedByUser - amount)), IntegerEntry(stakedTotalKEY, (stakedTotal - amount)), ScriptTransfer(i.caller, amount, lpAssetId), OperationHistoryEntry("unstake", userAddressStr, lpAssetIdStr, amount, i.transactionId)] ++ integralSTATE) ++ listActions)
546- else throw("Strict value is not equal to itself.")
547- }
528+ if ((r == r))
529+ then if ((amount > stakedByUser))
530+ then throw("passed amount is less then available")
531+ else (([IntegerEntry(stakedByUserKEY, (stakedByUser - amount)), IntegerEntry(stakedTotalKEY, (stakedTotal - amount)), ScriptTransfer(i.caller, amount, lpAssetId), OperationHistoryEntry("unstake", userAddressStr, lpAssetIdStr, amount, i.transactionId)] ++ integralSTATE) ++ listActions)
548532 else throw("Strict value is not equal to itself.")
549533 }
550534
574558 let claimedByUserMinReward = getBigIntFromStringOrZero(this, claimedByUserMinRewardKEY)
575559 let claimedByUserBoostReward = getBigIntFromStringOrZero(this, claimedByUserBoostRewardKEY)
576560 let claimedTotal = getBigIntFromStringOrZero(this, claimedTotalKEY)
577- let $t02288322995 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, 0)
578- let wxToClaimUserNew = $t02288322995._1
579- let integralSTATE = $t02288322995._2
580- let debug = $t02288322995._3
561+ let $t02259022702 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, 0)
562+ let wxToClaimUserNew = $t02259022702._1
563+ let integralSTATE = $t02259022702._2
564+ let debug = $t02259022702._3
581565 let availableToClaim = max([(wxToClaimUserNew - claimedByUser), zeroBigInt])
582566 if ((zeroBigInt >= availableToClaim))
583567 then throw("nothing to claim")
620604 else (height - emissionStartBlock)
621605 let poolWxEmission = fraction((wxEmissionPerBlock * passedBlocks), poolWeight, POOLWEIGHTMULT)
622606 let userWxReward = fraction(poolWxEmission, stakedByUser, stakedTotal)
623- let $t02563725749 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, 0)
624- let wxToClaimUserNew = $t02563725749._1
625- let integralSTATE = $t02563725749._2
626- let debug = $t02563725749._3
607+ let $t02534425456 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, 0)
608+ let wxToClaimUserNew = $t02534425456._1
609+ let integralSTATE = $t02534425456._2
610+ let debug = $t02534425456._3
627611 let availableToClaim = max([(wxToClaimUserNew - claimedByUser), zeroBigInt])
628612 let boostInvResult = asAnyList(invoke(boostingContract, "claimWxBoostREADONLY", [lpAssetIdStr, userAddressStr], nil))
629613 let wxAmountBoostTotal = max([asInt(boostInvResult[0]), 0])
690674 func onModifyWeight (lpAssetIdStr,poolAddressStr) = if ((i.caller != factoryContract))
691675 then throw("permissions denied")
692676 else {
693- let $t02810028210 = refreshPoolINTEGRALS(lpAssetIdStr, poolAddressStr, 0)
694- let wxPerLpIntegralNew = $t02810028210._1
695- let poolIntegralSTATE = $t02810028210._2
696- let poolDEBUG = $t02810028210._3
677+ let $t02780727917 = refreshPoolINTEGRALS(lpAssetIdStr, poolAddressStr, 0)
678+ let wxPerLpIntegralNew = $t02780727917._1
679+ let poolIntegralSTATE = $t02780727917._2
680+ let poolDEBUG = $t02780727917._3
697681 poolIntegralSTATE
698682 }
699-
700-
701-
702-@Callable(i)
703-func setMigrator (pk) = if ((pk == ""))
704- then [DeleteEntry(keyMigrator)]
705- else [BinaryEntry(keyMigrator, fromBase58String(pk))]
706683
707684
708685 @Verifier(tx)
715692 case _ =>
716693 throw("Match error")
717694 }
718- if (sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey))
719- then true
720- else sigVerify(tx.bodyBytes, tx.proofs[0], getBinaryValue(this, keyMigrator))
695+ sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)
721696 }
722697
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)
19-
20-let keyMigrator = "migrator"
2119
2220 func asAnyList (val) = match val {
2321 case valAnyLyst: List[Any] =>
2422 valAnyLyst
2523 case _ =>
2624 throw("fail to cast into List[Any]")
2725 }
2826
2927
3028 func asInt (val) = match val {
3129 case valInt: Int =>
3230 valInt
3331 case _ =>
3432 throw("fail to cast into Int")
3533 }
3634
3735
3836 func asString (val) = match val {
3937 case valStr: String =>
4038 valStr
4139 case _ =>
4240 throw("fail to cast into Int")
4341 }
4442
4543
4644 func asByteVector (val) = match val {
4745 case valBin: ByteVector =>
4846 valBin
4947 case _ =>
5048 throw("fail to cast into Int")
5149 }
5250
5351
5452 func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), (("mandatory this." + key) + " is not defined"))
5553
5654
5755 func getStringByAddressOrFail (address,key) = valueOrErrorMessage(getString(address, key), (((("mandatory " + toString(address)) + ".") + key) + " is not defined"))
5856
5957
6058 func getIntOrZero (address,key) = valueOrElse(getInteger(address, key), 0)
6159
6260
6361 func getIntOrDefault (address,key,defaultVal) = valueOrElse(getInteger(address, key), defaultVal)
6462
6563
6664 func getIntOrFail (address,key) = valueOrErrorMessage(getInteger(address, key), (("mandatory this." + key) + " is not defined"))
6765
6866
6967 func getBigIntFromStringOrZero (address,key) = value(parseBigInt(valueOrElse(getString(address, key), "0")))
7068
7169
7270 func getBigIntFromStringOrDefault (address,key,defaultVal) = match getString(address, key) {
7371 case s: String =>
7472 value(parseBigInt(s))
7573 case _: Unit =>
7674 defaultVal
7775 case _ =>
7876 throw("Match error")
7977 }
8078
8179
8280 func toX18 (origVal,origScaleMult) = fraction(toBigInt(origVal), MULT18, toBigInt(origScaleMult))
8381
8482
8583 func fromX18 (val,resultScaleMult) = toInt(fraction(val, toBigInt(resultScaleMult), MULT18))
8684
8785
8886 func keyFactoryAddress () = "%s%s__config__factoryAddress"
8987
9088
9189 func keyVotingEmissionContract () = "%s__votingEmissionContract"
9290
9391
9492 let IdxFactoryCfgStakingDapp = 1
9593
9694 let IdxFactoryCfgBoostingDapp = 2
9795
9896 let IdxFactoryCfgIdoDapp = 3
9997
10098 let IdxFactoryCfgTeamDapp = 4
10199
102100 let IdxFactoryCfgEmissionDapp = 5
103101
104102 let IdxFactoryCfgRestDapp = 6
105103
106104 let IdxFactoryCfgSlippageDapp = 7
107105
108106 func keyFactoryCfg () = "%s__factoryConfig"
109107
110108
111109 func keyManagerPublicKey () = "%s__managerPublicKey"
112110
113111
114112 func keyPendingManagerPublicKey () = "%s__pendingManagerPublicKey"
115113
116114
117115 func keyStablePoolAddonAddr () = "%s__stablePoolAddonAddr"
118116
119117
120118 func keyFactoryLp2AssetsMapping (lpAssetStr) = makeString(["%s%s%s", lpAssetStr, "mappings__lpAsset2PoolContract"], SEP)
121119
122120
123121 func keyFactoryLpList () = "%s__lpTokensList"
124122
125123
126124 func keyFactoryLpAssetToPoolContractAddress (lpAssetStr) = makeString(["%s%s%s", lpAssetStr, "mappings__lpAsset2PoolContract"], SEP)
127125
128126
129127 func keyFactoryPoolWeight (contractAddress) = makeString(["%s%s", "poolWeight", contractAddress], SEP)
130128
131129
132130 func readLpList (factory) = split(valueOrElse(getString(factory, keyFactoryLpList()), ""), SEP)
133131
134132
135133 func readFactoryCfgOrFail (factory) = split(getStringByAddressOrFail(factory, keyFactoryCfg()), SEP)
136134
137135
138136 func getBoostingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgBoostingDapp])
139137
140138
141139 func getEmissionAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgEmissionDapp])
142140
143141
144142 func getStakingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgStakingDapp])
145143
146144
147145 func keyEmissionRatePerBlockCurrent () = "%s%s__ratePerBlock__current"
148146
149147
150148 func keyEmissionRatePerBlockMaxCurrent () = "%s%s__ratePerBlockMax__current"
151149
152150
153151 func keyEmissionStartBlock () = "%s%s__emission__startBlock"
154152
155153
156154 func keyEmissionDurationInBlocks () = "%s%s__emission__duration"
157155
158156
159157 func keyEmissionEndBlock () = "%s%s__emission__endBlock"
160158
161159
162160 func keyStakedByUser (userAddressStr,lpAssetIdStr) = makeString(["%s%s%s__staked", userAddressStr, lpAssetIdStr], SEP)
163161
164162
165163 func keyStakedTotal (lpAssetIdStr) = ("%s%s%s__staked__total__" + lpAssetIdStr)
166164
167165
168166 func keyClaimedByUser (lpAssetIdStr,userAddressStr) = makeString(["%s%s%s__claimed", userAddressStr, lpAssetIdStr], SEP)
169167
170168
171169 func keyClaimedByUserMinReward (lpAssetIdStr,userAddressStr) = makeString(["%s%s%s__claimedMinReward", userAddressStr, lpAssetIdStr], SEP)
172170
173171
174172 func keyClaimedByUserBoostReward (lpAssetIdStr,userAddressStr) = makeString(["%s%s%s__claimedBoostReward", userAddressStr, lpAssetIdStr], SEP)
175173
176174
177175 func keyClaimedTotal (lpAssetIdStr) = makeString(["%s%s%s__claimed__total", lpAssetIdStr], SEP)
178176
179177
180178 func readStaked (key) = valueOrElse(getInteger(this, key), 0)
181179
182180
183181 func keyLastTotalLpBalance (lpAssetId) = makeString(["%s%s%s", lpAssetId, "total", "bal"], SEP)
184182
185183
186184 func keyLastUserLpBalance (lpAssetId,userAddress) = makeString(["%s%s%s", lpAssetId, userAddress, "bal"], SEP)
187185
188186
189187 func keyTotalLpBalanceIntegral (lpAssetId) = makeString(["%s%s%s", lpAssetId, "total", "balINT"], SEP)
190188
191189
192190 func keyUserLpBalanceIntegral (lpAssetId,userAddress) = makeString(["%s%s%s", lpAssetId, userAddress, "balINT"], SEP)
193191
194192
195193 func keyTotalLpBalanceIntegralLastUpdHeight (lpAssetId) = makeString(["%s%s%s", lpAssetId, "total", "lastUpd"], SEP)
196194
197195
198196 func keyUserLpBalanceIntegralLastUpdHeight (lpAssetId,userAddress) = makeString(["%s%s%s", lpAssetId, userAddress, "lastUpd"], SEP)
199197
200198
201199 func keyWxPerLpIntegral (lpAssetId) = makeString(["%s%s%s%s", lpAssetId, "common", "lpInt"], SEP)
202200
203201
204202 func keyWxPerLpIntegralLastUpdHeight (lpAssetId) = makeString(["%s%s%s%s", lpAssetId, "common", "lpIntH"], SEP)
205203
206204
207205 func keyWxToClaimUser (lpAssetId,userAddress) = makeString(["%s%s%s%s", lpAssetId, userAddress, "lpInt"], SEP)
208206
209207
210208 func keyWxPerLpIntegralUserLastUpdHeight (lpAssetId,userAddress) = makeString(["%s%s%s%s", lpAssetId, userAddress, "lpIntH"], SEP)
211209
212210
213211 func keyWxPerLp (lpAssetId) = makeString(["%s", lpAssetId, "wxPerLp"], SEP)
214212
215213
216214 func keyWxPerLpX18 (lpAssetId) = makeString(["%s", lpAssetId, "wxPerLpX18"], SEP)
217215
218216
219217 func keyWxPerLpIntegralUserLast (lpAssetId,userAddress) = makeString(["%s%s%s%s", lpAssetId, userAddress, "uIntL"], SEP)
220218
221219
222220 func keyOperationHistoryRecord (type,userAddress,txId58) = makeString(["%s%s%s%s__history", type, userAddress, txId58], SEP)
223221
224222
225223 func formatHistoryRecord (userAddress,lpAssetId,type,amount) = makeString(["%s%s%s%d%d%d", userAddress, lpAssetId, type, toString(height), toString(lastBlock.timestamp), toString(amount)], SEP)
226224
227225
228226 func OperationHistoryEntry (type,userAddress,lpAssetId,amount,txId) = StringEntry(keyOperationHistoryRecord(type, userAddress, toBase58String(txId)), formatHistoryRecord(userAddress, lpAssetId, type, amount))
229227
230228
231229 let factoryAddress = getStringOrFail(this, keyFactoryAddress())
232230
233231 let factoryContract = addressFromStringValue(factoryAddress)
234232
235233 let factoryCfg = readFactoryCfgOrFail(factoryContract)
236234
237235 let emissionContract = getEmissionAddressOrFail(factoryCfg)
238236
239237 let boostingContract = getBoostingAddressOrFail(factoryCfg)
240238
241239 func keyNextUser (lpAssetId) = makeString(["%s%s", lpAssetId, "nextUser"], SEP)
242240
243241
244242 func getUsersListName (lpAssetId) = makeString(["users", lpAssetId], SEP)
245243
246244
247245 func keyListHead (listName) = makeString(["%s%s%s", listName, "head"], SEP)
248246
249247
250248 func keyListSize (listName) = makeString(["%s%s%s", listName, "size"], SEP)
251249
252250
253251 func keyListPrev (listName,id) = makeString(["%s%s%s%s", listName, id, "prev"], SEP)
254252
255253
256254 func keyListNext (listName,id) = makeString(["%s%s%s%s", listName, id, "next"], SEP)
257255
258256
259257 func containsNode (listName,id) = {
260258 let headOrUnit = getString(this, keyListHead(listName))
261259 let prevOrUnit = getString(this, keyListPrev(listName, id))
262260 let nextOrUnit = getString(this, keyListNext(listName, id))
263261 if (if ((id == valueOrElse(headOrUnit, "")))
264262 then true
265263 else (prevOrUnit != unit))
266264 then true
267265 else (nextOrUnit != unit)
268266 }
269267
270268
271269 func insertNodeActions (listName,id) = {
272270 let headOrUnit = getString(this, keyListHead(listName))
273271 let listSize = valueOrElse(getInteger(this, keyListSize(listName)), 0)
274272 let checkNode = if (!(containsNode(listName, id)))
275273 then true
276274 else throw("Node exists")
277275 if ((checkNode == checkNode))
278276 then (([IntegerEntry(keyListSize(listName), (listSize + 1))] ++ (if ((headOrUnit != unit))
279277 then [StringEntry(keyListNext(listName, id), value(headOrUnit)), StringEntry(keyListPrev(listName, value(headOrUnit)), id)]
280278 else nil)) ++ [StringEntry(keyListHead(listName), id)])
281279 else throw("Strict value is not equal to itself.")
282280 }
283281
284282
285283 func deleteNodeActions (listName,id) = {
286284 let headOrUnit = getString(this, keyListHead(listName))
287285 let listSize = valueOrElse(getInteger(this, keyListSize(listName)), 0)
288286 let prevOrUnit = getString(this, keyListPrev(listName, id))
289287 let nextOrUnit = getString(this, keyListNext(listName, id))
290288 ([IntegerEntry(keyListSize(listName), (listSize - 1))] ++ (if (if ((prevOrUnit != unit))
291289 then (nextOrUnit != unit)
292290 else false)
293291 then [StringEntry(keyListNext(listName, value(prevOrUnit)), value(nextOrUnit)), StringEntry(keyListPrev(listName, value(nextOrUnit)), value(prevOrUnit)), DeleteEntry(keyListPrev(listName, id)), DeleteEntry(keyListNext(listName, id))]
294292 else if ((nextOrUnit != unit))
295293 then [StringEntry(keyListHead(listName), value(nextOrUnit)), DeleteEntry(keyListNext(listName, id)), DeleteEntry(keyListPrev(listName, value(nextOrUnit)))]
296294 else if ((prevOrUnit != unit))
297295 then [DeleteEntry(keyListPrev(listName, id)), DeleteEntry(keyListNext(listName, value(prevOrUnit)))]
298296 else if ((id == valueOrElse(headOrUnit, "")))
299297 then [DeleteEntry(keyListHead(listName))]
300298 else throw(((("invalid node: " + listName) + ".") + id))))
301299 }
302300
303301
304302 func calcWxPerLpIntegralUserLast (stakedByUser,wxPerLpIntegralUserLastUpdHeightOrZero,wxPerLpIntegralNew,wxPerLpIntegralUserLastKEY) = if (if ((wxPerLpIntegralUserLastUpdHeightOrZero == zeroBigInt))
305303 then (stakedByUser > zeroBigInt)
306304 else false)
307305 then zeroBigInt
308306 else if ((stakedByUser == zeroBigInt))
309307 then wxPerLpIntegralNew
310308 else if (if ((wxPerLpIntegralUserLastUpdHeightOrZero > zeroBigInt))
311309 then (stakedByUser > zeroBigInt)
312310 else false)
313311 then value(parseBigInt(getStringOrFail(this, wxPerLpIntegralUserLastKEY)))
314312 else throw("calcWxPerLpIntegralUserLast: unexpected state")
315313
316314
317315 func refreshPoolINTEGRALS (lpAssetIdStr,poolAddressStr,lpDeltaAmount) = {
318316 let stakedTotalKEY = keyStakedTotal(lpAssetIdStr)
319317 let stakedTotal = toBigInt(readStaked(stakedTotalKEY))
320318 let nonZeroStakedTotal = if ((stakedTotal == zeroBigInt))
321319 then oneBigInt
322320 else stakedTotal
323321 let poolWeight = getIntegerValue(factoryContract, keyFactoryPoolWeight(poolAddressStr))
324322 let emissionStartBlock = getIntOrFail(emissionContract, keyEmissionStartBlock())
325323 let MULT3 = 1000
326324 let wxEmissionPerBlockX3 = (getIntOrFail(emissionContract, keyEmissionRatePerBlockCurrent()) * MULT3)
327325 let poolWxEmissionPerBlockX3 = fraction(wxEmissionPerBlockX3, poolWeight, (POOLWEIGHTMULT * 3))
328326 let wxPerLpIntegralKEY = keyWxPerLpIntegral(lpAssetIdStr)
329327 let wxPerLpIntegralLastUpdHeightKEY = keyWxPerLpIntegralLastUpdHeight(lpAssetIdStr)
330328 let wxPerLpKEY = keyWxPerLp(lpAssetIdStr)
331329 let wxPerLpIntegralLastUpdHeight = getIntOrDefault(this, wxPerLpIntegralLastUpdHeightKEY, emissionStartBlock)
332330 let wxPerLpIntegral = getBigIntFromStringOrZero(this, wxPerLpIntegralKEY)
333331 let wxPerLpOrZeroX3 = 0
334332 let dh = max([(height - wxPerLpIntegralLastUpdHeight), 0])
335333 let wxPerLpX3 = if ((wxPerLpOrZeroX3 != 0))
336334 then toBigInt(wxPerLpOrZeroX3)
337335 else fraction(toBigInt(poolWxEmissionPerBlockX3), toBigInt(MULT8), nonZeroStakedTotal)
338336 let stakedTotalNew = (stakedTotal + toBigInt(lpDeltaAmount))
339337 let nonZeroStakedTotalNew = if ((stakedTotalNew == zeroBigInt))
340338 then oneBigInt
341339 else stakedTotalNew
342340 let wxPerLpIntegralNew = (wxPerLpIntegral + (wxPerLpX3 * toBigInt(dh)))
343341 let wxPerLpX3New = (toBigInt(poolWxEmissionPerBlockX3) / nonZeroStakedTotalNew)
344342 let wxPerLpIntegralLastUpdHeightNew = height
345343 let debug = makeString([toString(wxPerLpIntegralNew), toString(dh), toString(wxPerLpX3), toString(stakedTotal), toString(poolWxEmissionPerBlockX3), toString(wxEmissionPerBlockX3), toString(poolWeight)], "::")
346344 $Tuple3(wxPerLpIntegralNew, [StringEntry(wxPerLpIntegralKEY, toString(wxPerLpIntegralNew)), IntegerEntry(wxPerLpIntegralLastUpdHeightKEY, wxPerLpIntegralLastUpdHeightNew), StringEntry(wxPerLpKEY, toString(wxPerLpX3New))], debug)
347345 }
348346
349347
350348 func refreshINTEGRALS (lpAssetIdStr,userAddressStr,poolAddressStr,lpDeltaAmount) = {
351- let $t01424614368 = refreshPoolINTEGRALS(lpAssetIdStr, poolAddressStr, lpDeltaAmount)
352- let wxPerLpIntegralNew = $t01424614368._1
353- let poolIntegralSTATE = $t01424614368._2
354- let poolDEBUG = $t01424614368._3
349+ let $t01421714339 = refreshPoolINTEGRALS(lpAssetIdStr, poolAddressStr, lpDeltaAmount)
350+ let wxPerLpIntegralNew = $t01421714339._1
351+ let poolIntegralSTATE = $t01421714339._2
352+ let poolDEBUG = $t01421714339._3
355353 let MULT3 = 1000
356354 let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr)
357355 let stakedByUser = readStaked(stakedByUserKEY)
358356 let wxToClaimUserKEY = keyWxToClaimUser(lpAssetIdStr, userAddressStr)
359357 let wxPerLpIntegralUserLastUpdHeightKEY = keyWxPerLpIntegralUserLastUpdHeight(lpAssetIdStr, userAddressStr)
360358 let wxPerLpIntegralUserLastKEY = keyWxPerLpIntegralUserLast(lpAssetIdStr, userAddressStr)
361359 let wxToClaimUser = getBigIntFromStringOrZero(this, wxToClaimUserKEY)
362360 let wxPerLpIntegralUserLastUpdHeightOrZero = getIntOrZero(this, wxPerLpIntegralUserLastUpdHeightKEY)
363361 let wxPerLpIntegralUserLast = calcWxPerLpIntegralUserLast(toBigInt(stakedByUser), toBigInt(wxPerLpIntegralUserLastUpdHeightOrZero), wxPerLpIntegralNew, wxPerLpIntegralUserLastKEY)
364362 let MULT11 = (MULT8 * MULT3)
365363 let wxToClaimUserNew = max([(wxToClaimUser + fraction((wxPerLpIntegralNew - wxPerLpIntegralUserLast), toBigInt(stakedByUser), toBigInt(MULT11))), zeroBigInt])
366364 let wxPerLpIntegralUserLastNew = wxPerLpIntegralNew
367365 let wxPerLpIntegralUserLastUpdHeightNew = height
368366 let debug = makeString([toString(wxToClaimUser), toString(wxPerLpIntegralUserLast), toString(stakedByUser), poolDEBUG, toString(height)], "::")
369367 $Tuple3(wxToClaimUserNew, (poolIntegralSTATE ++ [StringEntry(wxToClaimUserKEY, toString(wxToClaimUserNew)), IntegerEntry(wxPerLpIntegralUserLastUpdHeightKEY, wxPerLpIntegralUserLastUpdHeightNew), StringEntry(wxPerLpIntegralUserLastKEY, toString(wxPerLpIntegralUserLastNew))]), debug)
370368 }
371369
372370
373371 func managerPublicKeyOrUnit () = match getString(keyManagerPublicKey()) {
374372 case s: String =>
375373 fromBase58String(s)
376374 case _: Unit =>
377375 unit
378376 case _ =>
379377 throw("Match error")
380378 }
381379
382380
383381 func pendingManagerPublicKeyOrUnit () = match getString(keyPendingManagerPublicKey()) {
384382 case s: String =>
385383 fromBase58String(s)
386384 case _: Unit =>
387385 unit
388386 case _ =>
389387 throw("Match error")
390388 }
391389
392390
393391 let permissionDeniedError = throw("Permission denied")
394392
395393 func mustThis (i) = if ((i.caller == this))
396394 then true
397395 else permissionDeniedError
398396
399397
400398 func mustManager (i) = match managerPublicKeyOrUnit() {
401399 case pk: ByteVector =>
402400 if ((i.callerPublicKey == pk))
403401 then true
404402 else permissionDeniedError
405403 case _: Unit =>
406404 if ((i.caller == this))
407405 then true
408406 else permissionDeniedError
409407 case _ =>
410408 throw("Match error")
411409 }
412410
413411
414412 @Callable(i)
415413 func constructor (factoryAddressStr) = {
416414 let checkCaller = mustManager(i)
417415 if ((checkCaller == checkCaller))
418416 then [StringEntry(keyFactoryAddress(), factoryAddressStr)]
419417 else throw("Strict value is not equal to itself.")
420418 }
421419
422420
423421
424422 @Callable(i)
425423 func constructorV2 (votingEmissionContract) = {
426424 let cheks = [mustManager(i), if ((addressFromString(votingEmissionContract) != unit))
427425 then true
428426 else "invalid voting emission contract address"]
429427 if ((cheks == cheks))
430428 then [StringEntry(keyVotingEmissionContract(), votingEmissionContract)]
431429 else throw("Strict value is not equal to itself.")
432430 }
433431
434432
435433
436434 @Callable(i)
437435 func setManager (pendingManagerPublicKey) = {
438436 let checkCaller = mustManager(i)
439437 if ((checkCaller == checkCaller))
440438 then {
441439 let checkManagerPublicKey = fromBase58String(pendingManagerPublicKey)
442440 if ((checkManagerPublicKey == checkManagerPublicKey))
443441 then [StringEntry(keyPendingManagerPublicKey(), pendingManagerPublicKey)]
444442 else throw("Strict value is not equal to itself.")
445443 }
446444 else throw("Strict value is not equal to itself.")
447445 }
448446
449447
450448
451449 @Callable(i)
452450 func confirmManager () = {
453451 let pm = pendingManagerPublicKeyOrUnit()
454452 let hasPM = if (isDefined(pm))
455453 then true
456454 else throw("No pending manager")
457455 if ((hasPM == hasPM))
458456 then {
459457 let checkPM = if ((i.callerPublicKey == value(pm)))
460458 then true
461459 else throw("You are not pending manager")
462460 if ((checkPM == checkPM))
463461 then [StringEntry(keyManagerPublicKey(), toBase58String(value(pm))), DeleteEntry(keyPendingManagerPublicKey())]
464462 else throw("Strict value is not equal to itself.")
465463 }
466464 else throw("Strict value is not equal to itself.")
467465 }
468466
469467
470468
471469 @Callable(i)
472-func stake () = {
473- let migration = if ((getBinary(this, keyMigrator) != unit))
474- then throw("maintenance")
475- else unit
476- if ((migration == migration))
477- then if ((size(i.payments) != 1))
478- then throw("invalid payment - exact one payment must be attached")
479- else {
480- let pmt = i.payments[0]
481- let lpAssetId = value(pmt.assetId)
482- let lpAssetIdStr = toBase58String(lpAssetId)
483- let amount = pmt.amount
484- let poolAddressStr = valueOrErrorMessage(getString(factoryContract, keyFactoryLp2AssetsMapping(lpAssetIdStr)), ("unsupported lp asset " + lpAssetIdStr))
485- let callerStr = toString(i.caller)
486- let userAddressStr = if ((callerStr == poolAddressStr))
487- then toString(i.originCaller)
488- else callerStr
489- let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr)
490- let stakedTotalKEY = keyStakedTotal(lpAssetIdStr)
491- let stakedByUser = readStaked(stakedByUserKEY)
492- let stakedTotal = readStaked(stakedTotalKEY)
493- let $t01893619053 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, amount)
494- let wxToClaimUserNew = $t01893619053._1
495- let integralSTATE = $t01893619053._2
496- let debug = $t01893619053._3
497- let listName = getUsersListName(lpAssetIdStr)
498- let listActions = if (containsNode(listName, userAddressStr))
499- then nil
500- else insertNodeActions(listName, userAddressStr)
501- (([IntegerEntry(stakedByUserKEY, (stakedByUser + amount)), IntegerEntry(stakedTotalKEY, (stakedTotal + amount)), OperationHistoryEntry("stake", userAddressStr, lpAssetIdStr, amount, i.transactionId)] ++ integralSTATE) ++ listActions)
502- }
503- else throw("Strict value is not equal to itself.")
504- }
470+func stake () = if ((size(i.payments) != 1))
471+ then throw("invalid payment - exact one payment must be attached")
472+ else {
473+ let pmt = i.payments[0]
474+ let lpAssetId = value(pmt.assetId)
475+ let lpAssetIdStr = toBase58String(lpAssetId)
476+ let amount = pmt.amount
477+ let poolAddressStr = valueOrErrorMessage(getString(factoryContract, keyFactoryLp2AssetsMapping(lpAssetIdStr)), ("unsupported lp asset " + lpAssetIdStr))
478+ let callerStr = toString(i.caller)
479+ let userAddressStr = if ((callerStr == poolAddressStr))
480+ then toString(i.originCaller)
481+ else callerStr
482+ let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr)
483+ let stakedTotalKEY = keyStakedTotal(lpAssetIdStr)
484+ let stakedByUser = readStaked(stakedByUserKEY)
485+ let stakedTotal = readStaked(stakedTotalKEY)
486+ let $t01877518892 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, amount)
487+ let wxToClaimUserNew = $t01877518892._1
488+ let integralSTATE = $t01877518892._2
489+ let debug = $t01877518892._3
490+ let listName = getUsersListName(lpAssetIdStr)
491+ let listActions = if (containsNode(listName, userAddressStr))
492+ then nil
493+ else insertNodeActions(listName, userAddressStr)
494+ (([IntegerEntry(stakedByUserKEY, (stakedByUser + amount)), IntegerEntry(stakedTotalKEY, (stakedTotal + amount)), OperationHistoryEntry("stake", userAddressStr, lpAssetIdStr, amount, i.transactionId)] ++ integralSTATE) ++ listActions)
495+ }
505496
506497
507498
508499 @Callable(i)
509500 func unstake (lpAssetIdStr,amount) = {
510- let migration = if ((getBinary(this, keyMigrator) != unit))
511- then throw("maintenance")
501+ let lpAssetId = fromBase58String(lpAssetIdStr)
502+ let poolAddressStr = valueOrErrorMessage(getString(factoryContract, keyFactoryLp2AssetsMapping(lpAssetIdStr)), ("unsupported lp asset " + lpAssetIdStr))
503+ let poolAddon = valueOrElse(getString(this, keyStablePoolAddonAddr()), poolAddressStr)
504+ let callerStr = toString(i.caller)
505+ let userAddressStr = if (if ((callerStr == poolAddressStr))
506+ then true
507+ else (callerStr == poolAddon))
508+ then toString(i.originCaller)
509+ else callerStr
510+ let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr)
511+ let stakedTotalKEY = keyStakedTotal(lpAssetIdStr)
512+ let stakedByUser = readStaked(stakedByUserKEY)
513+ let stakedTotal = readStaked(stakedTotalKEY)
514+ let integralSTATE = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, -(amount))._2
515+ let listName = getUsersListName(lpAssetIdStr)
516+ let listActions = if (if (containsNode(listName, userAddressStr))
517+ then (amount == stakedByUser)
518+ else false)
519+ then deleteNodeActions(listName, userAddressStr)
520+ else nil
521+ let claimedByUser = getBigIntFromStringOrZero(this, keyClaimedByUser(lpAssetIdStr, userAddressStr))
522+ let poolAddress = getStringByAddressOrFail(factoryContract, keyFactoryLpAssetToPoolContractAddress(lpAssetIdStr))
523+ let wxToClaimUserNew = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddress, 0)._1
524+ let availableToClaim = (wxToClaimUserNew - claimedByUser)
525+ let r = if ((availableToClaim > zeroBigInt))
526+ then invoke(this, "claimWxINTERNAL", [lpAssetIdStr, userAddressStr], nil)
512527 else unit
513- if ((migration == migration))
514- then {
515- let lpAssetId = fromBase58String(lpAssetIdStr)
516- let poolAddressStr = valueOrErrorMessage(getString(factoryContract, keyFactoryLp2AssetsMapping(lpAssetIdStr)), ("unsupported lp asset " + lpAssetIdStr))
517- let poolAddon = valueOrElse(getString(this, keyStablePoolAddonAddr()), poolAddressStr)
518- let callerStr = toString(i.caller)
519- let userAddressStr = if (if ((callerStr == poolAddressStr))
520- then true
521- else (callerStr == poolAddon))
522- then toString(i.originCaller)
523- else callerStr
524- let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr)
525- let stakedTotalKEY = keyStakedTotal(lpAssetIdStr)
526- let stakedByUser = readStaked(stakedByUserKEY)
527- let stakedTotal = readStaked(stakedTotalKEY)
528- let integralSTATE = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, -(amount))._2
529- let listName = getUsersListName(lpAssetIdStr)
530- let listActions = if (if (containsNode(listName, userAddressStr))
531- then (amount == stakedByUser)
532- else false)
533- then deleteNodeActions(listName, userAddressStr)
534- else nil
535- let claimedByUser = getBigIntFromStringOrZero(this, keyClaimedByUser(lpAssetIdStr, userAddressStr))
536- let poolAddress = getStringByAddressOrFail(factoryContract, keyFactoryLpAssetToPoolContractAddress(lpAssetIdStr))
537- let wxToClaimUserNew = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddress, 0)._1
538- let availableToClaim = (wxToClaimUserNew - claimedByUser)
539- let r = if ((availableToClaim > zeroBigInt))
540- then invoke(this, "claimWxINTERNAL", [lpAssetIdStr, userAddressStr], nil)
541- else unit
542- if ((r == r))
543- then if ((amount > stakedByUser))
544- then throw("passed amount is less then available")
545- else (([IntegerEntry(stakedByUserKEY, (stakedByUser - amount)), IntegerEntry(stakedTotalKEY, (stakedTotal - amount)), ScriptTransfer(i.caller, amount, lpAssetId), OperationHistoryEntry("unstake", userAddressStr, lpAssetIdStr, amount, i.transactionId)] ++ integralSTATE) ++ listActions)
546- else throw("Strict value is not equal to itself.")
547- }
528+ if ((r == r))
529+ then if ((amount > stakedByUser))
530+ then throw("passed amount is less then available")
531+ else (([IntegerEntry(stakedByUserKEY, (stakedByUser - amount)), IntegerEntry(stakedTotalKEY, (stakedTotal - amount)), ScriptTransfer(i.caller, amount, lpAssetId), OperationHistoryEntry("unstake", userAddressStr, lpAssetIdStr, amount, i.transactionId)] ++ integralSTATE) ++ listActions)
548532 else throw("Strict value is not equal to itself.")
549533 }
550534
551535
552536
553537 @Callable(i)
554538 func claimWx (lpAssetIdStr) = {
555539 let userAddressStr = toString(i.caller)
556540 let result = invoke(this, "claimWxINTERNAL", [lpAssetIdStr, userAddressStr], nil)
557541 $Tuple2(nil, result)
558542 }
559543
560544
561545
562546 @Callable(i)
563547 func claimWxINTERNAL (lpAssetIdStr,userAddressStr) = {
564548 let checkCaller = mustThis(i)
565549 if ((checkCaller == checkCaller))
566550 then {
567551 let userAddress = valueOrErrorMessage(addressFromString(userAddressStr), "claimWxINTERNAL: invalid user address")
568552 let poolAddressStr = getStringByAddressOrFail(factoryContract, keyFactoryLpAssetToPoolContractAddress(lpAssetIdStr))
569553 let claimedByUserKEY = keyClaimedByUser(lpAssetIdStr, userAddressStr)
570554 let claimedTotalKEY = keyClaimedTotal(lpAssetIdStr)
571555 let claimedByUserMinRewardKEY = keyClaimedByUserMinReward(lpAssetIdStr, userAddressStr)
572556 let claimedByUserBoostRewardKEY = keyClaimedByUserBoostReward(lpAssetIdStr, userAddressStr)
573557 let claimedByUser = getBigIntFromStringOrZero(this, claimedByUserKEY)
574558 let claimedByUserMinReward = getBigIntFromStringOrZero(this, claimedByUserMinRewardKEY)
575559 let claimedByUserBoostReward = getBigIntFromStringOrZero(this, claimedByUserBoostRewardKEY)
576560 let claimedTotal = getBigIntFromStringOrZero(this, claimedTotalKEY)
577- let $t02288322995 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, 0)
578- let wxToClaimUserNew = $t02288322995._1
579- let integralSTATE = $t02288322995._2
580- let debug = $t02288322995._3
561+ let $t02259022702 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, 0)
562+ let wxToClaimUserNew = $t02259022702._1
563+ let integralSTATE = $t02259022702._2
564+ let debug = $t02259022702._3
581565 let availableToClaim = max([(wxToClaimUserNew - claimedByUser), zeroBigInt])
582566 if ((zeroBigInt >= availableToClaim))
583567 then throw("nothing to claim")
584568 else {
585569 let wxAmountBoostTotal = max([asInt(asAnyList(invoke(boostingContract, "claimWxBoost", [lpAssetIdStr, userAddressStr], nil))[0]), 0])
586570 let minRewardPart = availableToClaim
587571 let boostRewardPart = min([(minRewardPart * toBigInt(2)), toBigInt(wxAmountBoostTotal)])
588572 let wxAssetId = asByteVector(asAnyList(invoke(emissionContract, "emit", [toInt(minRewardPart)], nil))[0])
589573 let emitBoost = asAnyList(invoke(emissionContract, "emit", [toInt(boostRewardPart)], nil))
590574 if ((emitBoost == emitBoost))
591575 then {
592576 let claimedByUserValue = (claimedByUser + availableToClaim)
593577 let claimedByUserMinRewardPlusPart = (claimedByUserMinReward + minRewardPart)
594578 let claimedByUserBoostRewardPlusBoostRewardPart = (claimedByUserMinReward + minRewardPart)
595579 let claimedTotalPlusAvailableToClaim = (claimedByUserMinReward + minRewardPart)
596580 [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)]
597581 }
598582 else throw("Strict value is not equal to itself.")
599583 }
600584 }
601585 else throw("Strict value is not equal to itself.")
602586 }
603587
604588
605589
606590 @Callable(i)
607591 func claimWxREADONLY (lpAssetIdStr,userAddressStr) = {
608592 let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr)
609593 let stakedTotalKEY = keyStakedTotal(lpAssetIdStr)
610594 let claimedByUserKEY = keyClaimedByUser(lpAssetIdStr, userAddressStr)
611595 let stakedByUser = readStaked(stakedByUserKEY)
612596 let stakedTotal = readStaked(stakedTotalKEY)
613597 let claimedByUser = getBigIntFromStringOrZero(this, claimedByUserKEY)
614598 let poolAddressStr = getStringByAddressOrFail(factoryContract, keyFactoryLpAssetToPoolContractAddress(lpAssetIdStr))
615599 let poolWeight = getIntegerValue(factoryContract, keyFactoryPoolWeight(poolAddressStr))
616600 let wxEmissionPerBlock = getIntOrFail(emissionContract, keyEmissionRatePerBlockCurrent())
617601 let emissionStartBlock = getIntOrFail(emissionContract, keyEmissionStartBlock())
618602 let passedBlocks = if ((emissionStartBlock > height))
619603 then 0
620604 else (height - emissionStartBlock)
621605 let poolWxEmission = fraction((wxEmissionPerBlock * passedBlocks), poolWeight, POOLWEIGHTMULT)
622606 let userWxReward = fraction(poolWxEmission, stakedByUser, stakedTotal)
623- let $t02563725749 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, 0)
624- let wxToClaimUserNew = $t02563725749._1
625- let integralSTATE = $t02563725749._2
626- let debug = $t02563725749._3
607+ let $t02534425456 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, 0)
608+ let wxToClaimUserNew = $t02534425456._1
609+ let integralSTATE = $t02534425456._2
610+ let debug = $t02534425456._3
627611 let availableToClaim = max([(wxToClaimUserNew - claimedByUser), zeroBigInt])
628612 let boostInvResult = asAnyList(invoke(boostingContract, "claimWxBoostREADONLY", [lpAssetIdStr, userAddressStr], nil))
629613 let wxAmountBoostTotal = max([asInt(boostInvResult[0]), 0])
630614 let boostDebug = asString(boostInvResult[1])
631615 let minRewardPart = availableToClaim
632616 let boostRewardPart = min([(minRewardPart * toBigInt(2)), toBigInt(wxAmountBoostTotal)])
633617 let totalReward = (minRewardPart + boostRewardPart)
634618 $Tuple2(nil, makeString(["%s%s%d%d%d%d%s", lpAssetIdStr, userAddressStr, toString(totalReward), toString(claimedByUser), toString(minRewardPart), toString(boostRewardPart), ((((debug + "::") + toString(userWxReward)) + "::BOOST::") + boostDebug)], SEP))
635619 }
636620
637621
638622
639623 @Callable(i)
640624 func usersListTraversal (lpAssetId) = {
641625 let checkCaller = if ((toBase58String(i.caller.bytes) == valueOrElse(getString(this, keyVotingEmissionContract()), "")))
642626 then true
643627 else mustManager(i)
644628 if ((checkCaller == checkCaller))
645629 then {
646630 let listName = getUsersListName(lpAssetId)
647631 let userOrUnit = getString(keyNextUser(lpAssetId))
648632 let headOrUnit = getString(keyListHead(listName))
649633 match userOrUnit {
650634 case _: Unit =>
651635 match headOrUnit {
652636 case _: Unit =>
653637 $Tuple2(nil, false)
654638 case head: String =>
655639 $Tuple2([StringEntry(keyNextUser(lpAssetId), head)], true)
656640 case _ =>
657641 throw("Match error")
658642 }
659643 case userAddress: String =>
660644 let claimedByUser = getBigIntFromStringOrZero(this, keyClaimedByUser(lpAssetId, userAddress))
661645 let poolAddress = getStringByAddressOrFail(factoryContract, keyFactoryLpAssetToPoolContractAddress(lpAssetId))
662646 let wxToClaimUserNew = refreshINTEGRALS(lpAssetId, userAddress, poolAddress, 0)._1
663647 let availableToClaim = (wxToClaimUserNew - claimedByUser)
664648 let r = if ((availableToClaim > zeroBigInt))
665649 then invoke(this, "claimWxINTERNAL", [lpAssetId, userAddress], nil)
666650 else unit
667651 if ((r == r))
668652 then {
669653 let nextUserOrUnit = getString(keyListNext(listName, userAddress))
670654 match nextUserOrUnit {
671655 case _: Unit =>
672656 $Tuple2([DeleteEntry(keyNextUser(lpAssetId))], false)
673657 case nextUser: String =>
674658 $Tuple2([StringEntry(keyNextUser(lpAssetId), nextUser)], true)
675659 case _ =>
676660 throw("Match error")
677661 }
678662 }
679663 else throw("Strict value is not equal to itself.")
680664 case _ =>
681665 throw("Match error")
682666 }
683667 }
684668 else throw("Strict value is not equal to itself.")
685669 }
686670
687671
688672
689673 @Callable(i)
690674 func onModifyWeight (lpAssetIdStr,poolAddressStr) = if ((i.caller != factoryContract))
691675 then throw("permissions denied")
692676 else {
693- let $t02810028210 = refreshPoolINTEGRALS(lpAssetIdStr, poolAddressStr, 0)
694- let wxPerLpIntegralNew = $t02810028210._1
695- let poolIntegralSTATE = $t02810028210._2
696- let poolDEBUG = $t02810028210._3
677+ let $t02780727917 = refreshPoolINTEGRALS(lpAssetIdStr, poolAddressStr, 0)
678+ let wxPerLpIntegralNew = $t02780727917._1
679+ let poolIntegralSTATE = $t02780727917._2
680+ let poolDEBUG = $t02780727917._3
697681 poolIntegralSTATE
698682 }
699-
700-
701-
702-@Callable(i)
703-func setMigrator (pk) = if ((pk == ""))
704- then [DeleteEntry(keyMigrator)]
705- else [BinaryEntry(keyMigrator, fromBase58String(pk))]
706683
707684
708685 @Verifier(tx)
709686 func verify () = {
710687 let targetPublicKey = match managerPublicKeyOrUnit() {
711688 case pk: ByteVector =>
712689 pk
713690 case _: Unit =>
714691 tx.senderPublicKey
715692 case _ =>
716693 throw("Match error")
717694 }
718- if (sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey))
719- then true
720- else sigVerify(tx.bodyBytes, tx.proofs[0], getBinaryValue(this, keyMigrator))
695+ sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)
721696 }
722697

github/deemru/w8io/fabc49c 
73.91 ms