tx · 39hWdLQzgs69CKwEnei8mwcwJpgHfaYmgakp9GyN8NqL 3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz: -0.03500000 Waves 2022.06.09 18:28 [2089022] smart account 3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz > SELF 0.00000000 Waves
{ "type": 13, "id": "39hWdLQzgs69CKwEnei8mwcwJpgHfaYmgakp9GyN8NqL", "fee": 3500000, "feeAssetId": null, "timestamp": 1654788524864, "version": 1, "sender": "3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz", "senderPublicKey": "D28XoueZWsMfm8Y5pa6C5ZFuYoWgre2Wm8tzJANJgMnq", "proofs": [ "bZ9Dmd67vqrtWxfHLvBgpTNwTRatpgmQma28cSgwoRFxGiokt47VE5eYHAQdL362YwpzPZhKwgDnoNFbQzd3nSL" ], "script": "base64:AAIFAAAAAAAAACcIAhIDCgEIEgMKAQgSABIAEgQKAggBEgMKAQgSBAoCCAgSBAoCCAgAAABPAAAAAAZTQ0FMRTgAAAAAAAAAAAgAAAAABU1VTFQ4AAAAAAAF9eEAAAAAAAdTQ0FMRTE4AAAAAAAAAAASAAAAAAZNVUxUMTgJAAE2AAAAAQAN4Lazp2QAAAAAAAADU0VQAgAAAAJfXwAAAAAOUE9PTFdFSUdIVE1VTFQFAAAABU1VTFQ4AAAAAAp6ZXJvQmlnSW50CQABNgAAAAEAAAAAAAAAAAAAAAAACW9uZUJpZ0ludAkAATYAAAABAAAAAAAAAAABAQAAAAlhc0FueUxpc3QAAAABAAAAA3ZhbAQAAAAHJG1hdGNoMAUAAAADdmFsAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAlMaXN0W0FueV0EAAAACnZhbEFueUx5c3QFAAAAByRtYXRjaDAFAAAACnZhbEFueUx5c3QJAAACAAAAAQIAAAAbZmFpbCB0byBjYXN0IGludG8gTGlzdFtBbnldAQAAAAVhc0ludAAAAAEAAAADdmFsBAAAAAckbWF0Y2gwBQAAAAN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AAACXzIEAAAACXBvb2xERUJVRwgFAAAADSR0MDIxNDc4MjE1ODgAAAACXzMFAAAAEXBvb2xJbnRlZ3JhbFNUQVRFAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAPdGFyZ2V0UHVibGljS2V5BAAAAAckbWF0Y2gwCQEAAAAWbWFuYWdlclB1YmxpY0tleU9yVW5pdAAAAAADCQAAAQAAAAIFAAAAByRtYXRjaDACAAAACkJ5dGVWZWN0b3IEAAAAAnBrBQAAAAckbWF0Y2gwBQAAAAJwawMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAEVW5pdAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQkAAAIAAAABAgAAAAtNYXRjaCBlcnJvcgkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAFAAAAD3RhcmdldFB1YmxpY0tleYpN6RQ=", "chainId": 84, "height": 2089022, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: F93NPt5dc8GgXvU1eP5kVzkVvojRmFHoQRQSsdasiNhP Next: EKshJbWxm6uh54fWxUUANU147pmSe6KdnUKpfbdijraW Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
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 toX18 (origVal,origScaleMult) = fraction(toBigInt(origVal), MULT18, toBigInt(origScaleMult)) | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | func fromX18 (val,resultScaleMult) = toInt(fraction(val, toBigInt(resultScaleMult), MULT18)) | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | func keyFactoryAddress () = "%s%s__config__factoryAddress" | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | let IdxFactoryCfgStakingDapp = 1 | |
77 | 77 | ||
78 | 78 | let IdxFactoryCfgBoostingDapp = 2 | |
79 | 79 | ||
80 | 80 | let IdxFactoryCfgIdoDapp = 3 | |
81 | 81 | ||
82 | 82 | let IdxFactoryCfgTeamDapp = 4 | |
83 | 83 | ||
84 | 84 | let IdxFactoryCfgEmissionDapp = 5 | |
85 | 85 | ||
86 | 86 | let IdxFactoryCfgRestDapp = 6 | |
87 | 87 | ||
88 | 88 | let IdxFactoryCfgSlippageDapp = 7 | |
89 | 89 | ||
90 | 90 | func keyFactoryCfg () = "%s__factoryConfig" | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | func keyManagerPublicKey () = "%s__managerPublicKey" | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func keyPendingManagerPublicKey () = "%s__pendingManagerPublicKey" | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | func keyStablePoolAddonAddr () = "%s__stablePoolAddonAddr" | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | func keyFactoryLp2AssetsMapping (lpAssetStr) = makeString(["%s%s%s", lpAssetStr, "mappings__lpAsset2PoolContract"], SEP) | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func keyFactoryLpList () = "%s__lpTokensList" | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | func keyFactoryLpAssetToPoolContractAddress (lpAssetStr) = makeString(["%s%s%s", lpAssetStr, "mappings__lpAsset2PoolContract"], SEP) | |
109 | 109 | ||
110 | 110 | ||
111 | 111 | func keyFactoryPoolWeight (contractAddress) = makeString(["%s%s", "poolWeight", contractAddress], SEP) | |
112 | 112 | ||
113 | 113 | ||
114 | 114 | func readLpList (factory) = split(valueOrElse(getString(factory, keyFactoryLpList()), ""), SEP) | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | func readFactoryCfgOrFail (factory) = split(getStringByAddressOrFail(factory, keyFactoryCfg()), SEP) | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | func getBoostingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgBoostingDapp]) | |
121 | 121 | ||
122 | 122 | ||
123 | 123 | func getEmissionAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgEmissionDapp]) | |
124 | 124 | ||
125 | 125 | ||
126 | 126 | func getStakingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgStakingDapp]) | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | func keyEmissionRatePerBlockCurrent () = "%s%s__ratePerBlock__current" | |
130 | 130 | ||
131 | 131 | ||
132 | 132 | func keyEmissionRatePerBlockMaxCurrent () = "%s%s__ratePerBlockMax__current" | |
133 | 133 | ||
134 | 134 | ||
135 | 135 | func keyEmissionStartBlock () = "%s%s__emission__startBlock" | |
136 | 136 | ||
137 | 137 | ||
138 | 138 | func keyEmissionDurationInBlocks () = "%s%s__emission__duration" | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | func keyEmissionEndBlock () = "%s%s__emission__endBlock" | |
142 | 142 | ||
143 | 143 | ||
144 | 144 | func keyStakedByUser (userAddressStr,lpAssetIdStr) = makeString(["%s%s%s__staked", userAddressStr, lpAssetIdStr], SEP) | |
145 | 145 | ||
146 | 146 | ||
147 | 147 | func keyStakedTotal (lpAssetIdStr) = ("%s%s%s__staked__total__" + lpAssetIdStr) | |
148 | 148 | ||
149 | 149 | ||
150 | 150 | func keyClaimedByUser (lpAssetIdStr,userAddressStr) = makeString(["%s%s%s__claimed", userAddressStr, lpAssetIdStr], SEP) | |
151 | 151 | ||
152 | 152 | ||
153 | 153 | func keyClaimedByUserMinReward (lpAssetIdStr,userAddressStr) = makeString(["%s%s%s__claimedMinReward", userAddressStr, lpAssetIdStr], SEP) | |
154 | 154 | ||
155 | 155 | ||
156 | 156 | func keyClaimedByUserBoostReward (lpAssetIdStr,userAddressStr) = makeString(["%s%s%s__claimedBoostReward", userAddressStr, lpAssetIdStr], SEP) | |
157 | 157 | ||
158 | 158 | ||
159 | 159 | func keyClaimedTotal (lpAssetIdStr) = makeString(["%s%s%s__claimed", "total", lpAssetIdStr], SEP) | |
160 | 160 | ||
161 | 161 | ||
162 | 162 | func readStaked (key) = valueOrElse(getInteger(this, key), 0) | |
163 | 163 | ||
164 | 164 | ||
165 | 165 | func keyLastTotalLpBalance (lpAssetId) = makeString(["%s%s%s", lpAssetId, "total", "bal"], SEP) | |
166 | 166 | ||
167 | 167 | ||
168 | 168 | func keyLastUserLpBalance (lpAssetId,userAddress) = makeString(["%s%s%s", lpAssetId, userAddress, "bal"], SEP) | |
169 | 169 | ||
170 | 170 | ||
171 | 171 | func keyTotalLpBalanceIntegral (lpAssetId) = makeString(["%s%s%s", lpAssetId, "total", "balINT"], SEP) | |
172 | 172 | ||
173 | 173 | ||
174 | 174 | func keyUserLpBalanceIntegral (lpAssetId,userAddress) = makeString(["%s%s%s", lpAssetId, userAddress, "balINT"], SEP) | |
175 | 175 | ||
176 | 176 | ||
177 | 177 | func keyTotalLpBalanceIntegralLastUpdHeight (lpAssetId) = makeString(["%s%s%s", lpAssetId, "total", "lastUpd"], SEP) | |
178 | 178 | ||
179 | 179 | ||
180 | 180 | func keyUserLpBalanceIntegralLastUpdHeight (lpAssetId,userAddress) = makeString(["%s%s%s", lpAssetId, userAddress, "lastUpd"], SEP) | |
181 | 181 | ||
182 | 182 | ||
183 | 183 | func keyWxPerLpIntegral (lpAssetId) = makeString(["%s%s%s%s", lpAssetId, "common", "lpInt"], SEP) | |
184 | 184 | ||
185 | 185 | ||
186 | 186 | func keyWxPerLpIntegralLastUpdHeight (lpAssetId) = makeString(["%s%s%s%s", lpAssetId, "common", "lpIntH"], SEP) | |
187 | 187 | ||
188 | 188 | ||
189 | 189 | func keyWxToClaimUser (lpAssetId,userAddress) = makeString(["%s%s%s%s", lpAssetId, userAddress, "lpInt"], SEP) | |
190 | 190 | ||
191 | 191 | ||
192 | 192 | func keyWxPerLpIntegralUserLastUpdHeight (lpAssetId,userAddress) = makeString(["%s%s%s%s", lpAssetId, userAddress, "lpIntH"], SEP) | |
193 | 193 | ||
194 | 194 | ||
195 | 195 | func keyWxPerLp (lpAssetId) = makeString(["%s", lpAssetId, "wxPerLp"], SEP) | |
196 | 196 | ||
197 | 197 | ||
198 | 198 | func keyWxPerLpX18 (lpAssetId) = makeString(["%s", lpAssetId, "wxPerLpX18"], SEP) | |
199 | 199 | ||
200 | 200 | ||
201 | 201 | func keyWxPerLpIntegralUserLast (lpAssetId,userAddress) = makeString(["%s%s%s%s", lpAssetId, userAddress, "uIntL"], SEP) | |
202 | 202 | ||
203 | 203 | ||
204 | 204 | func keyOperationHistoryRecord (type,userAddress,txId58) = makeString(["%s%s%s%s__history", type, userAddress, txId58], SEP) | |
205 | 205 | ||
206 | 206 | ||
207 | 207 | func formatHistoryRecord (userAddress,lpAssetId,type,amount) = makeString(["%s%s%s%d%d%d", userAddress, lpAssetId, type, toString(height), toString(lastBlock.timestamp), toString(amount)], SEP) | |
208 | 208 | ||
209 | 209 | ||
210 | 210 | func OperationHistoryEntry (type,userAddress,lpAssetId,amount,txId) = StringEntry(keyOperationHistoryRecord(type, userAddress, toBase58String(txId)), formatHistoryRecord(userAddress, lpAssetId, type, amount)) | |
211 | 211 | ||
212 | 212 | ||
213 | 213 | let factoryAddress = getStringOrFail(this, keyFactoryAddress()) | |
214 | 214 | ||
215 | 215 | let factoryContract = addressFromStringValue(factoryAddress) | |
216 | 216 | ||
217 | 217 | let factoryCfg = readFactoryCfgOrFail(factoryContract) | |
218 | 218 | ||
219 | 219 | let emissionContract = getEmissionAddressOrFail(factoryCfg) | |
220 | 220 | ||
221 | 221 | let boostingContract = getBoostingAddressOrFail(factoryCfg) | |
222 | 222 | ||
223 | 223 | func calcWxPerLpIntegralUserLast (stakedByUser,wxPerLpIntegralUserLastUpdHeightOrZero,wxPerLpIntegralNew,wxPerLpIntegralUserLastKEY) = if (if ((wxPerLpIntegralUserLastUpdHeightOrZero == zeroBigInt)) | |
224 | 224 | then (stakedByUser > zeroBigInt) | |
225 | 225 | else false) | |
226 | 226 | then zeroBigInt | |
227 | 227 | else if ((stakedByUser == zeroBigInt)) | |
228 | 228 | then wxPerLpIntegralNew | |
229 | 229 | else if (if ((wxPerLpIntegralUserLastUpdHeightOrZero > zeroBigInt)) | |
230 | 230 | then (stakedByUser > zeroBigInt) | |
231 | 231 | else false) | |
232 | 232 | then value(parseBigInt(getStringOrFail(this, wxPerLpIntegralUserLastKEY))) | |
233 | 233 | else throw("calcWxPerLpIntegralUserLast: unexpected state") | |
234 | 234 | ||
235 | 235 | ||
236 | 236 | func refreshPoolINTEGRALS (lpAssetIdStr,poolAddressStr,lpDeltaAmount) = { | |
237 | 237 | let stakedTotalKEY = keyStakedTotal(lpAssetIdStr) | |
238 | 238 | let stakedTotal = toBigInt(readStaked(stakedTotalKEY)) | |
239 | 239 | let nonZeroStakedTotal = if ((stakedTotal == zeroBigInt)) | |
240 | 240 | then oneBigInt | |
241 | 241 | else stakedTotal | |
242 | 242 | let poolWeight = getIntegerValue(factoryContract, keyFactoryPoolWeight(poolAddressStr)) | |
243 | 243 | let emissionStartBlock = getIntOrFail(emissionContract, keyEmissionStartBlock()) | |
244 | 244 | let MULT3 = 1000 | |
245 | 245 | let wxEmissionPerBlockX3 = (getIntOrFail(emissionContract, keyEmissionRatePerBlockCurrent()) * MULT3) | |
246 | 246 | let poolWxEmissionPerBlockX3 = fraction(wxEmissionPerBlockX3, poolWeight, (POOLWEIGHTMULT * 3)) | |
247 | 247 | let wxPerLpIntegralKEY = keyWxPerLpIntegral(lpAssetIdStr) | |
248 | 248 | let wxPerLpIntegralLastUpdHeightKEY = keyWxPerLpIntegralLastUpdHeight(lpAssetIdStr) | |
249 | 249 | let wxPerLpKEY = keyWxPerLp(lpAssetIdStr) | |
250 | 250 | let wxPerLpIntegralLastUpdHeight = getIntOrDefault(this, wxPerLpIntegralLastUpdHeightKEY, emissionStartBlock) | |
251 | 251 | let wxPerLpIntegral = getIntOrZero(this, wxPerLpIntegralKEY) | |
252 | 252 | let wxPerLpOrZeroX3 = 0 | |
253 | 253 | let dh = max([(height - wxPerLpIntegralLastUpdHeight), 0]) | |
254 | 254 | let wxPerLpX3 = if ((wxPerLpOrZeroX3 != 0)) | |
255 | 255 | then toBigInt(wxPerLpOrZeroX3) | |
256 | 256 | else fraction(toBigInt(poolWxEmissionPerBlockX3), toBigInt(MULT8), nonZeroStakedTotal) | |
257 | 257 | let stakedTotalNew = (stakedTotal + toBigInt(lpDeltaAmount)) | |
258 | 258 | let nonZeroStakedTotalNew = if ((stakedTotalNew == zeroBigInt)) | |
259 | 259 | then oneBigInt | |
260 | 260 | else stakedTotalNew | |
261 | 261 | let wxPerLpIntegralNew = (toBigInt(wxPerLpIntegral) + (wxPerLpX3 * toBigInt(dh))) | |
262 | 262 | let wxPerLpX3New = (toBigInt(poolWxEmissionPerBlockX3) / nonZeroStakedTotalNew) | |
263 | 263 | let wxPerLpIntegralLastUpdHeightNew = height | |
264 | 264 | let debug = makeString([toString(wxPerLpIntegralNew), toString(dh), toString(wxPerLpX3), toString(stakedTotal), toString(poolWxEmissionPerBlockX3), toString(wxEmissionPerBlockX3), toString(poolWeight)], "::") | |
265 | 265 | $Tuple3(wxPerLpIntegralNew, [StringEntry(wxPerLpIntegralKEY, toString(wxPerLpIntegralNew)), IntegerEntry(wxPerLpIntegralLastUpdHeightKEY, wxPerLpIntegralLastUpdHeightNew), StringEntry(wxPerLpKEY, toString(wxPerLpX3New))], debug) | |
266 | 266 | } | |
267 | 267 | ||
268 | 268 | ||
269 | 269 | func refreshINTEGRALS (lpAssetIdStr,userAddressStr,poolAddressStr,lpDeltaAmount) = { | |
270 | 270 | let $t01099511117 = refreshPoolINTEGRALS(lpAssetIdStr, poolAddressStr, lpDeltaAmount) | |
271 | 271 | let wxPerLpIntegralNew = $t01099511117._1 | |
272 | 272 | let poolIntegralSTATE = $t01099511117._2 | |
273 | 273 | let poolDEBUG = $t01099511117._3 | |
274 | 274 | let MULT3 = 1000 | |
275 | 275 | let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr) | |
276 | 276 | let stakedByUser = readStaked(stakedByUserKEY) | |
277 | 277 | let wxToClaimUserKEY = keyWxToClaimUser(lpAssetIdStr, userAddressStr) | |
278 | 278 | let wxPerLpIntegralUserLastUpdHeightKEY = keyWxPerLpIntegralUserLastUpdHeight(lpAssetIdStr, userAddressStr) | |
279 | 279 | let wxPerLpIntegralUserLastKEY = keyWxPerLpIntegralUserLast(lpAssetIdStr, userAddressStr) | |
280 | 280 | let wxToClaimUser = getIntOrZero(this, wxToClaimUserKEY) | |
281 | 281 | let wxPerLpIntegralUserLastUpdHeightOrZero = getIntOrZero(this, wxPerLpIntegralUserLastUpdHeightKEY) | |
282 | 282 | let wxPerLpIntegralUserLast = calcWxPerLpIntegralUserLast(toBigInt(stakedByUser), toBigInt(wxPerLpIntegralUserLastUpdHeightOrZero), wxPerLpIntegralNew, wxPerLpIntegralUserLastKEY) | |
283 | 283 | let MULT11 = (MULT8 * MULT3) | |
284 | 284 | let wxToClaimUserNew = (toBigInt(wxToClaimUser) + fraction((wxPerLpIntegralNew - wxPerLpIntegralUserLast), toBigInt(stakedByUser), toBigInt(MULT11))) | |
285 | 285 | let wxPerLpIntegralUserLastNew = wxPerLpIntegralNew | |
286 | 286 | let wxPerLpIntegralUserLastUpdHeightNew = height | |
287 | 287 | let debug = makeString([toString(wxToClaimUserNew), toString(wxPerLpIntegralUserLast), toString(stakedByUser), poolDEBUG, toString(height)], "::") | |
288 | 288 | $Tuple3(wxToClaimUserNew, (poolIntegralSTATE ++ [StringEntry(wxToClaimUserKEY, toString(wxToClaimUserNew)), IntegerEntry(wxPerLpIntegralUserLastUpdHeightKEY, wxPerLpIntegralUserLastUpdHeightNew), StringEntry(wxPerLpIntegralUserLastKEY, toString(wxPerLpIntegralUserLastNew))]), debug) | |
289 | 289 | } | |
290 | 290 | ||
291 | 291 | ||
292 | 292 | func managerPublicKeyOrUnit () = match getString(keyManagerPublicKey()) { | |
293 | 293 | case s: String => | |
294 | 294 | fromBase58String(s) | |
295 | 295 | case _: Unit => | |
296 | 296 | unit | |
297 | 297 | case _ => | |
298 | 298 | throw("Match error") | |
299 | 299 | } | |
300 | 300 | ||
301 | 301 | ||
302 | 302 | func pendingManagerPublicKeyOrUnit () = match getString(keyPendingManagerPublicKey()) { | |
303 | 303 | case s: String => | |
304 | 304 | fromBase58String(s) | |
305 | 305 | case _: Unit => | |
306 | 306 | unit | |
307 | 307 | case _ => | |
308 | 308 | throw("Match error") | |
309 | 309 | } | |
310 | 310 | ||
311 | 311 | ||
312 | 312 | func mustManager (i) = { | |
313 | 313 | let pd = throw("Permission denied") | |
314 | 314 | match managerPublicKeyOrUnit() { | |
315 | 315 | case pk: ByteVector => | |
316 | 316 | if ((i.callerPublicKey == pk)) | |
317 | 317 | then true | |
318 | 318 | else pd | |
319 | 319 | case _: Unit => | |
320 | 320 | if ((i.caller == this)) | |
321 | 321 | then true | |
322 | 322 | else pd | |
323 | 323 | case _ => | |
324 | 324 | throw("Match error") | |
325 | 325 | } | |
326 | 326 | } | |
327 | 327 | ||
328 | 328 | ||
329 | 329 | @Callable(i) | |
330 | 330 | func constructor (factoryAddressStr) = { | |
331 | 331 | let checkCaller = mustManager(i) | |
332 | 332 | if ((checkCaller == checkCaller)) | |
333 | 333 | then [StringEntry(keyFactoryAddress(), factoryAddressStr)] | |
334 | 334 | else throw("Strict value is not equal to itself.") | |
335 | 335 | } | |
336 | 336 | ||
337 | 337 | ||
338 | 338 | ||
339 | 339 | @Callable(i) | |
340 | 340 | func setManager (pendingManagerPublicKey) = { | |
341 | 341 | let checkCaller = mustManager(i) | |
342 | 342 | if ((checkCaller == checkCaller)) | |
343 | 343 | then { | |
344 | 344 | let checkManagerPublicKey = fromBase58String(pendingManagerPublicKey) | |
345 | 345 | if ((checkManagerPublicKey == checkManagerPublicKey)) | |
346 | 346 | then [StringEntry(keyPendingManagerPublicKey(), pendingManagerPublicKey)] | |
347 | 347 | else throw("Strict value is not equal to itself.") | |
348 | 348 | } | |
349 | 349 | else throw("Strict value is not equal to itself.") | |
350 | 350 | } | |
351 | 351 | ||
352 | 352 | ||
353 | 353 | ||
354 | 354 | @Callable(i) | |
355 | 355 | func confirmManager () = { | |
356 | 356 | let pm = pendingManagerPublicKeyOrUnit() | |
357 | 357 | let hasPM = if (isDefined(pm)) | |
358 | 358 | then true | |
359 | 359 | else throw("No pending manager") | |
360 | 360 | if ((hasPM == hasPM)) | |
361 | 361 | then { | |
362 | 362 | let checkPM = if ((i.callerPublicKey == value(pm))) | |
363 | 363 | then true | |
364 | 364 | else throw("You are not pending manager") | |
365 | 365 | if ((checkPM == checkPM)) | |
366 | 366 | then [StringEntry(keyManagerPublicKey(), toBase58String(value(pm))), DeleteEntry(keyPendingManagerPublicKey())] | |
367 | 367 | else throw("Strict value is not equal to itself.") | |
368 | 368 | } | |
369 | 369 | else throw("Strict value is not equal to itself.") | |
370 | 370 | } | |
371 | 371 | ||
372 | 372 | ||
373 | 373 | ||
374 | 374 | @Callable(i) | |
375 | 375 | func stake () = if ((size(i.payments) != 1)) | |
376 | 376 | then throw("invalid payment - exact one payment must be attached") | |
377 | 377 | else { | |
378 | 378 | let pmt = i.payments[0] | |
379 | 379 | let lpAssetId = value(pmt.assetId) | |
380 | 380 | let lpAssetIdStr = toBase58String(lpAssetId) | |
381 | 381 | let amount = pmt.amount | |
382 | 382 | let poolAddressStr = valueOrErrorMessage(getString(factoryContract, keyFactoryLp2AssetsMapping(lpAssetIdStr)), ("unsupported lp asset " + lpAssetIdStr)) | |
383 | 383 | let callerStr = toString(i.caller) | |
384 | 384 | let userAddressStr = if ((callerStr == poolAddressStr)) | |
385 | 385 | then toString(i.originCaller) | |
386 | 386 | else callerStr | |
387 | 387 | let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr) | |
388 | 388 | let stakedTotalKEY = keyStakedTotal(lpAssetIdStr) | |
389 | 389 | let stakedByUser = readStaked(stakedByUserKEY) | |
390 | 390 | let stakedTotal = readStaked(stakedTotalKEY) | |
391 | 391 | let $t01514815265 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, amount) | |
392 | 392 | let wxToClaimUserNew = $t01514815265._1 | |
393 | 393 | let integralSTATE = $t01514815265._2 | |
394 | 394 | let debug = $t01514815265._3 | |
395 | 395 | ([IntegerEntry(stakedByUserKEY, (stakedByUser + amount)), IntegerEntry(stakedTotalKEY, (stakedTotal + amount)), OperationHistoryEntry("stake", userAddressStr, lpAssetIdStr, amount, i.transactionId)] ++ integralSTATE) | |
396 | 396 | } | |
397 | 397 | ||
398 | 398 | ||
399 | 399 | ||
400 | 400 | @Callable(i) | |
401 | 401 | func unstake (lpAssetIdStr,amount) = { | |
402 | 402 | let lpAssetId = fromBase58String(lpAssetIdStr) | |
403 | 403 | let poolAddressStr = valueOrErrorMessage(getString(factoryContract, keyFactoryLp2AssetsMapping(lpAssetIdStr)), ("unsupported lp asset " + lpAssetIdStr)) | |
404 | 404 | let poolAddon = valueOrElse(getString(this, keyStablePoolAddonAddr()), poolAddressStr) | |
405 | 405 | let callerStr = toString(i.caller) | |
406 | 406 | let userAddressStr = if (if ((callerStr == poolAddressStr)) | |
407 | 407 | then true | |
408 | 408 | else (callerStr == poolAddon)) | |
409 | 409 | then toString(i.originCaller) | |
410 | 410 | else callerStr | |
411 | 411 | let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr) | |
412 | 412 | let stakedTotalKEY = keyStakedTotal(lpAssetIdStr) | |
413 | 413 | let stakedByUser = readStaked(stakedByUserKEY) | |
414 | 414 | let stakedTotal = readStaked(stakedTotalKEY) | |
415 | 415 | let $t01640216520 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, -(amount)) | |
416 | 416 | let wxToClaimUserNew = $t01640216520._1 | |
417 | 417 | let integralSTATE = $t01640216520._2 | |
418 | 418 | let debug = $t01640216520._3 | |
419 | 419 | if ((amount > stakedByUser)) | |
420 | 420 | then throw("passed amount is less then available") | |
421 | 421 | else ([IntegerEntry(stakedByUserKEY, (stakedByUser - amount)), IntegerEntry(stakedTotalKEY, (stakedTotal - amount)), ScriptTransfer(i.caller, amount, lpAssetId), OperationHistoryEntry("unstake", userAddressStr, lpAssetIdStr, amount, i.transactionId)] ++ integralSTATE) | |
422 | 422 | } | |
423 | 423 | ||
424 | 424 | ||
425 | 425 | ||
426 | 426 | @Callable(i) | |
427 | 427 | func claimWx (lpAssetIdStr) = { | |
428 | 428 | let userAddress = i.caller | |
429 | 429 | let userAddressStr = toString(i.caller) | |
430 | 430 | let poolAddressStr = getStringByAddressOrFail(factoryContract, keyFactoryLpAssetToPoolContractAddress(lpAssetIdStr)) | |
431 | 431 | let claimedByUserKEY = keyClaimedByUser(lpAssetIdStr, userAddressStr) | |
432 | 432 | let claimedTotalKEY = keyClaimedTotal(lpAssetIdStr) | |
433 | 433 | let claimedByUserMinRewardKEY = keyClaimedByUserMinReward(lpAssetIdStr, userAddressStr) | |
434 | 434 | let claimedByUserBoostRewardKEY = keyClaimedByUserBoostReward(lpAssetIdStr, userAddressStr) | |
435 | 435 | let claimedByUser = toBigInt(getIntOrZero(this, claimedByUserKEY)) | |
436 | 436 | let claimedByUserMinReward = toBigInt(getIntOrZero(this, claimedByUserMinRewardKEY)) | |
437 | 437 | let claimedByUserBoostReward = toBigInt(getIntOrZero(this, claimedByUserBoostRewardKEY)) | |
438 | 438 | let claimedTotal = toBigInt(getIntOrZero(this, claimedTotalKEY)) | |
439 | 439 | let $t01775617868 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, 0) | |
440 | 440 | let wxToClaimUserNew = $t01775617868._1 | |
441 | 441 | let integralSTATE = $t01775617868._2 | |
442 | 442 | let debug = $t01775617868._3 | |
443 | 443 | let availableToClaim = (wxToClaimUserNew - claimedByUser) | |
444 | 444 | if ((zeroBigInt >= availableToClaim)) | |
445 | 445 | then throw("nothing to claim") | |
446 | 446 | else { | |
447 | 447 | let wxAmountBoostTotal = asInt(asAnyList(invoke(boostingContract, "claimWxBoost", [lpAssetIdStr, userAddressStr], nil))[0]) | |
448 | 448 | let minRewardPart = availableToClaim | |
449 | 449 | let boostRewardPart = min([(minRewardPart * toBigInt(2)), toBigInt(wxAmountBoostTotal)]) | |
450 | 450 | let wxAssetId = asByteVector(asAnyList(invoke(emissionContract, "emit", [minRewardPart], nil))[0]) | |
451 | 451 | let emitBoost = asAnyList(invoke(emissionContract, "emit", [boostRewardPart], nil)) | |
452 | 452 | if ((emitBoost == emitBoost)) | |
453 | 453 | then { | |
454 | 454 | let claimedByUserValue = (claimedByUser + availableToClaim) | |
455 | 455 | let claimedByUserMinRewardPlusPart = (claimedByUserMinReward + minRewardPart) | |
456 | 456 | let claimedByUserBoostRewardPlusBoostRewardPart = (claimedByUserMinReward + minRewardPart) | |
457 | 457 | let claimedTotalPlusAvailableToClaim = (claimedByUserMinReward + minRewardPart) | |
458 | 458 | [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)] | |
459 | 459 | } | |
460 | 460 | else throw("Strict value is not equal to itself.") | |
461 | 461 | } | |
462 | 462 | } | |
463 | 463 | ||
464 | 464 | ||
465 | 465 | ||
466 | 466 | @Callable(i) | |
467 | 467 | func claimWxREADONLY (lpAssetIdStr,userAddressStr) = { | |
468 | 468 | let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr) | |
469 | 469 | let stakedTotalKEY = keyStakedTotal(lpAssetIdStr) | |
470 | 470 | let claimedByUserKEY = keyClaimedByUser(lpAssetIdStr, userAddressStr) | |
471 | 471 | let stakedByUser = readStaked(stakedByUserKEY) | |
472 | 472 | let stakedTotal = readStaked(stakedTotalKEY) | |
473 | 473 | let claimedByUser = getIntOrZero(this, claimedByUserKEY) | |
474 | 474 | let poolAddressStr = getStringByAddressOrFail(factoryContract, keyFactoryLpAssetToPoolContractAddress(lpAssetIdStr)) | |
475 | 475 | let poolWeight = getIntegerValue(factoryContract, keyFactoryPoolWeight(poolAddressStr)) | |
476 | 476 | let wxEmissionPerBlock = getIntOrFail(emissionContract, keyEmissionRatePerBlockCurrent()) | |
477 | 477 | let emissionStartBlock = getIntOrFail(emissionContract, keyEmissionStartBlock()) | |
478 | 478 | let passedBlocks = if ((emissionStartBlock > height)) | |
479 | 479 | then 0 | |
480 | 480 | else (height - emissionStartBlock) | |
481 | 481 | let poolWxEmission = fraction((wxEmissionPerBlock * passedBlocks), poolWeight, POOLWEIGHTMULT) | |
482 | 482 | let userWxReward = fraction(poolWxEmission, stakedByUser, stakedTotal) | |
483 | 483 | let $t02045320565 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, 0) | |
484 | 484 | let wxToClaimUserNew = $t02045320565._1 | |
485 | 485 | let integralSTATE = $t02045320565._2 | |
486 | 486 | let debug = $t02045320565._3 | |
487 | 487 | let availableToClaim = (wxToClaimUserNew - toBigInt(claimedByUser)) | |
488 | 488 | let boostInvResult = asAnyList(invoke(boostingContract, "claimWxBoostREADONLY", [lpAssetIdStr, userAddressStr], nil)) | |
489 | 489 | let wxAmountBoostTotal = asInt(boostInvResult[0]) | |
490 | 490 | let boostDebug = asString(boostInvResult[1]) | |
491 | 491 | let minRewardPart = availableToClaim | |
492 | 492 | let boostRewardPart = min([(minRewardPart * toBigInt(2)), toBigInt(wxAmountBoostTotal)]) | |
493 | 493 | let totalReward = (minRewardPart + boostRewardPart) | |
494 | 494 | $Tuple2(nil, makeString(["%s%s%d%d%d%d%s", lpAssetIdStr, userAddressStr, toString(totalReward), toString(claimedByUser), toString(minRewardPart), toString(boostRewardPart), ((((debug + "::") + toString(userWxReward)) + "::BOOSTDEBUG::") + boostDebug)], SEP)) | |
495 | 495 | } | |
496 | 496 | ||
497 | 497 | ||
498 | 498 | ||
499 | 499 | @Callable(i) | |
500 | 500 | func onModifyWeight (lpAssetIdStr,poolAddressStr) = if ((i.caller != factoryContract)) | |
501 | 501 | then throw("permissions denied") | |
502 | 502 | else { | |
503 | 503 | let $t02147821588 = refreshPoolINTEGRALS(lpAssetIdStr, poolAddressStr, 0) | |
504 | 504 | let wxPerLpIntegralNew = $t02147821588._1 | |
505 | 505 | let poolIntegralSTATE = $t02147821588._2 | |
506 | 506 | let poolDEBUG = $t02147821588._3 | |
507 | 507 | poolIntegralSTATE | |
508 | 508 | } | |
509 | 509 | ||
510 | 510 | ||
511 | 511 | @Verifier(tx) | |
512 | 512 | func verify () = { | |
513 | 513 | let targetPublicKey = match managerPublicKeyOrUnit() { | |
514 | 514 | case pk: ByteVector => | |
515 | 515 | pk | |
516 | 516 | case _: Unit => | |
517 | 517 | tx.senderPublicKey | |
518 | 518 | case _ => | |
519 | 519 | throw("Match error") | |
520 | 520 | } | |
521 | 521 | sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey) | |
522 | 522 | } | |
523 | 523 |
github/deemru/w8io/169f3d6 78.86 ms ◑