tx · BL3oJzDQxq8t8jLPudSUKH8mn4h5SHVfixt7y6njYRmi 3N9Zi6AcWcGbM23jQJ4fnzFsoHoTsxYDznr: -0.02800000 Waves 2024.04.18 16:00 [3068231] smart account 3N9Zi6AcWcGbM23jQJ4fnzFsoHoTsxYDznr > SELF 0.00000000 Waves
{ "type": 13, "id": "BL3oJzDQxq8t8jLPudSUKH8mn4h5SHVfixt7y6njYRmi", "fee": 2800000, "feeAssetId": null, "timestamp": 1713445206034, "version": 2, "chainId": 84, "sender": "3N9Zi6AcWcGbM23jQJ4fnzFsoHoTsxYDznr", "senderPublicKey": "GFbasS3jufhZkK4xR7tdTjjnP8K33KvJFEDHRtxXDkaJ", "proofs": [ "3rFkBEEzkEg5owdnftXDPLsycjVJ68XapgcusYH3vJ8isi88gxu5HXdouPoYtDMuhYRSRwg2rsUbdac2MF7MqcEj" ], "script": "base64:BgL8HAgCEgQKAggBEgcKBQgICAgBEgQKAggIEgUKAwgIARIECgIICBIDCgEBEgMKAQESAwoBCBIECgIICBIECgIIBBIAEgMKAQESABIECgIICBIECgIICBIECgIICBIAEgQKAggIEgUKAwgIASIJc2VwYXJhdG9yIg5wb29sV2VpZ2h0TXVsdCIPbWF4RGVwdGhEZWZhdWx0IhlmaW5hbGl6YXRpb25TdGFnZUJhbGFuY2VzIhZmaW5hbGl6YXRpb25TdGFnZVRvdGFsIhdmaW5hbGl6YXRpb25TdGFnZVNoYXJlcyILd2F2ZXNTdHJpbmciDmtleUVwb2NoTGVuZ3RoIhFrZXlFcG9jaExlbmd0aE5ldyIVa2V5RXBvY2hMZW5ndGhCeUVwb2NoIgVlcG9jaCIPa2V5Q3VycmVudEVwb2NoIgtrZXlNYXhEZXB0aCIQa2V5UmVzdW1wdGlvbkZlZSIia2V5Vm90aW5nRW1pc3Npb25DYW5kaWRhdGVDb250cmFjdCIda2V5Vm90aW5nRW1pc3Npb25SYXRlQ29udHJhY3QiEmtleUZhY3RvcnlDb250cmFjdCITa2V5Qm9vc3Rpbm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BQJhZwIKQnl0ZVZlY3RvcgQCYnEFAmFnBQJicQMJAAECBQJhZwIEVW5pdAgFAmRzD3NlbmRlclB1YmxpY0tleQkAAgECC01hdGNoIGVycm9yCQD0AwMIBQJkcwlib2R5Qnl0ZXMJAJEDAggFAmRzBnByb29mcwAABQJkdZVbatM=", "height": 3068231, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: KTryZkBiizn7FmoWa3HxgrzWHARH3brtXuWu8ijAznF Next: 5HmkgC4yPdmKxBECrSjaNrXpyJUdUC5mTa1Xgq85b2ru Diff:
Old | New | Differences | |
---|---|---|---|
615 | 615 | } | |
616 | 616 | let totalVotes = valueOrElse(getInteger(keyTotalVotes(epoch)), 0) | |
617 | 617 | let votingResult = valueOrElse(getInteger(keyVotingResult(pool, epoch)), 0) | |
618 | - | let votePrevious = valueOrErrorMessage(getInteger(keyVote(pool, userAddress, epochPrevious)), wrapErr((((("processVoteINTERNAL " + poolStr) + " ") + userAddressStr) + ": no previous vote"))) | |
618 | + | let votePreviousOption = getInteger(keyVote(pool, userAddress, epochPrevious)) | |
619 | + | let votePrevious = valueOrErrorMessage(votePreviousOption, wrapErr((((("processVoteINTERNAL " + poolStr) + " ") + userAddressStr) + ": no previous vote"))) | |
619 | 620 | let used = valueOrElse(getInteger(this, keyUsed(userAddress, epoch)), 0) | |
620 | 621 | let lpAssetIdStr = getLpAssetByPoolAssets(amountAssetId, priceAssetId) | |
621 | 622 | let votingResultStakedPrevious = valueOrElse(getInteger(keyVotingResultStaked(lpAssetIdStr, epochPrevious)), 0) | |
622 | 623 | let stakingContract = addressFromStringValue(getStrOrFail(this, keyStakingContract)) | |
623 | 624 | let stakedByUser = valueOrElse(getInteger(stakingContract, keyStakedByUser(lpAssetIdStr, userAddressStr)), 0) | |
624 | - | let votingResultStakedActions = if ((stakedByUser == 0)) | |
625 | + | let votingResultStakedActions = if (if ((stakedByUser == 0)) | |
626 | + | then true | |
627 | + | else (votePreviousOption == unit)) | |
625 | 628 | then nil | |
626 | 629 | else [IntegerEntry(keyVotingResultStaked(lpAssetIdStr, epochPrevious), (votingResultStakedPrevious + votePrevious))] | |
627 | 630 | let lpAssetId = getLpAssetByPoolAssets(amountAssetId, priceAssetId) | |
628 | 631 | let newVote = if ((gwxAmountAtEndTotalPrevious > 0)) | |
629 | 632 | then fraction(votePrevious, gwxAmountAtEndTotal, gwxAmountAtEndTotalPrevious) | |
630 | 633 | else 0 | |
631 | - | let actions = if ((newVote > 0)) | |
632 | - | then [IntegerEntry(keyVote(pool, userAddress, epoch), newVote), IntegerEntry(keyTotalVotes(epoch), (totalVotes + newVote)), IntegerEntry(keyVotingResult(pool, epoch), (votingResult + newVote)), IntegerEntry(keyUsed(userAddress, epoch), (used + newVote))] | |
633 | - | else deleteNodeActions(getVotesListName(pool), userAddressStr) | |
634 | + | let actions = if (if ((votePreviousOption == unit)) | |
635 | + | then true | |
636 | + | else (0 >= newVote)) | |
637 | + | then deleteNodeActions(getVotesListName(pool), userAddressStr) | |
638 | + | else [IntegerEntry(keyVote(pool, userAddress, epoch), newVote), IntegerEntry(keyTotalVotes(epoch), (totalVotes + newVote)), IntegerEntry(keyVotingResult(pool, epoch), (votingResult + newVote)), IntegerEntry(keyUsed(userAddress, epoch), (used + newVote))] | |
634 | 639 | $Tuple2((actions ++ votingResultStakedActions), unit) | |
635 | 640 | } | |
636 | 641 | else throw("Strict value is not equal to itself.") | |
657 | 662 | if ((checkTargetEpoch == checkTargetEpoch)) | |
658 | 663 | then { | |
659 | 664 | let pool = stringToPool(poolStr) | |
660 | - | let $ | |
661 | - | let amountAssetId = $ | |
662 | - | let priceAssetId = $ | |
665 | + | let $t02227122311 = pool | |
666 | + | let amountAssetId = $t02227122311._1 | |
667 | + | let priceAssetId = $t02227122311._2 | |
663 | 668 | let stakingContract = addressFromStringValue(getStrOrFail(this, keyStakingContract)) | |
664 | 669 | let lpAssetId = getLpAssetByPoolAssets(amountAssetId, priceAssetId) | |
665 | 670 | let r = { | |
972 | 977 | ||
973 | 978 | @Callable(i) | |
974 | 979 | func resume (amountAssetId,priceAssetId,slippageToleranceOrMinOutAmount) = { | |
975 | - | let $t03308533215 = valueOrErrorMessage(getPoolInfo(amountAssetId, priceAssetId), wrapErr("invalid assets")) | |
976 | - | let poolAddress = $t03308533215._1 | |
977 | - | let lpAssetId = $t03308533215._2 | |
980 | + | let finalizationStageOrUnit = getInteger(this, keyFinalizationStage) | |
981 | + | let $t03326333393 = valueOrErrorMessage(getPoolInfo(amountAssetId, priceAssetId), wrapErr("invalid assets")) | |
982 | + | let poolAddress = $t03326333393._1 | |
983 | + | let lpAssetId = $t03326333393._2 | |
978 | 984 | let feePayment = i.payments[0] | |
979 | 985 | let assetsStoreContract = addressFromStringValue(getStringValue(this, keyAssetsStoreContract)) | |
980 | 986 | let kBoostingConfig = "%s__config" | |
994 | 1000 | else throw(($getType(@) + " couldn't be cast to Boolean")) | |
995 | 1001 | } | |
996 | 1002 | let resumptionFee = valueOrErrorMessage(getInteger(this, keyResumptionFee), "invalid resumption fee") | |
997 | - | let checks = [if ((feePayment.assetId == wxAssetId)) | |
1003 | + | let checks = [if ((finalizationStageOrUnit == unit)) | |
1004 | + | then true | |
1005 | + | else throwErr("finalization is in progress"), if ((feePayment.assetId == wxAssetId)) | |
998 | 1006 | then true | |
999 | 1007 | else throwErr("invalid fee payment asset id"), if ((feePayment.amount == resumptionFee)) | |
1000 | 1008 | then true |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let separator = "__" | |
5 | 5 | ||
6 | 6 | let poolWeightMult = 100000000 | |
7 | 7 | ||
8 | 8 | let maxDepthDefault = 10 | |
9 | 9 | ||
10 | 10 | let finalizationStageBalances = 0 | |
11 | 11 | ||
12 | 12 | let finalizationStageTotal = 1 | |
13 | 13 | ||
14 | 14 | let finalizationStageShares = 2 | |
15 | 15 | ||
16 | 16 | let wavesString = "WAVES" | |
17 | 17 | ||
18 | 18 | let keyEpochLength = makeString(["%s", "epochLength"], separator) | |
19 | 19 | ||
20 | 20 | let keyEpochLengthNew = makeString(["%s%s", "epochLength__new"], separator) | |
21 | 21 | ||
22 | 22 | func keyEpochLengthByEpoch (epoch) = makeString(["%s%d", "epochLength", toString(epoch)], separator) | |
23 | 23 | ||
24 | 24 | ||
25 | 25 | let keyCurrentEpoch = makeString(["%s", "currentEpoch"], separator) | |
26 | 26 | ||
27 | 27 | let keyMaxDepth = makeString(["%s", "maxDepth"], separator) | |
28 | 28 | ||
29 | 29 | let keyResumptionFee = makeString(["%s", "resumptionFee"], separator) | |
30 | 30 | ||
31 | 31 | let keyVotingEmissionCandidateContract = makeString(["%s", "votingEmissionCandidateContract"], separator) | |
32 | 32 | ||
33 | 33 | let keyVotingEmissionRateContract = makeString(["%s", "votingEmissionRateContract"], separator) | |
34 | 34 | ||
35 | 35 | let keyFactoryContract = makeString(["%s", "factoryContract"], separator) | |
36 | 36 | ||
37 | 37 | let keyBoostingContract = makeString(["%s", "boostingContract"], separator) | |
38 | 38 | ||
39 | 39 | let keyStakingContract = makeString(["%s", "stakingContract"], separator) | |
40 | 40 | ||
41 | 41 | let keyAssetsStoreContract = makeString(["%s", "assetsStoreContract"], separator) | |
42 | 42 | ||
43 | 43 | let keyFinalizationStage = makeString(["%s", "finalizationStage"], separator) | |
44 | 44 | ||
45 | 45 | let keyNextPool = makeString(["%s", "nextPool"], separator) | |
46 | 46 | ||
47 | 47 | let keyNextUser = makeString(["%s", "nextUser"], separator) | |
48 | 48 | ||
49 | 49 | let keyStartHeight = makeString(["%s", "startHeight"], separator) | |
50 | 50 | ||
51 | 51 | let keyCurrentEpochUi = makeString(["%s", "currentEpochUi"], separator) | |
52 | 52 | ||
53 | 53 | let keyStartHeightUi = makeString(["%s", "startHeightUi"], separator) | |
54 | 54 | ||
55 | 55 | let keyFinalizationShouldBeForced = makeString(["%s", "force"], separator) | |
56 | 56 | ||
57 | 57 | func keyAllowedLpScriptHash () = "%s__allowedLpScriptHash" | |
58 | 58 | ||
59 | 59 | ||
60 | 60 | func keyAllowedLpStableScriptHash () = "%s__allowedLpStableScriptHash" | |
61 | 61 | ||
62 | 62 | ||
63 | 63 | func keyStartHeightByEpoch (epoch) = makeString(["%s%d", "startHeight", toString(epoch)], separator) | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | func keyFinalized (epoch) = makeString(["%s%d", "finalized", toString(epoch)], separator) | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | func keyInList (pool) = { | |
70 | 70 | let $t021272167 = pool | |
71 | 71 | let amountAssetId = $t021272167._1 | |
72 | 72 | let priceAssetId = $t021272167._2 | |
73 | 73 | makeString(["%s%s%s", "inList", amountAssetId, priceAssetId], separator) | |
74 | 74 | } | |
75 | 75 | ||
76 | 76 | ||
77 | 77 | func keyInsufficientBalances (pool,epoch) = { | |
78 | 78 | let $t023162356 = pool | |
79 | 79 | let amountAssetId = $t023162356._1 | |
80 | 80 | let priceAssetId = $t023162356._2 | |
81 | 81 | makeString(["%s%s%s%d", "insufficientBalances", amountAssetId, priceAssetId, toString(epoch)], separator) | |
82 | 82 | } | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | func keyUsed (address,epoch) = makeString(["%s%s%d", "used", toString(address), toString(epoch)], separator) | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | func keyVote (pool,address,epoch) = { | |
89 | 89 | let $t026642704 = pool | |
90 | 90 | let amountAssetId = $t026642704._1 | |
91 | 91 | let priceAssetId = $t026642704._2 | |
92 | 92 | makeString(["%s%s%s%s%d", "vote", amountAssetId, priceAssetId, toString(address), toString(epoch)], separator) | |
93 | 93 | } | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func keyVotingResult (pool,epoch) = { | |
97 | 97 | let $t028862926 = pool | |
98 | 98 | let amountAssetId = $t028862926._1 | |
99 | 99 | let priceAssetId = $t028862926._2 | |
100 | 100 | makeString(["%s%s%s%d", "votingResult", amountAssetId, priceAssetId, toString(epoch)], separator) | |
101 | 101 | } | |
102 | 102 | ||
103 | 103 | ||
104 | 104 | func keyVotingResultStaked (lpAssetIdStr,epoch) = makeString(["%s%s%d", "votingResultStaked", lpAssetIdStr, toString(epoch)], separator) | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | func keyPoolShare (pool,epoch) = { | |
108 | 108 | let $t032473287 = pool | |
109 | 109 | let amountAssetId = $t032473287._1 | |
110 | 110 | let priceAssetId = $t032473287._2 | |
111 | 111 | makeString(["%s%s%s%d", "poolShare", amountAssetId, priceAssetId, toString(epoch)], separator) | |
112 | 112 | } | |
113 | 113 | ||
114 | 114 | ||
115 | 115 | func keyTotalVotes (epoch) = makeString(["%s%d", "totalVotes", toString(epoch)], separator) | |
116 | 116 | ||
117 | 117 | ||
118 | 118 | func keyStakedByUser (lpAssetIdStr,userAddressStr) = makeString(["%s%s%s", "staked", userAddressStr, lpAssetIdStr], separator) | |
119 | 119 | ||
120 | 120 | ||
121 | 121 | func wrapErr (msg) = makeString(["voting_emission.ride:", msg], " ") | |
122 | 122 | ||
123 | 123 | ||
124 | 124 | func throwErr (msg) = throw(wrapErr(msg)) | |
125 | 125 | ||
126 | 126 | ||
127 | 127 | func getValueOrFail (address,key,type) = { | |
128 | 128 | let error = wrapErr(makeString(["mandatory ", toString(address), ".", key, " is not defined"], "")) | |
129 | 129 | valueOrErrorMessage( match type { | |
130 | 130 | case str: String => | |
131 | 131 | getString(address, key) | |
132 | 132 | case int: Int => | |
133 | 133 | getInteger(address, key) | |
134 | 134 | case _ => | |
135 | 135 | throwErr("invalid entry type") | |
136 | 136 | }, error) | |
137 | 137 | } | |
138 | 138 | ||
139 | 139 | ||
140 | 140 | func getStrOrFail (address,key) = { | |
141 | 141 | let @ = getValueOrFail(address, key, "") | |
142 | 142 | if ($isInstanceOf(@, "String")) | |
143 | 143 | then @ | |
144 | 144 | else throw(($getType(@) + " couldn't be cast to String")) | |
145 | 145 | } | |
146 | 146 | ||
147 | 147 | ||
148 | 148 | func getIntOrFail (address,key) = { | |
149 | 149 | let @ = getValueOrFail(address, key, 0) | |
150 | 150 | if ($isInstanceOf(@, "Int")) | |
151 | 151 | then @ | |
152 | 152 | else throw(($getType(@) + " couldn't be cast to Int")) | |
153 | 153 | } | |
154 | 154 | ||
155 | 155 | ||
156 | 156 | func poolToString (pool) = ((pool._1 + separator) + pool._2) | |
157 | 157 | ||
158 | 158 | ||
159 | 159 | func stringToPool (str) = { | |
160 | 160 | let parts = split(str, separator) | |
161 | 161 | if ((size(parts) == 2)) | |
162 | 162 | then $Tuple2(parts[0], parts[1]) | |
163 | 163 | else throwErr("invalid pool string") | |
164 | 164 | } | |
165 | 165 | ||
166 | 166 | ||
167 | 167 | let factoryContract = addressFromStringValue(getStrOrFail(this, keyFactoryContract)) | |
168 | 168 | ||
169 | 169 | let IdxFactoryCfgGwxRewardDapp = 10 | |
170 | 170 | ||
171 | 171 | func keyFactoryCfg () = "%s__factoryConfig" | |
172 | 172 | ||
173 | 173 | ||
174 | 174 | func readFactoryCfgOrFail (factory) = split(getStrOrFail(factory, keyFactoryCfg()), separator) | |
175 | 175 | ||
176 | 176 | ||
177 | 177 | func getGwxRewardAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgGwxRewardDapp]) | |
178 | 178 | ||
179 | 179 | ||
180 | 180 | func parseAssetId (input) = if ((input == wavesString)) | |
181 | 181 | then unit | |
182 | 182 | else fromBase58String(input) | |
183 | 183 | ||
184 | 184 | ||
185 | 185 | func assetIdToString (input) = if ((input == unit)) | |
186 | 186 | then wavesString | |
187 | 187 | else toBase58String(value(input)) | |
188 | 188 | ||
189 | 189 | ||
190 | 190 | func getPoolInfo (amountAssetId,priceAssetId) = { | |
191 | 191 | let poolInfoOption = { | |
192 | 192 | let @ = invoke(factoryContract, "poolInfoREADONLY", [amountAssetId, priceAssetId], nil) | |
193 | 193 | if ($isInstanceOf(@, "(Address, ByteVector)")) | |
194 | 194 | then @ | |
195 | 195 | else unit | |
196 | 196 | } | |
197 | 197 | poolInfoOption | |
198 | 198 | } | |
199 | 199 | ||
200 | 200 | ||
201 | 201 | func getLpAssetByPoolAssets (amountAssetId,priceAssetId) = { | |
202 | 202 | func keyMappingsBaseAsset2internalId (baseAssetStr) = ("%s%s%s__mappings__baseAsset2internalId__" + baseAssetStr) | |
203 | 203 | ||
204 | 204 | func keyMappingPoolAssetsToPoolContractAddress (internalAmountAssetIdStr,internalPriceAssetIdStr) = (((("%d%d%s%s__" + toString(internalAmountAssetIdStr)) + "__") + toString(internalPriceAssetIdStr)) + "__mappings__poolAssets2PoolContract") | |
205 | 205 | ||
206 | 206 | func keyMappingPoolContractToLPAsset (poolContractAddress) = (("%s%s%s__" + poolContractAddress) + "__mappings__poolContract2LpAsset") | |
207 | 207 | ||
208 | 208 | let amountAssetInternalId = getIntOrFail(factoryContract, keyMappingsBaseAsset2internalId(amountAssetId)) | |
209 | 209 | let priceAssetInternalId = getIntOrFail(factoryContract, keyMappingsBaseAsset2internalId(priceAssetId)) | |
210 | 210 | let poolContractAddress = getStrOrFail(factoryContract, keyMappingPoolAssetsToPoolContractAddress(amountAssetInternalId, priceAssetInternalId)) | |
211 | 211 | let lpAssetId = getStrOrFail(factoryContract, keyMappingPoolContractToLPAsset(poolContractAddress)) | |
212 | 212 | lpAssetId | |
213 | 213 | } | |
214 | 214 | ||
215 | 215 | ||
216 | 216 | func checkWxEmissionPoolLabel (pool) = { | |
217 | 217 | let $t066476687 = pool | |
218 | 218 | let amountAssetId = $t066476687._1 | |
219 | 219 | let priceAssetId = $t066476687._2 | |
220 | 220 | let @ = invoke(factoryContract, "checkWxEmissionPoolLabel", [amountAssetId, priceAssetId], nil) | |
221 | 221 | if ($isInstanceOf(@, "Boolean")) | |
222 | 222 | then @ | |
223 | 223 | else throw(($getType(@) + " couldn't be cast to Boolean")) | |
224 | 224 | } | |
225 | 225 | ||
226 | 226 | ||
227 | 227 | func gwxRewardDeposit () = { | |
228 | 228 | let factoryCfg = readFactoryCfgOrFail(factoryContract) | |
229 | 229 | let gwxRewardsContract = getGwxRewardAddressOrFail(factoryCfg) | |
230 | 230 | invoke(gwxRewardsContract, "deposit", nil, nil) | |
231 | 231 | } | |
232 | 232 | ||
233 | 233 | ||
234 | 234 | let poolsListName = "pools" | |
235 | 235 | ||
236 | 236 | func getVotesListName (pool) = { | |
237 | 237 | let $t071047144 = pool | |
238 | 238 | let amountAssetId = $t071047144._1 | |
239 | 239 | let priceAssetId = $t071047144._2 | |
240 | 240 | makeString(["votes", amountAssetId, priceAssetId], separator) | |
241 | 241 | } | |
242 | 242 | ||
243 | 243 | ||
244 | 244 | func keyListHead (listName) = { | |
245 | 245 | let meta = if ((listName == poolsListName)) | |
246 | 246 | then "%s%s" | |
247 | 247 | else "%s%s%s%s" | |
248 | 248 | makeString([meta, listName, "head"], separator) | |
249 | 249 | } | |
250 | 250 | ||
251 | 251 | ||
252 | 252 | func keyListSize (listName) = { | |
253 | 253 | let meta = if ((listName == poolsListName)) | |
254 | 254 | then "%s%s" | |
255 | 255 | else "%s%s%s%s" | |
256 | 256 | makeString([meta, listName, "size"], separator) | |
257 | 257 | } | |
258 | 258 | ||
259 | 259 | ||
260 | 260 | func keyListPrev (listName,id) = { | |
261 | 261 | let meta = if ((listName == poolsListName)) | |
262 | 262 | then "%s%s%s%s" | |
263 | 263 | else "%s%s%s%s%s" | |
264 | 264 | makeString([meta, listName, id, "prev"], separator) | |
265 | 265 | } | |
266 | 266 | ||
267 | 267 | ||
268 | 268 | func keyListNext (listName,id) = { | |
269 | 269 | let meta = if ((listName == poolsListName)) | |
270 | 270 | then "%s%s%s%s" | |
271 | 271 | else "%s%s%s%s%s" | |
272 | 272 | makeString([meta, listName, id, "next"], separator) | |
273 | 273 | } | |
274 | 274 | ||
275 | 275 | ||
276 | 276 | func containsNode (listName,id) = { | |
277 | 277 | let headOrUnit = getString(this, keyListHead(listName)) | |
278 | 278 | let prevOrUnit = getString(this, keyListPrev(listName, id)) | |
279 | 279 | let nextOrUnit = getString(this, keyListNext(listName, id)) | |
280 | 280 | if (if ((id == valueOrElse(headOrUnit, ""))) | |
281 | 281 | then true | |
282 | 282 | else (prevOrUnit != unit)) | |
283 | 283 | then true | |
284 | 284 | else (nextOrUnit != unit) | |
285 | 285 | } | |
286 | 286 | ||
287 | 287 | ||
288 | 288 | func insertNodeActions (listName,id) = { | |
289 | 289 | let headOrUnit = getString(this, keyListHead(listName)) | |
290 | 290 | let listSize = valueOrElse(getInteger(this, keyListSize(listName)), 0) | |
291 | 291 | let checkNode = if (!(containsNode(listName, id))) | |
292 | 292 | then true | |
293 | 293 | else throwErr("Node exists") | |
294 | 294 | if ((checkNode == checkNode)) | |
295 | 295 | then (([IntegerEntry(keyListSize(listName), (listSize + 1))] ++ (if ((headOrUnit != unit)) | |
296 | 296 | then [StringEntry(keyListNext(listName, id), value(headOrUnit)), StringEntry(keyListPrev(listName, value(headOrUnit)), id)] | |
297 | 297 | else nil)) ++ [StringEntry(keyListHead(listName), id)]) | |
298 | 298 | else throw("Strict value is not equal to itself.") | |
299 | 299 | } | |
300 | 300 | ||
301 | 301 | ||
302 | 302 | func deleteNodeActions (listName,id) = { | |
303 | 303 | let headOrUnit = getString(this, keyListHead(listName)) | |
304 | 304 | let listSize = valueOrElse(getInteger(this, keyListSize(listName)), 0) | |
305 | 305 | let prevOrUnit = getString(this, keyListPrev(listName, id)) | |
306 | 306 | let nextOrUnit = getString(this, keyListNext(listName, id)) | |
307 | 307 | ([IntegerEntry(keyListSize(listName), (listSize - 1))] ++ (if (if ((prevOrUnit != unit)) | |
308 | 308 | then (nextOrUnit != unit) | |
309 | 309 | else false) | |
310 | 310 | then [StringEntry(keyListNext(listName, value(prevOrUnit)), value(nextOrUnit)), StringEntry(keyListPrev(listName, value(nextOrUnit)), value(prevOrUnit)), DeleteEntry(keyListPrev(listName, id)), DeleteEntry(keyListNext(listName, id))] | |
311 | 311 | else if ((nextOrUnit != unit)) | |
312 | 312 | then [StringEntry(keyListHead(listName), value(nextOrUnit)), DeleteEntry(keyListNext(listName, id)), DeleteEntry(keyListPrev(listName, value(nextOrUnit)))] | |
313 | 313 | else if ((prevOrUnit != unit)) | |
314 | 314 | then [DeleteEntry(keyListPrev(listName, id)), DeleteEntry(keyListNext(listName, value(prevOrUnit)))] | |
315 | 315 | else if ((id == valueOrElse(headOrUnit, ""))) | |
316 | 316 | then [DeleteEntry(keyListHead(listName))] | |
317 | 317 | else throwErr(((("invalid node: " + listName) + ".") + id)))) | |
318 | 318 | } | |
319 | 319 | ||
320 | 320 | ||
321 | 321 | func keyManagerVaultAddress () = "%s__managerVaultAddress" | |
322 | 322 | ||
323 | 323 | ||
324 | 324 | func keyManagerPublicKey () = "%s__managerPublicKey" | |
325 | 325 | ||
326 | 326 | ||
327 | 327 | func getManagerVaultAddressOrThis () = match getString(keyManagerVaultAddress()) { | |
328 | 328 | case s: String => | |
329 | 329 | addressFromStringValue(s) | |
330 | 330 | case _ => | |
331 | 331 | this | |
332 | 332 | } | |
333 | 333 | ||
334 | 334 | ||
335 | 335 | func managerPublicKeyOrUnit () = { | |
336 | 336 | let managerVaultAddress = getManagerVaultAddressOrThis() | |
337 | 337 | match getString(managerVaultAddress, keyManagerPublicKey()) { | |
338 | 338 | case s: String => | |
339 | 339 | fromBase58String(s) | |
340 | 340 | case _: Unit => | |
341 | 341 | unit | |
342 | 342 | case _ => | |
343 | 343 | throw("Match error") | |
344 | 344 | } | |
345 | 345 | } | |
346 | 346 | ||
347 | 347 | ||
348 | 348 | func isManager (i) = match managerPublicKeyOrUnit() { | |
349 | 349 | case pk: ByteVector => | |
350 | 350 | (i.callerPublicKey == pk) | |
351 | 351 | case _: Unit => | |
352 | 352 | (i.caller == this) | |
353 | 353 | case _ => | |
354 | 354 | throw("Match error") | |
355 | 355 | } | |
356 | 356 | ||
357 | 357 | ||
358 | 358 | func mustManager (i) = if (isManager(i)) | |
359 | 359 | then true | |
360 | 360 | else throw("permission denied") | |
361 | 361 | ||
362 | 362 | ||
363 | 363 | func mustThis (i) = if ((i.caller == this)) | |
364 | 364 | then true | |
365 | 365 | else throw("permission denied") | |
366 | 366 | ||
367 | 367 | ||
368 | 368 | @Callable(i) | |
369 | 369 | func getUserGwxAmountAtHeight (userAddress,targetHeight) = { | |
370 | 370 | let boostingContractAddress = valueOrErrorMessage(addressFromString(getStrOrFail(this, keyBoostingContract)), wrapErr("invalid boosting contract address")) | |
371 | 371 | $Tuple2(nil, { | |
372 | 372 | let @ = invoke(boostingContractAddress, "getUserGwxAmountAtHeightREADONLY", [userAddress, targetHeight], nil) | |
373 | 373 | if ($isInstanceOf(@, "Int")) | |
374 | 374 | then @ | |
375 | 375 | else throw(($getType(@) + " couldn't be cast to Int")) | |
376 | 376 | }) | |
377 | 377 | } | |
378 | 378 | ||
379 | 379 | ||
380 | 380 | ||
381 | 381 | @Callable(i) | |
382 | 382 | func constructor (factoryContract,votingEmissionCandidateContract,boostingContract,stakingContract,epochLength) = { | |
383 | 383 | let checks = [mustManager(i), if ((addressFromString(factoryContract) != unit)) | |
384 | 384 | then true | |
385 | 385 | else "invalid factory contract address", if ((addressFromString(votingEmissionCandidateContract) != unit)) | |
386 | 386 | then true | |
387 | 387 | else "invalid voting emission candidate contract address", if ((addressFromString(boostingContract) != unit)) | |
388 | 388 | then true | |
389 | 389 | else "invalid boosting contract address", if ((addressFromString(stakingContract) != unit)) | |
390 | 390 | then true | |
391 | 391 | else "invalid staking contract address", if ((epochLength > 0)) | |
392 | 392 | then true | |
393 | 393 | else throwErr("invalid epoch length")] | |
394 | 394 | if ((checks == checks)) | |
395 | 395 | then $Tuple2([StringEntry(keyFactoryContract, factoryContract), StringEntry(keyVotingEmissionCandidateContract, votingEmissionCandidateContract), StringEntry(keyBoostingContract, boostingContract), StringEntry(keyStakingContract, stakingContract), IntegerEntry(keyEpochLength, epochLength)], unit) | |
396 | 396 | else throw("Strict value is not equal to itself.") | |
397 | 397 | } | |
398 | 398 | ||
399 | 399 | ||
400 | 400 | ||
401 | 401 | @Callable(i) | |
402 | 402 | func create (amountAssetId,priceAssetId) = { | |
403 | 403 | let checks = [if ((toBase58String(i.caller.bytes) == valueOrElse(getString(this, keyVotingEmissionCandidateContract), ""))) | |
404 | 404 | then true | |
405 | 405 | else mustManager(i)] | |
406 | 406 | if ((checks == checks)) | |
407 | 407 | then { | |
408 | 408 | let pool = $Tuple2(amountAssetId, priceAssetId) | |
409 | 409 | let inListActions = ([BooleanEntry(keyInList(pool), true)] ++ insertNodeActions(poolsListName, poolToString(pool))) | |
410 | 410 | let currentEpochIsNotDefined = (getInteger(this, keyCurrentEpoch) == unit) | |
411 | 411 | let startHeightActions = if (currentEpochIsNotDefined) | |
412 | 412 | then { | |
413 | 413 | let epoch = 0 | |
414 | 414 | [IntegerEntry(keyCurrentEpoch, epoch), IntegerEntry(keyStartHeightByEpoch(epoch), height), IntegerEntry(keyStartHeight, height), IntegerEntry(keyCurrentEpochUi, epoch), IntegerEntry(keyStartHeightUi, height)] | |
415 | 415 | } | |
416 | 416 | else nil | |
417 | 417 | $Tuple2((inListActions ++ startHeightActions), unit) | |
418 | 418 | } | |
419 | 419 | else throw("Strict value is not equal to itself.") | |
420 | 420 | } | |
421 | 421 | ||
422 | 422 | ||
423 | 423 | ||
424 | 424 | @Callable(i) | |
425 | 425 | func vote (amountAssetId,priceAssetId,amount) = { | |
426 | 426 | let pool = $Tuple2(amountAssetId, priceAssetId) | |
427 | 427 | let epoch = valueOrElse(getInteger(this, keyCurrentEpoch), 0) | |
428 | 428 | let startHeight = getIntOrFail(this, keyStartHeightByEpoch(epoch)) | |
429 | 429 | let epochLength = getIntOrFail(this, keyEpochLength) | |
430 | 430 | let endHeight = (startHeight + epochLength) | |
431 | 431 | let finalizationStageOrUnit = getInteger(this, keyFinalizationStage) | |
432 | 432 | let used = valueOrElse(getInteger(this, keyUsed(i.caller, epoch)), 0) | |
433 | 433 | let vote = valueOrElse(getInteger(this, keyVote(pool, i.caller, epoch)), 0) | |
434 | 434 | let poolResult = valueOrElse(getInteger(this, keyVotingResult(pool, epoch)), 0) | |
435 | 435 | let totalVotes = valueOrElse(getInteger(this, keyTotalVotes(epoch)), 0) | |
436 | 436 | let gwxAmountAtEndTotal = { | |
437 | 437 | let @ = invoke(this, "getUserGwxAmountAtHeight", [toBase58String(i.caller.bytes), endHeight], nil) | |
438 | 438 | if ($isInstanceOf(@, "Int")) | |
439 | 439 | then @ | |
440 | 440 | else throw(($getType(@) + " couldn't be cast to Int")) | |
441 | 441 | } | |
442 | 442 | let available = (gwxAmountAtEndTotal - used) | |
443 | 443 | let newVote = (vote + amount) | |
444 | 444 | let wxEmission = checkWxEmissionPoolLabel(pool) | |
445 | 445 | let checks = [if ((getBoolean(keyInList(pool)) != unit)) | |
446 | 446 | then true | |
447 | 447 | else throwErr("invalid assets"), if ((endHeight > height)) | |
448 | 448 | then true | |
449 | 449 | else throwErr("invalid height"), if ((finalizationStageOrUnit == unit)) | |
450 | 450 | then true | |
451 | 451 | else throwErr("finalization in progress"), if ((gwxAmountAtEndTotal > 0)) | |
452 | 452 | then true | |
453 | 453 | else throwErr("you do not have gWX"), if (if ((amount > 0)) | |
454 | 454 | then (available >= amount) | |
455 | 455 | else false) | |
456 | 456 | then true | |
457 | 457 | else throwErr("invalid amount"), if (wxEmission) | |
458 | 458 | then true | |
459 | 459 | else throwErr("pool hasn't WX_EMISSION label")] | |
460 | 460 | if ((checks == checks)) | |
461 | 461 | then { | |
462 | 462 | let votesListName = getVotesListName(pool) | |
463 | 463 | let userAddressStr = toString(i.caller) | |
464 | 464 | let votesListActions = if (containsNode(votesListName, userAddressStr)) | |
465 | 465 | then nil | |
466 | 466 | else insertNodeActions(votesListName, userAddressStr) | |
467 | 467 | $Tuple2(([IntegerEntry(keyUsed(i.caller, epoch), (used + amount)), IntegerEntry(keyVote(pool, i.caller, epoch), newVote), IntegerEntry(keyVotingResult(pool, epoch), (poolResult + amount)), IntegerEntry(keyTotalVotes(epoch), (totalVotes + amount))] ++ votesListActions), unit) | |
468 | 468 | } | |
469 | 469 | else throw("Strict value is not equal to itself.") | |
470 | 470 | } | |
471 | 471 | ||
472 | 472 | ||
473 | 473 | ||
474 | 474 | @Callable(i) | |
475 | 475 | func cancelVote (amountAssetId,priceAssetId) = { | |
476 | 476 | let pool = $Tuple2(amountAssetId, priceAssetId) | |
477 | 477 | let epoch = valueOrElse(getInteger(this, keyCurrentEpoch), 0) | |
478 | 478 | let startHeight = getIntOrFail(this, keyStartHeightByEpoch(epoch)) | |
479 | 479 | let epochLength = getIntOrFail(this, keyEpochLength) | |
480 | 480 | let endHeight = (startHeight + epochLength) | |
481 | 481 | let finalizationStageOrUnit = getInteger(this, keyFinalizationStage) | |
482 | 482 | let used = valueOrElse(getInteger(this, keyUsed(i.caller, epoch)), 0) | |
483 | 483 | let vote = valueOrElse(getInteger(this, keyVote(pool, i.caller, epoch)), 0) | |
484 | 484 | let poolResult = valueOrElse(getInteger(this, keyVotingResult(pool, epoch)), 0) | |
485 | 485 | let totalVotes = valueOrElse(getInteger(this, keyTotalVotes(epoch)), 0) | |
486 | 486 | let checks = [if ((getBoolean(keyInList(pool)) != unit)) | |
487 | 487 | then true | |
488 | 488 | else throwErr("invalid assets"), if ((endHeight > height)) | |
489 | 489 | then true | |
490 | 490 | else throwErr("invalid height"), if ((finalizationStageOrUnit == unit)) | |
491 | 491 | then true | |
492 | 492 | else throwErr("finalization in progress"), if ((vote > 0)) | |
493 | 493 | then true | |
494 | 494 | else throwErr("no vote")] | |
495 | 495 | if ((checks == checks)) | |
496 | 496 | then { | |
497 | 497 | let votesListName = getVotesListName(pool) | |
498 | 498 | let userAddressStr = toString(i.caller) | |
499 | 499 | $Tuple2(([IntegerEntry(keyUsed(i.caller, epoch), max([(used - vote), 0])), DeleteEntry(keyVote(pool, i.caller, epoch)), IntegerEntry(keyVotingResult(pool, epoch), (poolResult - vote)), IntegerEntry(keyTotalVotes(epoch), (totalVotes - vote))] ++ deleteNodeActions(votesListName, userAddressStr)), unit) | |
500 | 500 | } | |
501 | 501 | else throw("Strict value is not equal to itself.") | |
502 | 502 | } | |
503 | 503 | ||
504 | 504 | ||
505 | 505 | ||
506 | 506 | @Callable(i) | |
507 | 507 | func setEpochLength (newEpochLength) = { | |
508 | 508 | let checks = [mustManager(i), if ((newEpochLength > 0)) | |
509 | 509 | then true | |
510 | 510 | else throwErr("invalid epoch length")] | |
511 | 511 | if ((checks == checks)) | |
512 | 512 | then $Tuple2([IntegerEntry(keyEpochLengthNew, newEpochLength)], unit) | |
513 | 513 | else throw("Strict value is not equal to itself.") | |
514 | 514 | } | |
515 | 515 | ||
516 | 516 | ||
517 | 517 | ||
518 | 518 | @Callable(i) | |
519 | 519 | func setMaxDepth (newMaxDepth) = { | |
520 | 520 | let checks = [mustManager(i), if ((newMaxDepth > 0)) | |
521 | 521 | then true | |
522 | 522 | else throwErr("invalid max depth")] | |
523 | 523 | if ((checks == checks)) | |
524 | 524 | then $Tuple2([IntegerEntry(keyMaxDepth, newMaxDepth)], unit) | |
525 | 525 | else throw("Strict value is not equal to itself.") | |
526 | 526 | } | |
527 | 527 | ||
528 | 528 | ||
529 | 529 | ||
530 | 530 | @Callable(i) | |
531 | 531 | func processPoolBalanceINTERNAL (poolStr) = { | |
532 | 532 | let checkCaller = mustThis(i) | |
533 | 533 | if ((checkCaller == checkCaller)) | |
534 | 534 | then { | |
535 | 535 | let epoch = getIntOrFail(this, keyCurrentEpoch) | |
536 | 536 | let epochPrevious = (epoch - 1) | |
537 | 537 | let pool = stringToPool(poolStr) | |
538 | 538 | let $t01736817408 = pool | |
539 | 539 | let amountAssetId = $t01736817408._1 | |
540 | 540 | let priceAssetId = $t01736817408._2 | |
541 | 541 | let lpAssetId = getLpAssetByPoolAssets(amountAssetId, priceAssetId) | |
542 | 542 | let balanceIsOkCurrent = { | |
543 | 543 | let @ = invoke(factoryContract, "checkBalance", [lpAssetId], nil) | |
544 | 544 | if ($isInstanceOf(@, "Boolean")) | |
545 | 545 | then @ | |
546 | 546 | else throw(($getType(@) + " couldn't be cast to Boolean")) | |
547 | 547 | } | |
548 | 548 | let balanceIsOkPrevious = !(valueOrElse(getBoolean(this, keyInsufficientBalances(pool, (epochPrevious - 1))), false)) | |
549 | 549 | let actions = if (!(balanceIsOkCurrent)) | |
550 | 550 | then if (!(balanceIsOkPrevious)) | |
551 | 551 | then { | |
552 | 552 | let deleteWxEmissionInv = invoke(factoryContract, "deleteWxEmissionPoolLabel", [amountAssetId, priceAssetId], nil) | |
553 | 553 | if ((deleteWxEmissionInv == deleteWxEmissionInv)) | |
554 | 554 | then { | |
555 | 555 | let modifyWeightInv = invoke(factoryContract, "modifyWeight", [lpAssetId, 0], nil) | |
556 | 556 | if ((modifyWeightInv == modifyWeightInv)) | |
557 | 557 | then { | |
558 | 558 | let poolAddress = valueOrErrorMessage(getPoolInfo(amountAssetId, priceAssetId), wrapErr("invalid assets"))._1 | |
559 | 559 | let newStatus = 3 | |
560 | 560 | let setPoolStatusInv = invoke(factoryContract, "managePool", [toString(poolAddress), newStatus], nil) | |
561 | 561 | if ((setPoolStatusInv == setPoolStatusInv)) | |
562 | 562 | then { | |
563 | 563 | let listActions = ([DeleteEntry(keyInList(pool))] ++ deleteNodeActions(poolsListName, poolToString(pool))) | |
564 | 564 | ([IntegerEntry(keyPoolShare(pool, epochPrevious), 0)] ++ listActions) | |
565 | 565 | } | |
566 | 566 | else throw("Strict value is not equal to itself.") | |
567 | 567 | } | |
568 | 568 | else throw("Strict value is not equal to itself.") | |
569 | 569 | } | |
570 | 570 | else throw("Strict value is not equal to itself.") | |
571 | 571 | } | |
572 | 572 | else [BooleanEntry(keyInsufficientBalances(pool, epochPrevious), true)] | |
573 | 573 | else nil | |
574 | 574 | $Tuple2(actions, unit) | |
575 | 575 | } | |
576 | 576 | else throw("Strict value is not equal to itself.") | |
577 | 577 | } | |
578 | 578 | ||
579 | 579 | ||
580 | 580 | ||
581 | 581 | @Callable(i) | |
582 | 582 | func processVoteINTERNAL (poolStr,userAddressStr) = { | |
583 | 583 | let checkCaller = mustThis(i) | |
584 | 584 | if ((checkCaller == checkCaller)) | |
585 | 585 | then { | |
586 | 586 | let userAddress = valueOrErrorMessage(addressFromString(userAddressStr), wrapErr(("processVoteINTERNAL: invalid user address " + userAddressStr))) | |
587 | 587 | let epoch = getIntOrFail(this, keyCurrentEpoch) | |
588 | 588 | let epochPrevious = (epoch - 1) | |
589 | 589 | let epochLength = getIntOrFail(this, keyEpochLength) | |
590 | 590 | let startHeight = getIntOrFail(this, keyStartHeightByEpoch(epoch)) | |
591 | 591 | let endHeight = (startHeight + epochLength) | |
592 | 592 | let startHeightPrevious = getIntOrFail(this, keyStartHeightByEpoch(epochPrevious)) | |
593 | 593 | let epochLengthPrevious = getIntOrFail(this, keyEpochLengthByEpoch(epochPrevious)) | |
594 | 594 | let endHeightPrevious = (startHeightPrevious + epochLengthPrevious) | |
595 | 595 | let checkTargetEpoch = if ((epochPrevious >= 0)) | |
596 | 596 | then true | |
597 | 597 | else throwErr("processVoteINTERNAL: invalid previous epoch") | |
598 | 598 | if ((checkTargetEpoch == checkTargetEpoch)) | |
599 | 599 | then { | |
600 | 600 | let pool = stringToPool(poolStr) | |
601 | 601 | let $t01976119801 = pool | |
602 | 602 | let amountAssetId = $t01976119801._1 | |
603 | 603 | let priceAssetId = $t01976119801._2 | |
604 | 604 | let gwxAmountAtEndTotal = { | |
605 | 605 | let @ = invoke(this, "getUserGwxAmountAtHeight", [userAddressStr, endHeight], nil) | |
606 | 606 | if ($isInstanceOf(@, "Int")) | |
607 | 607 | then @ | |
608 | 608 | else throw(($getType(@) + " couldn't be cast to Int")) | |
609 | 609 | } | |
610 | 610 | let gwxAmountAtEndTotalPrevious = { | |
611 | 611 | let @ = invoke(this, "getUserGwxAmountAtHeight", [userAddressStr, endHeightPrevious], nil) | |
612 | 612 | if ($isInstanceOf(@, "Int")) | |
613 | 613 | then @ | |
614 | 614 | else throw(($getType(@) + " couldn't be cast to Int")) | |
615 | 615 | } | |
616 | 616 | let totalVotes = valueOrElse(getInteger(keyTotalVotes(epoch)), 0) | |
617 | 617 | let votingResult = valueOrElse(getInteger(keyVotingResult(pool, epoch)), 0) | |
618 | - | let votePrevious = valueOrErrorMessage(getInteger(keyVote(pool, userAddress, epochPrevious)), wrapErr((((("processVoteINTERNAL " + poolStr) + " ") + userAddressStr) + ": no previous vote"))) | |
618 | + | let votePreviousOption = getInteger(keyVote(pool, userAddress, epochPrevious)) | |
619 | + | let votePrevious = valueOrErrorMessage(votePreviousOption, wrapErr((((("processVoteINTERNAL " + poolStr) + " ") + userAddressStr) + ": no previous vote"))) | |
619 | 620 | let used = valueOrElse(getInteger(this, keyUsed(userAddress, epoch)), 0) | |
620 | 621 | let lpAssetIdStr = getLpAssetByPoolAssets(amountAssetId, priceAssetId) | |
621 | 622 | let votingResultStakedPrevious = valueOrElse(getInteger(keyVotingResultStaked(lpAssetIdStr, epochPrevious)), 0) | |
622 | 623 | let stakingContract = addressFromStringValue(getStrOrFail(this, keyStakingContract)) | |
623 | 624 | let stakedByUser = valueOrElse(getInteger(stakingContract, keyStakedByUser(lpAssetIdStr, userAddressStr)), 0) | |
624 | - | let votingResultStakedActions = if ((stakedByUser == 0)) | |
625 | + | let votingResultStakedActions = if (if ((stakedByUser == 0)) | |
626 | + | then true | |
627 | + | else (votePreviousOption == unit)) | |
625 | 628 | then nil | |
626 | 629 | else [IntegerEntry(keyVotingResultStaked(lpAssetIdStr, epochPrevious), (votingResultStakedPrevious + votePrevious))] | |
627 | 630 | let lpAssetId = getLpAssetByPoolAssets(amountAssetId, priceAssetId) | |
628 | 631 | let newVote = if ((gwxAmountAtEndTotalPrevious > 0)) | |
629 | 632 | then fraction(votePrevious, gwxAmountAtEndTotal, gwxAmountAtEndTotalPrevious) | |
630 | 633 | else 0 | |
631 | - | let actions = if ((newVote > 0)) | |
632 | - | then [IntegerEntry(keyVote(pool, userAddress, epoch), newVote), IntegerEntry(keyTotalVotes(epoch), (totalVotes + newVote)), IntegerEntry(keyVotingResult(pool, epoch), (votingResult + newVote)), IntegerEntry(keyUsed(userAddress, epoch), (used + newVote))] | |
633 | - | else deleteNodeActions(getVotesListName(pool), userAddressStr) | |
634 | + | let actions = if (if ((votePreviousOption == unit)) | |
635 | + | then true | |
636 | + | else (0 >= newVote)) | |
637 | + | then deleteNodeActions(getVotesListName(pool), userAddressStr) | |
638 | + | else [IntegerEntry(keyVote(pool, userAddress, epoch), newVote), IntegerEntry(keyTotalVotes(epoch), (totalVotes + newVote)), IntegerEntry(keyVotingResult(pool, epoch), (votingResult + newVote)), IntegerEntry(keyUsed(userAddress, epoch), (used + newVote))] | |
634 | 639 | $Tuple2((actions ++ votingResultStakedActions), unit) | |
635 | 640 | } | |
636 | 641 | else throw("Strict value is not equal to itself.") | |
637 | 642 | } | |
638 | 643 | else throw("Strict value is not equal to itself.") | |
639 | 644 | } | |
640 | 645 | ||
641 | 646 | ||
642 | 647 | ||
643 | 648 | @Callable(i) | |
644 | 649 | func processPoolINTERNAL (poolStr,force) = { | |
645 | 650 | let checkCaller = mustThis(i) | |
646 | 651 | if ((checkCaller == checkCaller)) | |
647 | 652 | then { | |
648 | 653 | let targetEpoch = { | |
649 | 654 | let currentEpoch = getIntOrFail(this, keyCurrentEpoch) | |
650 | 655 | if (force) | |
651 | 656 | then currentEpoch | |
652 | 657 | else (currentEpoch - 1) | |
653 | 658 | } | |
654 | 659 | let checkTargetEpoch = if ((targetEpoch >= 0)) | |
655 | 660 | then true | |
656 | 661 | else throwErr("processPoolINTERNAL: invalid target epoch") | |
657 | 662 | if ((checkTargetEpoch == checkTargetEpoch)) | |
658 | 663 | then { | |
659 | 664 | let pool = stringToPool(poolStr) | |
660 | - | let $ | |
661 | - | let amountAssetId = $ | |
662 | - | let priceAssetId = $ | |
665 | + | let $t02227122311 = pool | |
666 | + | let amountAssetId = $t02227122311._1 | |
667 | + | let priceAssetId = $t02227122311._2 | |
663 | 668 | let stakingContract = addressFromStringValue(getStrOrFail(this, keyStakingContract)) | |
664 | 669 | let lpAssetId = getLpAssetByPoolAssets(amountAssetId, priceAssetId) | |
665 | 670 | let r = { | |
666 | 671 | let @ = invoke(stakingContract, "usersListTraversal", [lpAssetId], nil) | |
667 | 672 | if ($isInstanceOf(@, "Boolean")) | |
668 | 673 | then @ | |
669 | 674 | else throw(($getType(@) + " couldn't be cast to Boolean")) | |
670 | 675 | } | |
671 | 676 | if ((r == r)) | |
672 | 677 | then if (r) | |
673 | 678 | then $Tuple2(nil, true) | |
674 | 679 | else { | |
675 | 680 | let assetsStoreContract = addressFromStringValue(valueOrErrorMessage(getString(factoryContract, keyAssetsStoreContract), "invalid assets store contract")) | |
676 | 681 | let totalVotes = valueOrElse(getInteger(this, keyTotalVotes(targetEpoch)), 0) | |
677 | 682 | let votingResult = valueOrElse(getInteger(this, keyVotingResult(pool, targetEpoch)), 0) | |
678 | 683 | let share = if ((totalVotes == 0)) | |
679 | 684 | then 0 | |
680 | 685 | else fraction(votingResult, poolWeightMult, totalVotes) | |
681 | 686 | let modifyWeightInv = invoke(factoryContract, "modifyWeight", [lpAssetId, share], nil) | |
682 | 687 | if ((modifyWeightInv == modifyWeightInv)) | |
683 | 688 | then $Tuple2([IntegerEntry(keyPoolShare(pool, targetEpoch), share)], false) | |
684 | 689 | else throw("Strict value is not equal to itself.") | |
685 | 690 | } | |
686 | 691 | else throw("Strict value is not equal to itself.") | |
687 | 692 | } | |
688 | 693 | else throw("Strict value is not equal to itself.") | |
689 | 694 | } | |
690 | 695 | else throw("Strict value is not equal to itself.") | |
691 | 696 | } | |
692 | 697 | ||
693 | 698 | ||
694 | 699 | ||
695 | 700 | @Callable(i) | |
696 | 701 | func finalizeHelper () = { | |
697 | 702 | let force = valueOrElse(getBoolean(keyFinalizationShouldBeForced), false) | |
698 | 703 | let epoch = valueOrElse(getInteger(this, keyCurrentEpoch), 0) | |
699 | 704 | let previousEpoch = (epoch - 1) | |
700 | 705 | let startHeight = getIntOrFail(this, keyStartHeightByEpoch(epoch)) | |
701 | 706 | let epochLength = getIntOrFail(this, keyEpochLength) | |
702 | 707 | let endHeight = (startHeight + epochLength) | |
703 | 708 | let finalizationStageOrUnit = getInteger(this, keyFinalizationStage) | |
704 | 709 | if (if (if ((height >= endHeight)) | |
705 | 710 | then (finalizationStageOrUnit == unit) | |
706 | 711 | else false) | |
707 | 712 | then !(force) | |
708 | 713 | else false) | |
709 | 714 | then { | |
710 | 715 | let newEpoch = (epoch + 1) | |
711 | 716 | let newEpochLengthOption = getInteger(this, keyEpochLengthNew) | |
712 | 717 | let newEpochLengthActions = match newEpochLengthOption { | |
713 | 718 | case newEpochLength: Int => | |
714 | 719 | [IntegerEntry(keyEpochLength, newEpochLength), DeleteEntry(keyEpochLengthNew)] | |
715 | 720 | case _: Unit => | |
716 | 721 | nil | |
717 | 722 | case _ => | |
718 | 723 | throw("Match error") | |
719 | 724 | } | |
720 | 725 | $Tuple2(([IntegerEntry(keyStartHeightByEpoch(newEpoch), height), IntegerEntry(keyStartHeight, height), IntegerEntry(keyCurrentEpoch, newEpoch), IntegerEntry(keyFinalizationStage, finalizationStageBalances), IntegerEntry(keyEpochLengthByEpoch(epoch), epochLength)] ++ newEpochLengthActions), true) | |
721 | 726 | } | |
722 | 727 | else if (if (force) | |
723 | 728 | then (finalizationStageOrUnit == unit) | |
724 | 729 | else false) | |
725 | 730 | then $Tuple2([IntegerEntry(keyFinalizationStage, finalizationStageShares)], true) | |
726 | 731 | else if ((finalizationStageOrUnit == unit)) | |
727 | 732 | then $Tuple2(nil, false) | |
728 | 733 | else if ((finalizationStageOrUnit == finalizationStageBalances)) | |
729 | 734 | then { | |
730 | 735 | let poolOrUnit = getString(keyNextPool) | |
731 | 736 | match poolOrUnit { | |
732 | 737 | case _: Unit => | |
733 | 738 | match getString(keyListHead(poolsListName)) { | |
734 | 739 | case _: Unit => | |
735 | 740 | $Tuple2([IntegerEntry(keyFinalizationStage, finalizationStageTotal), DeleteEntry(keyNextPool)], true) | |
736 | 741 | case nextPoolStr: String => | |
737 | 742 | $Tuple2([StringEntry(keyNextPool, nextPoolStr)], true) | |
738 | 743 | case _ => | |
739 | 744 | throw("Match error") | |
740 | 745 | } | |
741 | 746 | case poolStr: String => | |
742 | 747 | let nextPoolOrUnit = getString(keyListNext(poolsListName, poolStr)) | |
743 | 748 | if ((nextPoolOrUnit == nextPoolOrUnit)) | |
744 | 749 | then { | |
745 | 750 | let r = invoke(this, "processPoolBalanceINTERNAL", [poolStr], nil) | |
746 | 751 | if ((r == r)) | |
747 | 752 | then match nextPoolOrUnit { | |
748 | 753 | case _: Unit => | |
749 | 754 | $Tuple2([IntegerEntry(keyFinalizationStage, finalizationStageTotal), DeleteEntry(keyNextPool)], true) | |
750 | 755 | case nextPoolStr: String => | |
751 | 756 | $Tuple2([StringEntry(keyNextPool, nextPoolStr)], true) | |
752 | 757 | case _ => | |
753 | 758 | throw("Match error") | |
754 | 759 | } | |
755 | 760 | else throw("Strict value is not equal to itself.") | |
756 | 761 | } | |
757 | 762 | else throw("Strict value is not equal to itself.") | |
758 | 763 | case _ => | |
759 | 764 | throw("Match error") | |
760 | 765 | } | |
761 | 766 | } | |
762 | 767 | else if ((finalizationStageOrUnit == finalizationStageTotal)) | |
763 | 768 | then { | |
764 | 769 | let poolOrUnit = getString(keyNextPool) | |
765 | 770 | let userOrUnit = getString(keyNextUser) | |
766 | 771 | match poolOrUnit { | |
767 | 772 | case _: Unit => | |
768 | 773 | match getString(keyListHead(poolsListName)) { | |
769 | 774 | case _: Unit => | |
770 | 775 | $Tuple2([IntegerEntry(keyFinalizationStage, finalizationStageShares), DeleteEntry(keyNextPool), DeleteEntry(keyNextUser)], true) | |
771 | 776 | case poolsHeadStr: String => | |
772 | 777 | $Tuple2([StringEntry(keyNextPool, poolsHeadStr)], true) | |
773 | 778 | case _ => | |
774 | 779 | throw("Match error") | |
775 | 780 | } | |
776 | 781 | case poolStr: String => | |
777 | 782 | let pool = stringToPool(poolStr) | |
778 | 783 | let nextUserOrUnit = match userOrUnit { | |
779 | 784 | case _: Unit => | |
780 | 785 | getString(keyListHead(getVotesListName(pool))) | |
781 | 786 | case user: String => | |
782 | 787 | let next = getString(keyListNext(getVotesListName(pool), user)) | |
783 | 788 | if ((next == next)) | |
784 | 789 | then { | |
785 | 790 | let processVoteInv = invoke(this, "processVoteINTERNAL", [poolStr, user], nil) | |
786 | 791 | if ((processVoteInv == processVoteInv)) | |
787 | 792 | then next | |
788 | 793 | else throw("Strict value is not equal to itself.") | |
789 | 794 | } | |
790 | 795 | else throw("Strict value is not equal to itself.") | |
791 | 796 | case _ => | |
792 | 797 | throw("Match error") | |
793 | 798 | } | |
794 | 799 | match nextUserOrUnit { | |
795 | 800 | case _: Unit => | |
796 | 801 | let nextPoolOrUnit = getString(keyListNext(poolsListName, poolStr)) | |
797 | 802 | match nextPoolOrUnit { | |
798 | 803 | case _: Unit => | |
799 | 804 | $Tuple2([IntegerEntry(keyFinalizationStage, finalizationStageShares), DeleteEntry(keyNextPool), DeleteEntry(keyNextUser)], true) | |
800 | 805 | case s: String => | |
801 | 806 | $Tuple2([StringEntry(keyNextPool, s), DeleteEntry(keyNextUser)], true) | |
802 | 807 | case _ => | |
803 | 808 | throw("Match error") | |
804 | 809 | } | |
805 | 810 | case nextUser: String => | |
806 | 811 | $Tuple2([StringEntry(keyNextUser, nextUser)], true) | |
807 | 812 | case _ => | |
808 | 813 | throw("Match error") | |
809 | 814 | } | |
810 | 815 | case _ => | |
811 | 816 | throw("Match error") | |
812 | 817 | } | |
813 | 818 | } | |
814 | 819 | else if ((finalizationStageOrUnit == finalizationStageShares)) | |
815 | 820 | then { | |
816 | 821 | let poolOrUnit = getString(keyNextPool) | |
817 | 822 | match poolOrUnit { | |
818 | 823 | case _: Unit => | |
819 | 824 | match getString(keyListHead(poolsListName)) { | |
820 | 825 | case _: Unit => | |
821 | 826 | let actions = if (force) | |
822 | 827 | then [DeleteEntry(keyFinalizationStage), DeleteEntry(keyFinalizationShouldBeForced)] | |
823 | 828 | else [DeleteEntry(keyFinalizationStage), BooleanEntry(keyFinalized(previousEpoch), true), IntegerEntry(keyCurrentEpochUi, epoch), IntegerEntry(keyStartHeightUi, startHeight)] | |
824 | 829 | let gwxRewardDepositInv = gwxRewardDeposit() | |
825 | 830 | if ((gwxRewardDepositInv == gwxRewardDepositInv)) | |
826 | 831 | then $Tuple2(actions, true) | |
827 | 832 | else throw("Strict value is not equal to itself.") | |
828 | 833 | case nextPoolStr: String => | |
829 | 834 | $Tuple2([StringEntry(keyNextPool, nextPoolStr)], true) | |
830 | 835 | case _ => | |
831 | 836 | throw("Match error") | |
832 | 837 | } | |
833 | 838 | case poolStr: String => | |
834 | 839 | let nextPoolOrUnit = getString(keyListNext(poolsListName, poolStr)) | |
835 | 840 | if ((nextPoolOrUnit == nextPoolOrUnit)) | |
836 | 841 | then { | |
837 | 842 | let r = { | |
838 | 843 | let @ = invoke(this, "processPoolINTERNAL", [poolStr, force], nil) | |
839 | 844 | if ($isInstanceOf(@, "Boolean")) | |
840 | 845 | then @ | |
841 | 846 | else throw(($getType(@) + " couldn't be cast to Boolean")) | |
842 | 847 | } | |
843 | 848 | if ((r == r)) | |
844 | 849 | then if (r) | |
845 | 850 | then $Tuple2(nil, true) | |
846 | 851 | else match nextPoolOrUnit { | |
847 | 852 | case _: Unit => | |
848 | 853 | let actions = if (force) | |
849 | 854 | then [DeleteEntry(keyFinalizationStage), DeleteEntry(keyFinalizationShouldBeForced), DeleteEntry(keyNextPool)] | |
850 | 855 | else [DeleteEntry(keyFinalizationStage), BooleanEntry(keyFinalized(previousEpoch), true), IntegerEntry(keyCurrentEpochUi, epoch), IntegerEntry(keyStartHeightUi, startHeight), DeleteEntry(keyNextPool)] | |
851 | 856 | let gwxRewardDepositInv = gwxRewardDeposit() | |
852 | 857 | if ((gwxRewardDepositInv == gwxRewardDepositInv)) | |
853 | 858 | then $Tuple2(actions, true) | |
854 | 859 | else throw("Strict value is not equal to itself.") | |
855 | 860 | case nextPoolStr: String => | |
856 | 861 | $Tuple2([StringEntry(keyNextPool, nextPoolStr)], true) | |
857 | 862 | case _ => | |
858 | 863 | throw("Match error") | |
859 | 864 | } | |
860 | 865 | else throw("Strict value is not equal to itself.") | |
861 | 866 | } | |
862 | 867 | else throw("Strict value is not equal to itself.") | |
863 | 868 | case _ => | |
864 | 869 | throw("Match error") | |
865 | 870 | } | |
866 | 871 | } | |
867 | 872 | else throwErr("finalization is broken") | |
868 | 873 | } | |
869 | 874 | ||
870 | 875 | ||
871 | 876 | ||
872 | 877 | @Callable(i) | |
873 | 878 | func finalizeWrapper (counter) = { | |
874 | 879 | let votingEmissionRateContract = addressFromStringValue(getStringValue(this, keyVotingEmissionRateContract)) | |
875 | 880 | let result = { | |
876 | 881 | let @ = invoke(this, "finalizeHelper", nil, nil) | |
877 | 882 | if ($isInstanceOf(@, "Boolean")) | |
878 | 883 | then @ | |
879 | 884 | else throw(($getType(@) + " couldn't be cast to Boolean")) | |
880 | 885 | } | |
881 | 886 | if ((result == result)) | |
882 | 887 | then if (!(result)) | |
883 | 888 | then if ((counter == 0)) | |
884 | 889 | then throwErr("Current voting is not over yet") | |
885 | 890 | else { | |
886 | 891 | let inv = invoke(votingEmissionRateContract, "finalize", nil, nil) | |
887 | 892 | if ((inv == inv)) | |
888 | 893 | then $Tuple2(nil, unit) | |
889 | 894 | else throw("Strict value is not equal to itself.") | |
890 | 895 | } | |
891 | 896 | else { | |
892 | 897 | let maxDepth = valueOrElse(getInteger(this, keyMaxDepth), maxDepthDefault) | |
893 | 898 | if ((maxDepth > counter)) | |
894 | 899 | then { | |
895 | 900 | let inv = invoke(this, "finalizeWrapper", [(counter + 1)], nil) | |
896 | 901 | if ((inv == inv)) | |
897 | 902 | then $Tuple2(nil, unit) | |
898 | 903 | else throw("Strict value is not equal to itself.") | |
899 | 904 | } | |
900 | 905 | else $Tuple2(nil, unit) | |
901 | 906 | } | |
902 | 907 | else throw("Strict value is not equal to itself.") | |
903 | 908 | } | |
904 | 909 | ||
905 | 910 | ||
906 | 911 | ||
907 | 912 | @Callable(i) | |
908 | 913 | func finalize () = { | |
909 | 914 | let inv = invoke(this, "finalizeWrapper", [0], nil) | |
910 | 915 | if ((inv == inv)) | |
911 | 916 | then $Tuple2(nil, unit) | |
912 | 917 | else throw("Strict value is not equal to itself.") | |
913 | 918 | } | |
914 | 919 | ||
915 | 920 | ||
916 | 921 | ||
917 | 922 | @Callable(i) | |
918 | 923 | func containsNodeREADONLY (listName,id) = $Tuple2(nil, containsNode(listName, id)) | |
919 | 924 | ||
920 | 925 | ||
921 | 926 | ||
922 | 927 | @Callable(i) | |
923 | 928 | func insertNode (listName,id) = { | |
924 | 929 | let checkCaller = mustManager(i) | |
925 | 930 | if ((checkCaller == checkCaller)) | |
926 | 931 | then $Tuple2(insertNodeActions(listName, id), unit) | |
927 | 932 | else throw("Strict value is not equal to itself.") | |
928 | 933 | } | |
929 | 934 | ||
930 | 935 | ||
931 | 936 | ||
932 | 937 | @Callable(i) | |
933 | 938 | func deleteNode (listName,id) = { | |
934 | 939 | let checkCaller = mustManager(i) | |
935 | 940 | if ((checkCaller == checkCaller)) | |
936 | 941 | then $Tuple2(deleteNodeActions(listName, id), unit) | |
937 | 942 | else throw("Strict value is not equal to itself.") | |
938 | 943 | } | |
939 | 944 | ||
940 | 945 | ||
941 | 946 | ||
942 | 947 | @Callable(i) | |
943 | 948 | func isFinalizationInProgress () = { | |
944 | 949 | let finalizationStageOrUnit = getInteger(this, keyFinalizationStage) | |
945 | 950 | let finalizationInProgress = (finalizationStageOrUnit != unit) | |
946 | 951 | $Tuple2(nil, finalizationInProgress) | |
947 | 952 | } | |
948 | 953 | ||
949 | 954 | ||
950 | 955 | ||
951 | 956 | @Callable(i) | |
952 | 957 | func deletePool (amountAssetId,priceAssetId) = { | |
953 | 958 | let checkCaller = if (if ((i.caller == factoryContract)) | |
954 | 959 | then true | |
955 | 960 | else mustManager(i)) | |
956 | 961 | then true | |
957 | 962 | else throwErr("Permission denied") | |
958 | 963 | if ((checkCaller == checkCaller)) | |
959 | 964 | then { | |
960 | 965 | let listName = "pools" | |
961 | 966 | let pool = $Tuple2(amountAssetId, priceAssetId) | |
962 | 967 | let id = makeString([amountAssetId, priceAssetId], separator) | |
963 | 968 | let actions = if (containsNode(listName, id)) | |
964 | 969 | then deleteNodeActions(listName, id) | |
965 | 970 | else nil | |
966 | 971 | ([DeleteEntry(keyInList(pool))] ++ actions) | |
967 | 972 | } | |
968 | 973 | else throw("Strict value is not equal to itself.") | |
969 | 974 | } | |
970 | 975 | ||
971 | 976 | ||
972 | 977 | ||
973 | 978 | @Callable(i) | |
974 | 979 | func resume (amountAssetId,priceAssetId,slippageToleranceOrMinOutAmount) = { | |
975 | - | let $t03308533215 = valueOrErrorMessage(getPoolInfo(amountAssetId, priceAssetId), wrapErr("invalid assets")) | |
976 | - | let poolAddress = $t03308533215._1 | |
977 | - | let lpAssetId = $t03308533215._2 | |
980 | + | let finalizationStageOrUnit = getInteger(this, keyFinalizationStage) | |
981 | + | let $t03326333393 = valueOrErrorMessage(getPoolInfo(amountAssetId, priceAssetId), wrapErr("invalid assets")) | |
982 | + | let poolAddress = $t03326333393._1 | |
983 | + | let lpAssetId = $t03326333393._2 | |
978 | 984 | let feePayment = i.payments[0] | |
979 | 985 | let assetsStoreContract = addressFromStringValue(getStringValue(this, keyAssetsStoreContract)) | |
980 | 986 | let kBoostingConfig = "%s__config" | |
981 | 987 | let idxCfgAssetId = 1 | |
982 | 988 | let boostingContract = addressFromStringValue(getStrOrFail(this, keyBoostingContract)) | |
983 | 989 | let wxAssetId = fromBase58String(split(getStringValue(boostingContract, kBoostingConfig), separator)[idxCfgAssetId]) | |
984 | 990 | let amountAssetVerified = { | |
985 | 991 | let @ = invoke(assetsStoreContract, "isVerifiedREADONLY", [amountAssetId], nil) | |
986 | 992 | if ($isInstanceOf(@, "Boolean")) | |
987 | 993 | then @ | |
988 | 994 | else throw(($getType(@) + " couldn't be cast to Boolean")) | |
989 | 995 | } | |
990 | 996 | let priceAssetVerified = { | |
991 | 997 | let @ = invoke(assetsStoreContract, "isVerifiedREADONLY", [priceAssetId], nil) | |
992 | 998 | if ($isInstanceOf(@, "Boolean")) | |
993 | 999 | then @ | |
994 | 1000 | else throw(($getType(@) + " couldn't be cast to Boolean")) | |
995 | 1001 | } | |
996 | 1002 | let resumptionFee = valueOrErrorMessage(getInteger(this, keyResumptionFee), "invalid resumption fee") | |
997 | - | let checks = [if ((feePayment.assetId == wxAssetId)) | |
1003 | + | let checks = [if ((finalizationStageOrUnit == unit)) | |
1004 | + | then true | |
1005 | + | else throwErr("finalization is in progress"), if ((feePayment.assetId == wxAssetId)) | |
998 | 1006 | then true | |
999 | 1007 | else throwErr("invalid fee payment asset id"), if ((feePayment.amount == resumptionFee)) | |
1000 | 1008 | then true | |
1001 | 1009 | else throwErr("invalid fee payment amount"), if (if (amountAssetVerified) | |
1002 | 1010 | then priceAssetVerified | |
1003 | 1011 | else false) | |
1004 | 1012 | then true | |
1005 | 1013 | else throwErr("both assets should be verified")] | |
1006 | 1014 | if ((checks == checks)) | |
1007 | 1015 | then { | |
1008 | 1016 | let lpAssetBalanceBefore = assetBalance(this, lpAssetId) | |
1009 | 1017 | if ((lpAssetBalanceBefore == lpAssetBalanceBefore)) | |
1010 | 1018 | then { | |
1011 | 1019 | let autoStake = false | |
1012 | 1020 | let put = if ((size(i.payments) == 1)) | |
1013 | 1021 | then { | |
1014 | 1022 | let balanceIsOk = { | |
1015 | 1023 | let @ = invoke(factoryContract, "checkBalance", [assetIdToString(lpAssetId)], nil) | |
1016 | 1024 | if ($isInstanceOf(@, "Boolean")) | |
1017 | 1025 | then @ | |
1018 | 1026 | else throw(($getType(@) + " couldn't be cast to Boolean")) | |
1019 | 1027 | } | |
1020 | 1028 | if (balanceIsOk) | |
1021 | 1029 | then true | |
1022 | 1030 | else throwErr("assets should be attached") | |
1023 | 1031 | } | |
1024 | 1032 | else if ((size(i.payments) == 2)) | |
1025 | 1033 | then { | |
1026 | 1034 | let poolScriptHash = valueOrErrorMessage(scriptHash(poolAddress), wrapErr("pool address is not scripted")) | |
1027 | 1035 | let allowedScriptHash = fromBase64String(valueOrErrorMessage(getString(factoryContract, keyAllowedLpStableScriptHash()), wrapErr("allowed lp stable script hash is not set"))) | |
1028 | 1036 | let isStable = (poolScriptHash == allowedScriptHash) | |
1029 | 1037 | let functionName = if (isStable) | |
1030 | 1038 | then "putOneTknV2" | |
1031 | 1039 | else "putOneTkn" | |
1032 | 1040 | invoke(poolAddress, functionName, [slippageToleranceOrMinOutAmount, autoStake], [i.payments[1]]) | |
1033 | 1041 | } | |
1034 | 1042 | else if ((size(i.payments) == 3)) | |
1035 | 1043 | then invoke(poolAddress, "put", [slippageToleranceOrMinOutAmount, autoStake], [i.payments[1], i.payments[2]]) | |
1036 | 1044 | else throwErr("invalid payments size") | |
1037 | 1045 | if ((put == put)) | |
1038 | 1046 | then { | |
1039 | 1047 | let lpAssetBalanceAfter = assetBalance(this, lpAssetId) | |
1040 | 1048 | if ((lpAssetBalanceAfter == lpAssetBalanceAfter)) | |
1041 | 1049 | then { | |
1042 | 1050 | let lpAssetBalanceDiff = (lpAssetBalanceAfter - lpAssetBalanceBefore) | |
1043 | 1051 | let lpAssetTransferActions = if ((lpAssetBalanceDiff > 0)) | |
1044 | 1052 | then [ScriptTransfer(i.caller, lpAssetBalanceDiff, lpAssetId)] | |
1045 | 1053 | else nil | |
1046 | 1054 | let setWxEmissionInv = invoke(factoryContract, "setWxEmissionPoolLabel", [amountAssetId, priceAssetId], nil) | |
1047 | 1055 | if ((setWxEmissionInv == setWxEmissionInv)) | |
1048 | 1056 | then { | |
1049 | 1057 | let pool = $Tuple2(amountAssetId, priceAssetId) | |
1050 | 1058 | let inListActions = ([BooleanEntry(keyInList(pool), true)] ++ insertNodeActions(poolsListName, poolToString(pool))) | |
1051 | 1059 | $Tuple2((inListActions ++ lpAssetTransferActions), unit) | |
1052 | 1060 | } | |
1053 | 1061 | else throw("Strict value is not equal to itself.") | |
1054 | 1062 | } | |
1055 | 1063 | else throw("Strict value is not equal to itself.") | |
1056 | 1064 | } | |
1057 | 1065 | else throw("Strict value is not equal to itself.") | |
1058 | 1066 | } | |
1059 | 1067 | else throw("Strict value is not equal to itself.") | |
1060 | 1068 | } | |
1061 | 1069 | else throw("Strict value is not equal to itself.") | |
1062 | 1070 | } | |
1063 | 1071 | ||
1064 | 1072 | ||
1065 | 1073 | @Verifier(tx) | |
1066 | 1074 | func verify () = { | |
1067 | 1075 | let targetPublicKey = match managerPublicKeyOrUnit() { | |
1068 | 1076 | case pk: ByteVector => | |
1069 | 1077 | pk | |
1070 | 1078 | case _: Unit => | |
1071 | 1079 | tx.senderPublicKey | |
1072 | 1080 | case _ => | |
1073 | 1081 | throw("Match error") | |
1074 | 1082 | } | |
1075 | 1083 | sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey) | |
1076 | 1084 | } | |
1077 | 1085 |
github/deemru/w8io/026f985 97.06 ms ◑