tx · 2mZgu1Cjhs5Cj2gYCuR9ChbfZfn85ieLWKzf7dw89and 3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz: -0.02900000 Waves 2022.07.01 17:22 [2120699] smart account 3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz > SELF 0.00000000 Waves
{ "type": 13, "id": "2mZgu1Cjhs5Cj2gYCuR9ChbfZfn85ieLWKzf7dw89and", "fee": 2900000, "feeAssetId": null, "timestamp": 1656685409697, "version": 1, "sender": "3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz", "senderPublicKey": "D28XoueZWsMfm8Y5pa6C5ZFuYoWgre2Wm8tzJANJgMnq", "proofs": [ "DRyDmCRiXjx97rJM93VevQXQqM5GZjjs28XPtrNGmPnUuSKkdvoumG1YQmryRGUyfgjbouXm6Hk31ndYnArmic9" ], "script": "base64:BgI3CAISAwoBCBIDCgEIEgMKAQgSABIAEgQKAggBEgMKAQgSBAoCCAgSBAoCCAgSAwoBCBIECgIICF0ABlNDQUxFOAAIAAVNVUxUOACAwtcvAAdTQ0FMRTE4ABIABk1VTFQxOAkAtgIBAICAkLu61q3wDQADU0VQAgJfXwAOUE9PTFdFSUdIVE1VTFQFBU1VTFQ4AAp6ZXJvQmlnSW50CQC2AgEAAAAJb25lQmlnSW50CQC2AgEAAQEJYXNBbnlMaXN0AQN2YWwEByRtYXRjaDAFA3ZhbAMJAAECBQckbWF0Y2gwAglMaXN0W0FueV0ECnZhbEFueUx5c3QFByRtYXRjaDAFCnZhbEFueUx5c3QJAAIBAhtmYWlsIHRvIGNhc3QgaW50byBMaXN0W0FueV0BBWFzSW50AQN2YWwEByRtYXRjaDAFA3ZhbAMJAAECBQckbWF0Y2gwAgNJbnQEBnZhbEludAUHJG1hdGNoMAUGdmFsSW50CQACAQIVZmFpbCB0byBjYXN0IGludG8gSW50AQhhc1N0cmluZwEDdmFsBAckbWF0Y2gwBQN2YWwDCQABAgUHJG1hdGNoMAIGU3RyaW5n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VncmFsU1RBVEUIBQ0kdDAyNzc1NjI3ODY2Al8yBAlwb29sREVCVUcIBQ0kdDAyNzc1NjI3ODY2Al8zBRFwb29sSW50ZWdyYWxTVEFURQECdHgBBnZlcmlmeQAED3RhcmdldFB1YmxpY0tleQQHJG1hdGNoMAkBFm1hbmFnZXJQdWJsaWNLZXlPclVuaXQAAwkAAQIFByRtYXRjaDACCkJ5dGVWZWN0b3IEAnBrBQckbWF0Y2gwBQJwawMJAAECBQckbWF0Y2gwAgRVbml0CAUCdHgPc2VuZGVyUHVibGljS2V5CQACAQILTWF0Y2ggZXJyb3IJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAFD3RhcmdldFB1YmxpY0tleTX5g84=", "chainId": 84, "height": 2120699, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7sPC7WGKDVesY1h9B7tEHeV5qT3UBWHx8kyCvNanpTE4 Next: 2JA152MYBtYdH3Wfh6hgKkkywc3qDUu7HkEjeBXBzhxR Diff:
Old | New | Differences | |
---|---|---|---|
615 | 615 | let minRewardPart = availableToClaim | |
616 | 616 | let boostRewardPart = min([(minRewardPart * toBigInt(2)), toBigInt(wxAmountBoostTotal)]) | |
617 | 617 | let totalReward = (minRewardPart + boostRewardPart) | |
618 | - | $Tuple2(nil, makeString(["%s%s%d%d%d%d%s", lpAssetIdStr, userAddressStr, toString(totalReward), toString(claimedByUser), toString(minRewardPart), toString(boostRewardPart), | |
618 | + | $Tuple2(nil, makeString(["%s%s%d%d%d%d%s", lpAssetIdStr, userAddressStr, toString(totalReward), toString(claimedByUser), toString(minRewardPart), toString(boostRewardPart), "soon"], SEP)) | |
619 | 619 | } | |
620 | 620 | ||
621 | 621 | ||
674 | 674 | func onModifyWeight (lpAssetIdStr,poolAddressStr) = if ((i.caller != factoryContract)) | |
675 | 675 | then throw("permissions denied") | |
676 | 676 | else { | |
677 | - | let $ | |
678 | - | let wxPerLpIntegralNew = $ | |
679 | - | let poolIntegralSTATE = $ | |
680 | - | let poolDEBUG = $ | |
677 | + | let $t02775627866 = refreshPoolINTEGRALS(lpAssetIdStr, poolAddressStr, 0) | |
678 | + | let wxPerLpIntegralNew = $t02775627866._1 | |
679 | + | let poolIntegralSTATE = $t02775627866._2 | |
680 | + | let poolDEBUG = $t02775627866._3 | |
681 | 681 | poolIntegralSTATE | |
682 | 682 | } | |
683 | 683 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let SCALE8 = 8 | |
5 | 5 | ||
6 | 6 | let MULT8 = 100000000 | |
7 | 7 | ||
8 | 8 | let SCALE18 = 18 | |
9 | 9 | ||
10 | 10 | let MULT18 = toBigInt(1000000000000000000) | |
11 | 11 | ||
12 | 12 | let SEP = "__" | |
13 | 13 | ||
14 | 14 | let POOLWEIGHTMULT = MULT8 | |
15 | 15 | ||
16 | 16 | let zeroBigInt = toBigInt(0) | |
17 | 17 | ||
18 | 18 | let oneBigInt = toBigInt(1) | |
19 | 19 | ||
20 | 20 | func asAnyList (val) = match val { | |
21 | 21 | case valAnyLyst: List[Any] => | |
22 | 22 | valAnyLyst | |
23 | 23 | case _ => | |
24 | 24 | throw("fail to cast into List[Any]") | |
25 | 25 | } | |
26 | 26 | ||
27 | 27 | ||
28 | 28 | func asInt (val) = match val { | |
29 | 29 | case valInt: Int => | |
30 | 30 | valInt | |
31 | 31 | case _ => | |
32 | 32 | throw("fail to cast into Int") | |
33 | 33 | } | |
34 | 34 | ||
35 | 35 | ||
36 | 36 | func asString (val) = match val { | |
37 | 37 | case valStr: String => | |
38 | 38 | valStr | |
39 | 39 | case _ => | |
40 | 40 | throw("fail to cast into Int") | |
41 | 41 | } | |
42 | 42 | ||
43 | 43 | ||
44 | 44 | func asByteVector (val) = match val { | |
45 | 45 | case valBin: ByteVector => | |
46 | 46 | valBin | |
47 | 47 | case _ => | |
48 | 48 | throw("fail to cast into Int") | |
49 | 49 | } | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), (("mandatory this." + key) + " is not defined")) | |
53 | 53 | ||
54 | 54 | ||
55 | 55 | func getStringByAddressOrFail (address,key) = valueOrErrorMessage(getString(address, key), (((("mandatory " + toString(address)) + ".") + key) + " is not defined")) | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | func getIntOrZero (address,key) = valueOrElse(getInteger(address, key), 0) | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | func getIntOrDefault (address,key,defaultVal) = valueOrElse(getInteger(address, key), defaultVal) | |
62 | 62 | ||
63 | 63 | ||
64 | 64 | func getIntOrFail (address,key) = valueOrErrorMessage(getInteger(address, key), (("mandatory this." + key) + " is not defined")) | |
65 | 65 | ||
66 | 66 | ||
67 | 67 | func getBigIntFromStringOrZero (address,key) = value(parseBigInt(valueOrElse(getString(address, key), "0"))) | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | func getBigIntFromStringOrDefault (address,key,defaultVal) = match getString(address, key) { | |
71 | 71 | case s: String => | |
72 | 72 | value(parseBigInt(s)) | |
73 | 73 | case _: Unit => | |
74 | 74 | defaultVal | |
75 | 75 | case _ => | |
76 | 76 | throw("Match error") | |
77 | 77 | } | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | func toX18 (origVal,origScaleMult) = fraction(toBigInt(origVal), MULT18, toBigInt(origScaleMult)) | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func fromX18 (val,resultScaleMult) = toInt(fraction(val, toBigInt(resultScaleMult), MULT18)) | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func keyFactoryAddress () = "%s%s__config__factoryAddress" | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func keyVotingEmissionContract () = "%s__votingEmissionContract" | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | let IdxFactoryCfgStakingDapp = 1 | |
93 | 93 | ||
94 | 94 | let IdxFactoryCfgBoostingDapp = 2 | |
95 | 95 | ||
96 | 96 | let IdxFactoryCfgIdoDapp = 3 | |
97 | 97 | ||
98 | 98 | let IdxFactoryCfgTeamDapp = 4 | |
99 | 99 | ||
100 | 100 | let IdxFactoryCfgEmissionDapp = 5 | |
101 | 101 | ||
102 | 102 | let IdxFactoryCfgRestDapp = 6 | |
103 | 103 | ||
104 | 104 | let IdxFactoryCfgSlippageDapp = 7 | |
105 | 105 | ||
106 | 106 | func keyFactoryCfg () = "%s__factoryConfig" | |
107 | 107 | ||
108 | 108 | ||
109 | 109 | func keyManagerPublicKey () = "%s__managerPublicKey" | |
110 | 110 | ||
111 | 111 | ||
112 | 112 | func keyPendingManagerPublicKey () = "%s__pendingManagerPublicKey" | |
113 | 113 | ||
114 | 114 | ||
115 | 115 | func keyStablePoolAddonAddr () = "%s__stablePoolAddonAddr" | |
116 | 116 | ||
117 | 117 | ||
118 | 118 | func keyFactoryLp2AssetsMapping (lpAssetStr) = makeString(["%s%s%s", lpAssetStr, "mappings__lpAsset2PoolContract"], SEP) | |
119 | 119 | ||
120 | 120 | ||
121 | 121 | func keyFactoryLpList () = "%s__lpTokensList" | |
122 | 122 | ||
123 | 123 | ||
124 | 124 | func keyFactoryLpAssetToPoolContractAddress (lpAssetStr) = makeString(["%s%s%s", lpAssetStr, "mappings__lpAsset2PoolContract"], SEP) | |
125 | 125 | ||
126 | 126 | ||
127 | 127 | func keyFactoryPoolWeight (contractAddress) = makeString(["%s%s", "poolWeight", contractAddress], SEP) | |
128 | 128 | ||
129 | 129 | ||
130 | 130 | func readLpList (factory) = split(valueOrElse(getString(factory, keyFactoryLpList()), ""), SEP) | |
131 | 131 | ||
132 | 132 | ||
133 | 133 | func readFactoryCfgOrFail (factory) = split(getStringByAddressOrFail(factory, keyFactoryCfg()), SEP) | |
134 | 134 | ||
135 | 135 | ||
136 | 136 | func getBoostingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgBoostingDapp]) | |
137 | 137 | ||
138 | 138 | ||
139 | 139 | func getEmissionAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgEmissionDapp]) | |
140 | 140 | ||
141 | 141 | ||
142 | 142 | func getStakingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgStakingDapp]) | |
143 | 143 | ||
144 | 144 | ||
145 | 145 | func keyEmissionRatePerBlockCurrent () = "%s%s__ratePerBlock__current" | |
146 | 146 | ||
147 | 147 | ||
148 | 148 | func keyEmissionRatePerBlockMaxCurrent () = "%s%s__ratePerBlockMax__current" | |
149 | 149 | ||
150 | 150 | ||
151 | 151 | func keyEmissionStartBlock () = "%s%s__emission__startBlock" | |
152 | 152 | ||
153 | 153 | ||
154 | 154 | func keyEmissionDurationInBlocks () = "%s%s__emission__duration" | |
155 | 155 | ||
156 | 156 | ||
157 | 157 | func keyEmissionEndBlock () = "%s%s__emission__endBlock" | |
158 | 158 | ||
159 | 159 | ||
160 | 160 | func keyStakedByUser (userAddressStr,lpAssetIdStr) = makeString(["%s%s%s__staked", userAddressStr, lpAssetIdStr], SEP) | |
161 | 161 | ||
162 | 162 | ||
163 | 163 | func keyStakedTotal (lpAssetIdStr) = ("%s%s%s__staked__total__" + lpAssetIdStr) | |
164 | 164 | ||
165 | 165 | ||
166 | 166 | func keyClaimedByUser (lpAssetIdStr,userAddressStr) = makeString(["%s%s%s__claimed", userAddressStr, lpAssetIdStr], SEP) | |
167 | 167 | ||
168 | 168 | ||
169 | 169 | func keyClaimedByUserMinReward (lpAssetIdStr,userAddressStr) = makeString(["%s%s%s__claimedMinReward", userAddressStr, lpAssetIdStr], SEP) | |
170 | 170 | ||
171 | 171 | ||
172 | 172 | func keyClaimedByUserBoostReward (lpAssetIdStr,userAddressStr) = makeString(["%s%s%s__claimedBoostReward", userAddressStr, lpAssetIdStr], SEP) | |
173 | 173 | ||
174 | 174 | ||
175 | 175 | func keyClaimedTotal (lpAssetIdStr) = makeString(["%s%s%s__claimed__total", lpAssetIdStr], SEP) | |
176 | 176 | ||
177 | 177 | ||
178 | 178 | func readStaked (key) = valueOrElse(getInteger(this, key), 0) | |
179 | 179 | ||
180 | 180 | ||
181 | 181 | func keyLastTotalLpBalance (lpAssetId) = makeString(["%s%s%s", lpAssetId, "total", "bal"], SEP) | |
182 | 182 | ||
183 | 183 | ||
184 | 184 | func keyLastUserLpBalance (lpAssetId,userAddress) = makeString(["%s%s%s", lpAssetId, userAddress, "bal"], SEP) | |
185 | 185 | ||
186 | 186 | ||
187 | 187 | func keyTotalLpBalanceIntegral (lpAssetId) = makeString(["%s%s%s", lpAssetId, "total", "balINT"], SEP) | |
188 | 188 | ||
189 | 189 | ||
190 | 190 | func keyUserLpBalanceIntegral (lpAssetId,userAddress) = makeString(["%s%s%s", lpAssetId, userAddress, "balINT"], SEP) | |
191 | 191 | ||
192 | 192 | ||
193 | 193 | func keyTotalLpBalanceIntegralLastUpdHeight (lpAssetId) = makeString(["%s%s%s", lpAssetId, "total", "lastUpd"], SEP) | |
194 | 194 | ||
195 | 195 | ||
196 | 196 | func keyUserLpBalanceIntegralLastUpdHeight (lpAssetId,userAddress) = makeString(["%s%s%s", lpAssetId, userAddress, "lastUpd"], SEP) | |
197 | 197 | ||
198 | 198 | ||
199 | 199 | func keyWxPerLpIntegral (lpAssetId) = makeString(["%s%s%s%s", lpAssetId, "common", "lpInt"], SEP) | |
200 | 200 | ||
201 | 201 | ||
202 | 202 | func keyWxPerLpIntegralLastUpdHeight (lpAssetId) = makeString(["%s%s%s%s", lpAssetId, "common", "lpIntH"], SEP) | |
203 | 203 | ||
204 | 204 | ||
205 | 205 | func keyWxToClaimUser (lpAssetId,userAddress) = makeString(["%s%s%s%s", lpAssetId, userAddress, "lpInt"], SEP) | |
206 | 206 | ||
207 | 207 | ||
208 | 208 | func keyWxPerLpIntegralUserLastUpdHeight (lpAssetId,userAddress) = makeString(["%s%s%s%s", lpAssetId, userAddress, "lpIntH"], SEP) | |
209 | 209 | ||
210 | 210 | ||
211 | 211 | func keyWxPerLp (lpAssetId) = makeString(["%s", lpAssetId, "wxPerLp"], SEP) | |
212 | 212 | ||
213 | 213 | ||
214 | 214 | func keyWxPerLpX18 (lpAssetId) = makeString(["%s", lpAssetId, "wxPerLpX18"], SEP) | |
215 | 215 | ||
216 | 216 | ||
217 | 217 | func keyWxPerLpIntegralUserLast (lpAssetId,userAddress) = makeString(["%s%s%s%s", lpAssetId, userAddress, "uIntL"], SEP) | |
218 | 218 | ||
219 | 219 | ||
220 | 220 | func keyOperationHistoryRecord (type,userAddress,txId58) = makeString(["%s%s%s%s__history", type, userAddress, txId58], SEP) | |
221 | 221 | ||
222 | 222 | ||
223 | 223 | func formatHistoryRecord (userAddress,lpAssetId,type,amount) = makeString(["%s%s%s%d%d%d", userAddress, lpAssetId, type, toString(height), toString(lastBlock.timestamp), toString(amount)], SEP) | |
224 | 224 | ||
225 | 225 | ||
226 | 226 | func OperationHistoryEntry (type,userAddress,lpAssetId,amount,txId) = StringEntry(keyOperationHistoryRecord(type, userAddress, toBase58String(txId)), formatHistoryRecord(userAddress, lpAssetId, type, amount)) | |
227 | 227 | ||
228 | 228 | ||
229 | 229 | let factoryAddress = getStringOrFail(this, keyFactoryAddress()) | |
230 | 230 | ||
231 | 231 | let factoryContract = addressFromStringValue(factoryAddress) | |
232 | 232 | ||
233 | 233 | let factoryCfg = readFactoryCfgOrFail(factoryContract) | |
234 | 234 | ||
235 | 235 | let emissionContract = getEmissionAddressOrFail(factoryCfg) | |
236 | 236 | ||
237 | 237 | let boostingContract = getBoostingAddressOrFail(factoryCfg) | |
238 | 238 | ||
239 | 239 | func keyNextUser (lpAssetId) = makeString(["%s%s", lpAssetId, "nextUser"], SEP) | |
240 | 240 | ||
241 | 241 | ||
242 | 242 | func getUsersListName (lpAssetId) = makeString(["users", lpAssetId], SEP) | |
243 | 243 | ||
244 | 244 | ||
245 | 245 | func keyListHead (listName) = makeString(["%s%s%s", listName, "head"], SEP) | |
246 | 246 | ||
247 | 247 | ||
248 | 248 | func keyListSize (listName) = makeString(["%s%s%s", listName, "size"], SEP) | |
249 | 249 | ||
250 | 250 | ||
251 | 251 | func keyListPrev (listName,id) = makeString(["%s%s%s%s", listName, id, "prev"], SEP) | |
252 | 252 | ||
253 | 253 | ||
254 | 254 | func keyListNext (listName,id) = makeString(["%s%s%s%s", listName, id, "next"], SEP) | |
255 | 255 | ||
256 | 256 | ||
257 | 257 | func containsNode (listName,id) = { | |
258 | 258 | let headOrUnit = getString(this, keyListHead(listName)) | |
259 | 259 | let prevOrUnit = getString(this, keyListPrev(listName, id)) | |
260 | 260 | let nextOrUnit = getString(this, keyListNext(listName, id)) | |
261 | 261 | if (if ((id == valueOrElse(headOrUnit, ""))) | |
262 | 262 | then true | |
263 | 263 | else (prevOrUnit != unit)) | |
264 | 264 | then true | |
265 | 265 | else (nextOrUnit != unit) | |
266 | 266 | } | |
267 | 267 | ||
268 | 268 | ||
269 | 269 | func insertNodeActions (listName,id) = { | |
270 | 270 | let headOrUnit = getString(this, keyListHead(listName)) | |
271 | 271 | let listSize = valueOrElse(getInteger(this, keyListSize(listName)), 0) | |
272 | 272 | let checkNode = if (!(containsNode(listName, id))) | |
273 | 273 | then true | |
274 | 274 | else throw("Node exists") | |
275 | 275 | if ((checkNode == checkNode)) | |
276 | 276 | then (([IntegerEntry(keyListSize(listName), (listSize + 1))] ++ (if ((headOrUnit != unit)) | |
277 | 277 | then [StringEntry(keyListNext(listName, id), value(headOrUnit)), StringEntry(keyListPrev(listName, value(headOrUnit)), id)] | |
278 | 278 | else nil)) ++ [StringEntry(keyListHead(listName), id)]) | |
279 | 279 | else throw("Strict value is not equal to itself.") | |
280 | 280 | } | |
281 | 281 | ||
282 | 282 | ||
283 | 283 | func deleteNodeActions (listName,id) = { | |
284 | 284 | let headOrUnit = getString(this, keyListHead(listName)) | |
285 | 285 | let listSize = valueOrElse(getInteger(this, keyListSize(listName)), 0) | |
286 | 286 | let prevOrUnit = getString(this, keyListPrev(listName, id)) | |
287 | 287 | let nextOrUnit = getString(this, keyListNext(listName, id)) | |
288 | 288 | ([IntegerEntry(keyListSize(listName), (listSize - 1))] ++ (if (if ((prevOrUnit != unit)) | |
289 | 289 | then (nextOrUnit != unit) | |
290 | 290 | else false) | |
291 | 291 | then [StringEntry(keyListNext(listName, value(prevOrUnit)), value(nextOrUnit)), StringEntry(keyListPrev(listName, value(nextOrUnit)), value(prevOrUnit)), DeleteEntry(keyListPrev(listName, id)), DeleteEntry(keyListNext(listName, id))] | |
292 | 292 | else if ((nextOrUnit != unit)) | |
293 | 293 | then [StringEntry(keyListHead(listName), value(nextOrUnit)), DeleteEntry(keyListNext(listName, id)), DeleteEntry(keyListPrev(listName, value(nextOrUnit)))] | |
294 | 294 | else if ((prevOrUnit != unit)) | |
295 | 295 | then [DeleteEntry(keyListPrev(listName, id)), DeleteEntry(keyListNext(listName, value(prevOrUnit)))] | |
296 | 296 | else if ((id == valueOrElse(headOrUnit, ""))) | |
297 | 297 | then [DeleteEntry(keyListHead(listName))] | |
298 | 298 | else throw(((("invalid node: " + listName) + ".") + id)))) | |
299 | 299 | } | |
300 | 300 | ||
301 | 301 | ||
302 | 302 | func calcWxPerLpIntegralUserLast (stakedByUser,wxPerLpIntegralUserLastUpdHeightOrZero,wxPerLpIntegralNew,wxPerLpIntegralUserLastKEY) = if (if ((wxPerLpIntegralUserLastUpdHeightOrZero == zeroBigInt)) | |
303 | 303 | then (stakedByUser > zeroBigInt) | |
304 | 304 | else false) | |
305 | 305 | then zeroBigInt | |
306 | 306 | else if ((stakedByUser == zeroBigInt)) | |
307 | 307 | then wxPerLpIntegralNew | |
308 | 308 | else if (if ((wxPerLpIntegralUserLastUpdHeightOrZero > zeroBigInt)) | |
309 | 309 | then (stakedByUser > zeroBigInt) | |
310 | 310 | else false) | |
311 | 311 | then value(parseBigInt(getStringOrFail(this, wxPerLpIntegralUserLastKEY))) | |
312 | 312 | else throw("calcWxPerLpIntegralUserLast: unexpected state") | |
313 | 313 | ||
314 | 314 | ||
315 | 315 | func refreshPoolINTEGRALS (lpAssetIdStr,poolAddressStr,lpDeltaAmount) = { | |
316 | 316 | let stakedTotalKEY = keyStakedTotal(lpAssetIdStr) | |
317 | 317 | let stakedTotal = toBigInt(readStaked(stakedTotalKEY)) | |
318 | 318 | let nonZeroStakedTotal = if ((stakedTotal == zeroBigInt)) | |
319 | 319 | then oneBigInt | |
320 | 320 | else stakedTotal | |
321 | 321 | let poolWeight = getIntegerValue(factoryContract, keyFactoryPoolWeight(poolAddressStr)) | |
322 | 322 | let emissionStartBlock = getIntOrFail(emissionContract, keyEmissionStartBlock()) | |
323 | 323 | let MULT3 = 1000 | |
324 | 324 | let wxEmissionPerBlockX3 = (getIntOrFail(emissionContract, keyEmissionRatePerBlockCurrent()) * MULT3) | |
325 | 325 | let poolWxEmissionPerBlockX3 = fraction(wxEmissionPerBlockX3, poolWeight, (POOLWEIGHTMULT * 3)) | |
326 | 326 | let wxPerLpIntegralKEY = keyWxPerLpIntegral(lpAssetIdStr) | |
327 | 327 | let wxPerLpIntegralLastUpdHeightKEY = keyWxPerLpIntegralLastUpdHeight(lpAssetIdStr) | |
328 | 328 | let wxPerLpKEY = keyWxPerLp(lpAssetIdStr) | |
329 | 329 | let wxPerLpIntegralLastUpdHeight = getIntOrDefault(this, wxPerLpIntegralLastUpdHeightKEY, emissionStartBlock) | |
330 | 330 | let wxPerLpIntegral = getBigIntFromStringOrZero(this, wxPerLpIntegralKEY) | |
331 | 331 | let wxPerLpOrZeroX3 = 0 | |
332 | 332 | let dh = max([(height - wxPerLpIntegralLastUpdHeight), 0]) | |
333 | 333 | let wxPerLpX3 = if ((wxPerLpOrZeroX3 != 0)) | |
334 | 334 | then toBigInt(wxPerLpOrZeroX3) | |
335 | 335 | else fraction(toBigInt(poolWxEmissionPerBlockX3), toBigInt(MULT8), nonZeroStakedTotal) | |
336 | 336 | let stakedTotalNew = (stakedTotal + toBigInt(lpDeltaAmount)) | |
337 | 337 | let nonZeroStakedTotalNew = if ((stakedTotalNew == zeroBigInt)) | |
338 | 338 | then oneBigInt | |
339 | 339 | else stakedTotalNew | |
340 | 340 | let wxPerLpIntegralNew = (wxPerLpIntegral + (wxPerLpX3 * toBigInt(dh))) | |
341 | 341 | let wxPerLpX3New = (toBigInt(poolWxEmissionPerBlockX3) / nonZeroStakedTotalNew) | |
342 | 342 | let wxPerLpIntegralLastUpdHeightNew = height | |
343 | 343 | let debug = makeString([toString(wxPerLpIntegralNew), toString(dh), toString(wxPerLpX3), toString(stakedTotal), toString(poolWxEmissionPerBlockX3), toString(wxEmissionPerBlockX3), toString(poolWeight)], "::") | |
344 | 344 | $Tuple3(wxPerLpIntegralNew, [StringEntry(wxPerLpIntegralKEY, toString(wxPerLpIntegralNew)), IntegerEntry(wxPerLpIntegralLastUpdHeightKEY, wxPerLpIntegralLastUpdHeightNew), StringEntry(wxPerLpKEY, toString(wxPerLpX3New))], debug) | |
345 | 345 | } | |
346 | 346 | ||
347 | 347 | ||
348 | 348 | func refreshINTEGRALS (lpAssetIdStr,userAddressStr,poolAddressStr,lpDeltaAmount) = { | |
349 | 349 | let $t01421714339 = refreshPoolINTEGRALS(lpAssetIdStr, poolAddressStr, lpDeltaAmount) | |
350 | 350 | let wxPerLpIntegralNew = $t01421714339._1 | |
351 | 351 | let poolIntegralSTATE = $t01421714339._2 | |
352 | 352 | let poolDEBUG = $t01421714339._3 | |
353 | 353 | let MULT3 = 1000 | |
354 | 354 | let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr) | |
355 | 355 | let stakedByUser = readStaked(stakedByUserKEY) | |
356 | 356 | let wxToClaimUserKEY = keyWxToClaimUser(lpAssetIdStr, userAddressStr) | |
357 | 357 | let wxPerLpIntegralUserLastUpdHeightKEY = keyWxPerLpIntegralUserLastUpdHeight(lpAssetIdStr, userAddressStr) | |
358 | 358 | let wxPerLpIntegralUserLastKEY = keyWxPerLpIntegralUserLast(lpAssetIdStr, userAddressStr) | |
359 | 359 | let wxToClaimUser = getBigIntFromStringOrZero(this, wxToClaimUserKEY) | |
360 | 360 | let wxPerLpIntegralUserLastUpdHeightOrZero = getIntOrZero(this, wxPerLpIntegralUserLastUpdHeightKEY) | |
361 | 361 | let wxPerLpIntegralUserLast = calcWxPerLpIntegralUserLast(toBigInt(stakedByUser), toBigInt(wxPerLpIntegralUserLastUpdHeightOrZero), wxPerLpIntegralNew, wxPerLpIntegralUserLastKEY) | |
362 | 362 | let MULT11 = (MULT8 * MULT3) | |
363 | 363 | let wxToClaimUserNew = max([(wxToClaimUser + fraction((wxPerLpIntegralNew - wxPerLpIntegralUserLast), toBigInt(stakedByUser), toBigInt(MULT11))), zeroBigInt]) | |
364 | 364 | let wxPerLpIntegralUserLastNew = wxPerLpIntegralNew | |
365 | 365 | let wxPerLpIntegralUserLastUpdHeightNew = height | |
366 | 366 | let debug = makeString([toString(wxToClaimUser), toString(wxPerLpIntegralUserLast), toString(stakedByUser), poolDEBUG, toString(height)], "::") | |
367 | 367 | $Tuple3(wxToClaimUserNew, (poolIntegralSTATE ++ [StringEntry(wxToClaimUserKEY, toString(wxToClaimUserNew)), IntegerEntry(wxPerLpIntegralUserLastUpdHeightKEY, wxPerLpIntegralUserLastUpdHeightNew), StringEntry(wxPerLpIntegralUserLastKEY, toString(wxPerLpIntegralUserLastNew))]), debug) | |
368 | 368 | } | |
369 | 369 | ||
370 | 370 | ||
371 | 371 | func managerPublicKeyOrUnit () = match getString(keyManagerPublicKey()) { | |
372 | 372 | case s: String => | |
373 | 373 | fromBase58String(s) | |
374 | 374 | case _: Unit => | |
375 | 375 | unit | |
376 | 376 | case _ => | |
377 | 377 | throw("Match error") | |
378 | 378 | } | |
379 | 379 | ||
380 | 380 | ||
381 | 381 | func pendingManagerPublicKeyOrUnit () = match getString(keyPendingManagerPublicKey()) { | |
382 | 382 | case s: String => | |
383 | 383 | fromBase58String(s) | |
384 | 384 | case _: Unit => | |
385 | 385 | unit | |
386 | 386 | case _ => | |
387 | 387 | throw("Match error") | |
388 | 388 | } | |
389 | 389 | ||
390 | 390 | ||
391 | 391 | let permissionDeniedError = throw("Permission denied") | |
392 | 392 | ||
393 | 393 | func mustThis (i) = if ((i.caller == this)) | |
394 | 394 | then true | |
395 | 395 | else permissionDeniedError | |
396 | 396 | ||
397 | 397 | ||
398 | 398 | func mustManager (i) = match managerPublicKeyOrUnit() { | |
399 | 399 | case pk: ByteVector => | |
400 | 400 | if ((i.callerPublicKey == pk)) | |
401 | 401 | then true | |
402 | 402 | else permissionDeniedError | |
403 | 403 | case _: Unit => | |
404 | 404 | if ((i.caller == this)) | |
405 | 405 | then true | |
406 | 406 | else permissionDeniedError | |
407 | 407 | case _ => | |
408 | 408 | throw("Match error") | |
409 | 409 | } | |
410 | 410 | ||
411 | 411 | ||
412 | 412 | @Callable(i) | |
413 | 413 | func constructor (factoryAddressStr) = { | |
414 | 414 | let checkCaller = mustManager(i) | |
415 | 415 | if ((checkCaller == checkCaller)) | |
416 | 416 | then [StringEntry(keyFactoryAddress(), factoryAddressStr)] | |
417 | 417 | else throw("Strict value is not equal to itself.") | |
418 | 418 | } | |
419 | 419 | ||
420 | 420 | ||
421 | 421 | ||
422 | 422 | @Callable(i) | |
423 | 423 | func constructorV2 (votingEmissionContract) = { | |
424 | 424 | let cheks = [mustManager(i), if ((addressFromString(votingEmissionContract) != unit)) | |
425 | 425 | then true | |
426 | 426 | else "invalid voting emission contract address"] | |
427 | 427 | if ((cheks == cheks)) | |
428 | 428 | then [StringEntry(keyVotingEmissionContract(), votingEmissionContract)] | |
429 | 429 | else throw("Strict value is not equal to itself.") | |
430 | 430 | } | |
431 | 431 | ||
432 | 432 | ||
433 | 433 | ||
434 | 434 | @Callable(i) | |
435 | 435 | func setManager (pendingManagerPublicKey) = { | |
436 | 436 | let checkCaller = mustManager(i) | |
437 | 437 | if ((checkCaller == checkCaller)) | |
438 | 438 | then { | |
439 | 439 | let checkManagerPublicKey = fromBase58String(pendingManagerPublicKey) | |
440 | 440 | if ((checkManagerPublicKey == checkManagerPublicKey)) | |
441 | 441 | then [StringEntry(keyPendingManagerPublicKey(), pendingManagerPublicKey)] | |
442 | 442 | else throw("Strict value is not equal to itself.") | |
443 | 443 | } | |
444 | 444 | else throw("Strict value is not equal to itself.") | |
445 | 445 | } | |
446 | 446 | ||
447 | 447 | ||
448 | 448 | ||
449 | 449 | @Callable(i) | |
450 | 450 | func confirmManager () = { | |
451 | 451 | let pm = pendingManagerPublicKeyOrUnit() | |
452 | 452 | let hasPM = if (isDefined(pm)) | |
453 | 453 | then true | |
454 | 454 | else throw("No pending manager") | |
455 | 455 | if ((hasPM == hasPM)) | |
456 | 456 | then { | |
457 | 457 | let checkPM = if ((i.callerPublicKey == value(pm))) | |
458 | 458 | then true | |
459 | 459 | else throw("You are not pending manager") | |
460 | 460 | if ((checkPM == checkPM)) | |
461 | 461 | then [StringEntry(keyManagerPublicKey(), toBase58String(value(pm))), DeleteEntry(keyPendingManagerPublicKey())] | |
462 | 462 | else throw("Strict value is not equal to itself.") | |
463 | 463 | } | |
464 | 464 | else throw("Strict value is not equal to itself.") | |
465 | 465 | } | |
466 | 466 | ||
467 | 467 | ||
468 | 468 | ||
469 | 469 | @Callable(i) | |
470 | 470 | func stake () = if ((size(i.payments) != 1)) | |
471 | 471 | then throw("invalid payment - exact one payment must be attached") | |
472 | 472 | else { | |
473 | 473 | let pmt = i.payments[0] | |
474 | 474 | let lpAssetId = value(pmt.assetId) | |
475 | 475 | let lpAssetIdStr = toBase58String(lpAssetId) | |
476 | 476 | let amount = pmt.amount | |
477 | 477 | let poolAddressStr = valueOrErrorMessage(getString(factoryContract, keyFactoryLp2AssetsMapping(lpAssetIdStr)), ("unsupported lp asset " + lpAssetIdStr)) | |
478 | 478 | let callerStr = toString(i.caller) | |
479 | 479 | let userAddressStr = if ((callerStr == poolAddressStr)) | |
480 | 480 | then toString(i.originCaller) | |
481 | 481 | else callerStr | |
482 | 482 | let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr) | |
483 | 483 | let stakedTotalKEY = keyStakedTotal(lpAssetIdStr) | |
484 | 484 | let stakedByUser = readStaked(stakedByUserKEY) | |
485 | 485 | let stakedTotal = readStaked(stakedTotalKEY) | |
486 | 486 | let $t01877518892 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, amount) | |
487 | 487 | let wxToClaimUserNew = $t01877518892._1 | |
488 | 488 | let integralSTATE = $t01877518892._2 | |
489 | 489 | let debug = $t01877518892._3 | |
490 | 490 | let listName = getUsersListName(lpAssetIdStr) | |
491 | 491 | let listActions = if (containsNode(listName, userAddressStr)) | |
492 | 492 | then nil | |
493 | 493 | else insertNodeActions(listName, userAddressStr) | |
494 | 494 | (([IntegerEntry(stakedByUserKEY, (stakedByUser + amount)), IntegerEntry(stakedTotalKEY, (stakedTotal + amount)), OperationHistoryEntry("stake", userAddressStr, lpAssetIdStr, amount, i.transactionId)] ++ integralSTATE) ++ listActions) | |
495 | 495 | } | |
496 | 496 | ||
497 | 497 | ||
498 | 498 | ||
499 | 499 | @Callable(i) | |
500 | 500 | func unstake (lpAssetIdStr,amount) = { | |
501 | 501 | let lpAssetId = fromBase58String(lpAssetIdStr) | |
502 | 502 | let poolAddressStr = valueOrErrorMessage(getString(factoryContract, keyFactoryLp2AssetsMapping(lpAssetIdStr)), ("unsupported lp asset " + lpAssetIdStr)) | |
503 | 503 | let poolAddon = valueOrElse(getString(this, keyStablePoolAddonAddr()), poolAddressStr) | |
504 | 504 | let callerStr = toString(i.caller) | |
505 | 505 | let userAddressStr = if (if ((callerStr == poolAddressStr)) | |
506 | 506 | then true | |
507 | 507 | else (callerStr == poolAddon)) | |
508 | 508 | then toString(i.originCaller) | |
509 | 509 | else callerStr | |
510 | 510 | let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr) | |
511 | 511 | let stakedTotalKEY = keyStakedTotal(lpAssetIdStr) | |
512 | 512 | let stakedByUser = readStaked(stakedByUserKEY) | |
513 | 513 | let stakedTotal = readStaked(stakedTotalKEY) | |
514 | 514 | let integralSTATE = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, -(amount))._2 | |
515 | 515 | let listName = getUsersListName(lpAssetIdStr) | |
516 | 516 | let listActions = if (if (containsNode(listName, userAddressStr)) | |
517 | 517 | then (amount == stakedByUser) | |
518 | 518 | else false) | |
519 | 519 | then deleteNodeActions(listName, userAddressStr) | |
520 | 520 | else nil | |
521 | 521 | let claimedByUser = getBigIntFromStringOrZero(this, keyClaimedByUser(lpAssetIdStr, userAddressStr)) | |
522 | 522 | let poolAddress = getStringByAddressOrFail(factoryContract, keyFactoryLpAssetToPoolContractAddress(lpAssetIdStr)) | |
523 | 523 | let wxToClaimUserNew = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddress, 0)._1 | |
524 | 524 | let availableToClaim = (wxToClaimUserNew - claimedByUser) | |
525 | 525 | let r = if ((availableToClaim > zeroBigInt)) | |
526 | 526 | then invoke(this, "claimWxINTERNAL", [lpAssetIdStr, userAddressStr], nil) | |
527 | 527 | else unit | |
528 | 528 | if ((r == r)) | |
529 | 529 | then if ((amount > stakedByUser)) | |
530 | 530 | then throw("passed amount is less then available") | |
531 | 531 | else (([IntegerEntry(stakedByUserKEY, (stakedByUser - amount)), IntegerEntry(stakedTotalKEY, (stakedTotal - amount)), ScriptTransfer(i.caller, amount, lpAssetId), OperationHistoryEntry("unstake", userAddressStr, lpAssetIdStr, amount, i.transactionId)] ++ integralSTATE) ++ listActions) | |
532 | 532 | else throw("Strict value is not equal to itself.") | |
533 | 533 | } | |
534 | 534 | ||
535 | 535 | ||
536 | 536 | ||
537 | 537 | @Callable(i) | |
538 | 538 | func claimWx (lpAssetIdStr) = { | |
539 | 539 | let userAddressStr = toString(i.caller) | |
540 | 540 | let result = invoke(this, "claimWxINTERNAL", [lpAssetIdStr, userAddressStr], nil) | |
541 | 541 | $Tuple2(nil, result) | |
542 | 542 | } | |
543 | 543 | ||
544 | 544 | ||
545 | 545 | ||
546 | 546 | @Callable(i) | |
547 | 547 | func claimWxINTERNAL (lpAssetIdStr,userAddressStr) = { | |
548 | 548 | let checkCaller = mustThis(i) | |
549 | 549 | if ((checkCaller == checkCaller)) | |
550 | 550 | then { | |
551 | 551 | let userAddress = valueOrErrorMessage(addressFromString(userAddressStr), "claimWxINTERNAL: invalid user address") | |
552 | 552 | let poolAddressStr = getStringByAddressOrFail(factoryContract, keyFactoryLpAssetToPoolContractAddress(lpAssetIdStr)) | |
553 | 553 | let claimedByUserKEY = keyClaimedByUser(lpAssetIdStr, userAddressStr) | |
554 | 554 | let claimedTotalKEY = keyClaimedTotal(lpAssetIdStr) | |
555 | 555 | let claimedByUserMinRewardKEY = keyClaimedByUserMinReward(lpAssetIdStr, userAddressStr) | |
556 | 556 | let claimedByUserBoostRewardKEY = keyClaimedByUserBoostReward(lpAssetIdStr, userAddressStr) | |
557 | 557 | let claimedByUser = getBigIntFromStringOrZero(this, claimedByUserKEY) | |
558 | 558 | let claimedByUserMinReward = getBigIntFromStringOrZero(this, claimedByUserMinRewardKEY) | |
559 | 559 | let claimedByUserBoostReward = getBigIntFromStringOrZero(this, claimedByUserBoostRewardKEY) | |
560 | 560 | let claimedTotal = getBigIntFromStringOrZero(this, claimedTotalKEY) | |
561 | 561 | let $t02259022702 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, 0) | |
562 | 562 | let wxToClaimUserNew = $t02259022702._1 | |
563 | 563 | let integralSTATE = $t02259022702._2 | |
564 | 564 | let debug = $t02259022702._3 | |
565 | 565 | let availableToClaim = max([(wxToClaimUserNew - claimedByUser), zeroBigInt]) | |
566 | 566 | if ((zeroBigInt >= availableToClaim)) | |
567 | 567 | then throw("nothing to claim") | |
568 | 568 | else { | |
569 | 569 | let wxAmountBoostTotal = max([asInt(asAnyList(invoke(boostingContract, "claimWxBoost", [lpAssetIdStr, userAddressStr], nil))[0]), 0]) | |
570 | 570 | let minRewardPart = availableToClaim | |
571 | 571 | let boostRewardPart = min([(minRewardPart * toBigInt(2)), toBigInt(wxAmountBoostTotal)]) | |
572 | 572 | let wxAssetId = asByteVector(asAnyList(invoke(emissionContract, "emit", [toInt(minRewardPart)], nil))[0]) | |
573 | 573 | let emitBoost = asAnyList(invoke(emissionContract, "emit", [toInt(boostRewardPart)], nil)) | |
574 | 574 | if ((emitBoost == emitBoost)) | |
575 | 575 | then { | |
576 | 576 | let claimedByUserValue = (claimedByUser + availableToClaim) | |
577 | 577 | let claimedByUserMinRewardPlusPart = (claimedByUserMinReward + minRewardPart) | |
578 | 578 | let claimedByUserBoostRewardPlusBoostRewardPart = (claimedByUserMinReward + minRewardPart) | |
579 | 579 | let claimedTotalPlusAvailableToClaim = (claimedByUserMinReward + minRewardPart) | |
580 | 580 | [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)] | |
581 | 581 | } | |
582 | 582 | else throw("Strict value is not equal to itself.") | |
583 | 583 | } | |
584 | 584 | } | |
585 | 585 | else throw("Strict value is not equal to itself.") | |
586 | 586 | } | |
587 | 587 | ||
588 | 588 | ||
589 | 589 | ||
590 | 590 | @Callable(i) | |
591 | 591 | func claimWxREADONLY (lpAssetIdStr,userAddressStr) = { | |
592 | 592 | let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr) | |
593 | 593 | let stakedTotalKEY = keyStakedTotal(lpAssetIdStr) | |
594 | 594 | let claimedByUserKEY = keyClaimedByUser(lpAssetIdStr, userAddressStr) | |
595 | 595 | let stakedByUser = readStaked(stakedByUserKEY) | |
596 | 596 | let stakedTotal = readStaked(stakedTotalKEY) | |
597 | 597 | let claimedByUser = getBigIntFromStringOrZero(this, claimedByUserKEY) | |
598 | 598 | let poolAddressStr = getStringByAddressOrFail(factoryContract, keyFactoryLpAssetToPoolContractAddress(lpAssetIdStr)) | |
599 | 599 | let poolWeight = getIntegerValue(factoryContract, keyFactoryPoolWeight(poolAddressStr)) | |
600 | 600 | let wxEmissionPerBlock = getIntOrFail(emissionContract, keyEmissionRatePerBlockCurrent()) | |
601 | 601 | let emissionStartBlock = getIntOrFail(emissionContract, keyEmissionStartBlock()) | |
602 | 602 | let passedBlocks = if ((emissionStartBlock > height)) | |
603 | 603 | then 0 | |
604 | 604 | else (height - emissionStartBlock) | |
605 | 605 | let poolWxEmission = fraction((wxEmissionPerBlock * passedBlocks), poolWeight, POOLWEIGHTMULT) | |
606 | 606 | let userWxReward = fraction(poolWxEmission, stakedByUser, stakedTotal) | |
607 | 607 | let $t02534425456 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, 0) | |
608 | 608 | let wxToClaimUserNew = $t02534425456._1 | |
609 | 609 | let integralSTATE = $t02534425456._2 | |
610 | 610 | let debug = $t02534425456._3 | |
611 | 611 | let availableToClaim = max([(wxToClaimUserNew - claimedByUser), zeroBigInt]) | |
612 | 612 | let boostInvResult = asAnyList(invoke(boostingContract, "claimWxBoostREADONLY", [lpAssetIdStr, userAddressStr], nil)) | |
613 | 613 | let wxAmountBoostTotal = max([asInt(boostInvResult[0]), 0]) | |
614 | 614 | let boostDebug = asString(boostInvResult[1]) | |
615 | 615 | let minRewardPart = availableToClaim | |
616 | 616 | let boostRewardPart = min([(minRewardPart * toBigInt(2)), toBigInt(wxAmountBoostTotal)]) | |
617 | 617 | let totalReward = (minRewardPart + boostRewardPart) | |
618 | - | $Tuple2(nil, makeString(["%s%s%d%d%d%d%s", lpAssetIdStr, userAddressStr, toString(totalReward), toString(claimedByUser), toString(minRewardPart), toString(boostRewardPart), | |
618 | + | $Tuple2(nil, makeString(["%s%s%d%d%d%d%s", lpAssetIdStr, userAddressStr, toString(totalReward), toString(claimedByUser), toString(minRewardPart), toString(boostRewardPart), "soon"], SEP)) | |
619 | 619 | } | |
620 | 620 | ||
621 | 621 | ||
622 | 622 | ||
623 | 623 | @Callable(i) | |
624 | 624 | func usersListTraversal (lpAssetId) = { | |
625 | 625 | let checkCaller = if ((toBase58String(i.caller.bytes) == valueOrElse(getString(this, keyVotingEmissionContract()), ""))) | |
626 | 626 | then true | |
627 | 627 | else mustManager(i) | |
628 | 628 | if ((checkCaller == checkCaller)) | |
629 | 629 | then { | |
630 | 630 | let listName = getUsersListName(lpAssetId) | |
631 | 631 | let userOrUnit = getString(keyNextUser(lpAssetId)) | |
632 | 632 | let headOrUnit = getString(keyListHead(listName)) | |
633 | 633 | match userOrUnit { | |
634 | 634 | case _: Unit => | |
635 | 635 | match headOrUnit { | |
636 | 636 | case _: Unit => | |
637 | 637 | $Tuple2(nil, false) | |
638 | 638 | case head: String => | |
639 | 639 | $Tuple2([StringEntry(keyNextUser(lpAssetId), head)], true) | |
640 | 640 | case _ => | |
641 | 641 | throw("Match error") | |
642 | 642 | } | |
643 | 643 | case userAddress: String => | |
644 | 644 | let claimedByUser = getBigIntFromStringOrZero(this, keyClaimedByUser(lpAssetId, userAddress)) | |
645 | 645 | let poolAddress = getStringByAddressOrFail(factoryContract, keyFactoryLpAssetToPoolContractAddress(lpAssetId)) | |
646 | 646 | let wxToClaimUserNew = refreshINTEGRALS(lpAssetId, userAddress, poolAddress, 0)._1 | |
647 | 647 | let availableToClaim = (wxToClaimUserNew - claimedByUser) | |
648 | 648 | let r = if ((availableToClaim > zeroBigInt)) | |
649 | 649 | then invoke(this, "claimWxINTERNAL", [lpAssetId, userAddress], nil) | |
650 | 650 | else unit | |
651 | 651 | if ((r == r)) | |
652 | 652 | then { | |
653 | 653 | let nextUserOrUnit = getString(keyListNext(listName, userAddress)) | |
654 | 654 | match nextUserOrUnit { | |
655 | 655 | case _: Unit => | |
656 | 656 | $Tuple2([DeleteEntry(keyNextUser(lpAssetId))], false) | |
657 | 657 | case nextUser: String => | |
658 | 658 | $Tuple2([StringEntry(keyNextUser(lpAssetId), nextUser)], true) | |
659 | 659 | case _ => | |
660 | 660 | throw("Match error") | |
661 | 661 | } | |
662 | 662 | } | |
663 | 663 | else throw("Strict value is not equal to itself.") | |
664 | 664 | case _ => | |
665 | 665 | throw("Match error") | |
666 | 666 | } | |
667 | 667 | } | |
668 | 668 | else throw("Strict value is not equal to itself.") | |
669 | 669 | } | |
670 | 670 | ||
671 | 671 | ||
672 | 672 | ||
673 | 673 | @Callable(i) | |
674 | 674 | func onModifyWeight (lpAssetIdStr,poolAddressStr) = if ((i.caller != factoryContract)) | |
675 | 675 | then throw("permissions denied") | |
676 | 676 | else { | |
677 | - | let $ | |
678 | - | let wxPerLpIntegralNew = $ | |
679 | - | let poolIntegralSTATE = $ | |
680 | - | let poolDEBUG = $ | |
677 | + | let $t02775627866 = refreshPoolINTEGRALS(lpAssetIdStr, poolAddressStr, 0) | |
678 | + | let wxPerLpIntegralNew = $t02775627866._1 | |
679 | + | let poolIntegralSTATE = $t02775627866._2 | |
680 | + | let poolDEBUG = $t02775627866._3 | |
681 | 681 | poolIntegralSTATE | |
682 | 682 | } | |
683 | 683 | ||
684 | 684 | ||
685 | 685 | @Verifier(tx) | |
686 | 686 | func verify () = { | |
687 | 687 | let targetPublicKey = match managerPublicKeyOrUnit() { | |
688 | 688 | case pk: ByteVector => | |
689 | 689 | pk | |
690 | 690 | case _: Unit => | |
691 | 691 | tx.senderPublicKey | |
692 | 692 | case _ => | |
693 | 693 | throw("Match error") | |
694 | 694 | } | |
695 | 695 | sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey) | |
696 | 696 | } | |
697 | 697 |
github/deemru/w8io/fabc49c 70.91 ms ◑