tx · D6pv5s3nuxkkHieimBM579pptNKitvzMupjcQ34qEtAh

3N98Ngyaszw66EakvWRCiZ771ja2RDgNaxV:  -0.02800000 Waves

2023.01.13 11:16 [2402918] smart account 3N98Ngyaszw66EakvWRCiZ771ja2RDgNaxV > SELF 0.00000000 Waves

{ "type": 13, "id": "D6pv5s3nuxkkHieimBM579pptNKitvzMupjcQ34qEtAh", "fee": 2800000, "feeAssetId": null, "timestamp": 1673597927171, "version": 1, "sender": "3N98Ngyaszw66EakvWRCiZ771ja2RDgNaxV", "senderPublicKey": "F4oaTkX67vt2MEsXLJJ8a7gaURGjW7x8fkvGfdEiH5oy", "proofs": [ "54cuyM7rHAyc8xXPDFKSLsnGtYSxKQtYPQ1vhTMrqQVFSEEPoqyHbr4FJ47k7XN3E78CRtwCCpXgYA2FtBjYmmDM" ], "script": "base64:BgInCAISAwoBCBIAEgcKBQgICAgIEgASBAoCCAgSABIECgIICBIDCgEIQQAJc2VwYXJhdG9yAgJfXwASc2hhcmVBc3NldERlY2ltYWxzAAgAC3dhdmVzU3RyaW5nAgVXQVZFUwAHc2NhbGUxOACAgJC7utat8A0ADXNjYWxlMThCaWdJbnQJALYCAQUHc2NhbGUxOAEHd3JhcEVycgEDbXNnCQC5CQIJAMwIAgIWbHBfc3Rha2luZ19wb29scy5yaWRlOgkAzAgCBQNtc2cFA25pbAIBIAEIdGhyb3dFcnIBA21zZwkAAgEJAQd3cmFwRXJyAQUDbXNnARJlcnJLZXlJc05vdERlZmluZWQCB2FkZHJlc3MDa2V5CQEHd3JhcEVycgEJALkJAgkAzAgCAgptYW5kYXRvcnkgCQDMCAIJAKUIAQUHYWRkcmVzcwkAzAgCAgEuCQDMCAIFA2tleQkAzAgCAg8gaXMgbm90IGRlZmluZWQFA25pbAIAAQxnZXRTdHJPckZhaWwCB2FkZHJlc3MDa2V5CQETdmFsdWVPckVycm9yTWVzc2FnZQIJAJ0IAgUHYWRkcmVzcwUDa2V5CQESZXJyS2V5SXNOb3REZWZpbm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V0SWQJAKYDAQUJbGFzdFByaWNlBQNuaWwFCnB1dEFjdGlvbnMFCmdldEFjdGlvbnMJAJQKAgUHYWN0aW9ucwkAnQMBBQlsYXN0UHJpY2UJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4BAnR4AQZ2ZXJpZnkABA90YXJnZXRQdWJsaWNLZXkEByRtYXRjaDAJARZtYW5hZ2VyUHVibGljS2V5T3JVbml0AAMJAAECBQckbWF0Y2gwAgpCeXRlVmVjdG9yBAJwawUHJG1hdGNoMAUCcGsDCQABAgUHJG1hdGNoMAIEVW5pdAgFAnR4D3NlbmRlclB1YmxpY0tleQkAAgECC01hdGNoIGVycm9yCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAABQ90YXJnZXRQdWJsaWNLZXm3hUN3", "chainId": 84, "height": 2402918, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Az8odyb8MUp3kWgvgvKHUXhrupyURcN5pobvRTvAvmz1 Next: 7BdaSHDCRUgc7XzSuat1P1rDJWjVzZCNdvVY9DkzqanA Diff:
OldNewDifferences
521521 }
522522 if ((checkDelay == checkDelay))
523523 then {
524- let $t01916119378 = valueOrErrorMessage(getPoolInfo(baseAssetId), wrapErr("invalid asset"))
525- let poolAddress = $t01916119378._1
526- let lpAssetId = $t01916119378._2
524+ let $t01916119342 = valueOrErrorMessage(getPoolInfo(baseAssetId), wrapErr("invalid asset"))
525+ let poolAddress = $t01916119342._1
526+ let lpAssetId = $t01916119342._2
527527 let stakingReward = valueOrErrorMessage({
528- let @ = invoke(stakingContract, "claimWx", [assetIdToString(lpAssetId)], nil)
528+ let @ = invoke(stakingContract, "claimWxclaimWxDoNotThrow", [assetIdToString(lpAssetId)], nil)
529529 if ($isInstanceOf(@, "Int"))
530530 then @
531531 else unit
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let separator = "__"
55
66 let shareAssetDecimals = 8
77
88 let wavesString = "WAVES"
99
1010 let scale18 = 1000000000000000000
1111
1212 let scale18BigInt = toBigInt(scale18)
1313
1414 func wrapErr (msg) = makeString(["lp_staking_pools.ride:", msg], " ")
1515
1616
1717 func throwErr (msg) = throw(wrapErr(msg))
1818
1919
2020 func errKeyIsNotDefined (address,key) = wrapErr(makeString(["mandatory ", toString(address), ".", key, " is not defined"], ""))
2121
2222
2323 func getStrOrFail (address,key) = valueOrErrorMessage(getString(address, key), errKeyIsNotDefined(address, key))
2424
2525
2626 func getIntOrFail (address,key) = valueOrErrorMessage(getInteger(address, key), errKeyIsNotDefined(address, key))
2727
2828
2929 func parseAssetId (input) = if ((input == wavesString))
3030 then unit
3131 else fromBase58String(input)
3232
3333
3434 func assetIdToString (input) = if ((input == unit))
3535 then wavesString
3636 else toBase58String(value(input))
3737
3838
3939 func ensurePositive (v) = if ((v >= 0))
4040 then v
4141 else throwErr("value should be positive")
4242
4343
4444 func keyFactoryContract () = makeString(["%s", "factoryContract"], separator)
4545
4646
4747 func keyLpStakingContract () = makeString(["%s", "lpStakingContract"], separator)
4848
4949
5050 func keyStakingContract () = makeString(["%s", "stakingContract"], separator)
5151
5252
5353 func keyBoostingContract () = makeString(["%s", "boostingContract"], separator)
5454
5555
5656 func keySwapContract () = makeString(["%s", "swapContract"], separator)
5757
5858
5959 func keyAssetsStoreContract () = makeString(["%s", "assetsStoreContract"], separator)
6060
6161
6262 func keyUsdnAssetId () = makeString(["%s", "usdnAssetId"], separator)
6363
6464
6565 func keyWxAssetId () = makeString(["%s", "wxAssetId"], separator)
6666
6767
6868 func keyShutdown () = makeString(["%s", "shutdown"], separator)
6969
7070
7171 func keyMinDelay () = makeString(["%s", "minDelay"], separator)
7272
7373
7474 func keyLockFraction () = makeString(["%s", "lockFraction"], separator)
7575
7676
7777 func keyShareAssetId (baseAssetId) = makeString(["%s%s", assetIdToString(baseAssetId), "shareAssetId"], separator)
7878
7979
8080 func keyBaseAssetId (shareAssetId) = makeString(["%s%s", assetIdToString(shareAssetId), "baseAssetId"], separator)
8181
8282
8383 func keyPeriod (baseAssetId) = makeString(["%s%s", assetIdToString(baseAssetId), "period"], separator)
8484
8585
8686 func keyPeriodStartHeight (baseAssetId,period) = makeString(["%s%s%d", assetIdToString(baseAssetId), "periodStartHeight", toString(period)], separator)
8787
8888
8989 func keyBaseAssetAmountToConvert (baseAssetId) = makeString(["%s%s", assetIdToString(baseAssetId), "baseAssetAmountToConvert"], separator)
9090
9191
9292 func keyShareAssetAmountToConvert (baseAssetId) = makeString(["%s%s", assetIdToString(baseAssetId), "shareAssetAmountToConvert"], separator)
9393
9494
9595 func keyUserBaseAssetAmountToConvert (baseAssetId,userAddress) = makeString(["%s%s%s", assetIdToString(baseAssetId), toString(userAddress), "baseAssetAmountToConvert"], separator)
9696
9797
9898 func keyUserBaseAssetAmountToConvertPeriod (baseAssetId,userAddress) = makeString(["%s%s%s%s", assetIdToString(baseAssetId), toString(userAddress), "baseAssetAmountToConvert", "period"], separator)
9999
100100
101101 func keyUserShareAssetAmountToConvert (baseAssetId,userAddress) = makeString(["%s%s%s", assetIdToString(baseAssetId), toString(userAddress), "shareAssetAmountToConvert"], separator)
102102
103103
104104 func keyUserShareAssetAmountToConvertPeriod (baseAssetId,userAddress) = makeString(["%s%s%s%s", assetIdToString(baseAssetId), toString(userAddress), "shareAssetAmountToConvert", "period"], separator)
105105
106106
107107 func keyPricePeriod (baseAssetId,period) = makeString(["%s%s%d", assetIdToString(baseAssetId), "price", toString(period)], separator)
108108
109109
110110 func keyPriceHistory (baseAssetId) = makeString(["%s%s%s%d%d", assetIdToString(baseAssetId), "price", "history", toString(lastBlock.height), toString(lastBlock.timestamp)], separator)
111111
112112
113113 func keyPricePeriodPut (baseAssetId,period) = makeString(["%s%s%d%s", assetIdToString(baseAssetId), "price", toString(period), "put"], separator)
114114
115115
116116 func keyPricePutHistory (baseAssetId) = makeString(["%s%s%s%s%d%d", assetIdToString(baseAssetId), "price", "history", "put", toString(lastBlock.height), toString(lastBlock.timestamp)], separator)
117117
118118
119119 func keyPricePeriodGet (baseAssetId,period) = makeString(["%s%s%d%s", assetIdToString(baseAssetId), "price", toString(period), "get"], separator)
120120
121121
122122 func keyPriceGetHistory (baseAssetId) = makeString(["%s%s%s%s%d%d", assetIdToString(baseAssetId), "price", "history", "get", toString(lastBlock.height), toString(lastBlock.timestamp)], separator)
123123
124124
125125 func keyHistoryEntry (baseAssetId,operation,period,userAddress,txId) = makeString(["%s%s%s%s", "history", operation, toString(userAddress), toBase58String(txId), toString(height)], separator)
126126
127127
128128 func keyManagerPublicKey () = "%s__managerPublicKey"
129129
130130
131131 func keyPendingManagerPublicKey () = "%s__pendingManagerPublicKey"
132132
133133
134134 func managerPublicKeyOrUnit () = match getString(keyManagerPublicKey()) {
135135 case s: String =>
136136 fromBase58String(s)
137137 case _: Unit =>
138138 unit
139139 case _ =>
140140 throw("Match error")
141141 }
142142
143143
144144 func pendingManagerPublicKeyOrUnit () = match getString(keyPendingManagerPublicKey()) {
145145 case s: String =>
146146 fromBase58String(s)
147147 case _: Unit =>
148148 unit
149149 case _ =>
150150 throw("Match error")
151151 }
152152
153153
154154 let permissionDeniedError = throw("Permission denied")
155155
156156 func mustThis (i) = if ((i.caller == this))
157157 then true
158158 else permissionDeniedError
159159
160160
161161 func mustManager (i) = match managerPublicKeyOrUnit() {
162162 case pk: ByteVector =>
163163 if ((i.callerPublicKey == pk))
164164 then true
165165 else permissionDeniedError
166166 case _: Unit =>
167167 mustThis(i)
168168 case _ =>
169169 throw("Match error")
170170 }
171171
172172
173173 let shutdown = valueOrElse(getBoolean(keyShutdown()), false)
174174
175175 func shutdownCheck (i) = if (if (!(shutdown))
176176 then true
177177 else mustManager(i))
178178 then true
179179 else throw("operation is disabled")
180180
181181
182182 let factoryContract = addressFromStringValue(getStrOrFail(this, keyFactoryContract()))
183183
184184 let lpStakingContract = addressFromStringValue(getStrOrFail(this, keyLpStakingContract()))
185185
186186 let stakingContract = addressFromStringValue(getStrOrFail(this, keyStakingContract()))
187187
188188 let boostingContract = addressFromStringValue(getStrOrFail(this, keyBoostingContract()))
189189
190190 let swapContract = addressFromStringValue(getStrOrFail(this, keySwapContract()))
191191
192192 let assetsStoreContract = addressFromStringValue(getStrOrFail(this, keyAssetsStoreContract()))
193193
194194 let usdnAssetId = parseAssetId(getStrOrFail(this, keyUsdnAssetId()))
195195
196196 let wxAssetId = parseAssetId(getStrOrFail(this, keyWxAssetId()))
197197
198198 let minDelayDefault = 1440
199199
200200 let minDelay = valueOrElse(getInteger(this, keyMinDelay()), minDelayDefault)
201201
202202 let lockFractionMultiplier = 100000000
203203
204204 let lockFractionDefault = fraction(1, lockFractionMultiplier, 2)
205205
206206 let lockFraction = valueOrElse(getInteger(this, keyLockFraction()), lockFractionDefault)
207207
208208 func getPoolInfo (amountAssetId) = {
209209 let amountAssetIdStr = assetIdToString(amountAssetId)
210210 let priceAssetIdStr = assetIdToString(usdnAssetId)
211211 let poolInfoOption = {
212212 let @ = invoke(factoryContract, "poolInfoREADONLY", [amountAssetIdStr, priceAssetIdStr], nil)
213213 if ($isInstanceOf(@, "(Address, ByteVector)"))
214214 then @
215215 else unit
216216 }
217217 poolInfoOption
218218 }
219219
220220
221221 func calcPrice (lpAssetId,shareAssetId) = {
222222 let shareAssetInfo = valueOrErrorMessage(assetInfo(shareAssetId), "failed to get share asset info")
223223 let shareAssetEmission = shareAssetInfo.quantity
224224 let stakedAmount = ensurePositive(valueOrErrorMessage({
225225 let @ = invoke(stakingContract, "stakedByUserREADONLY", [assetIdToString(lpAssetId), toString(this)], nil)
226226 if ($isInstanceOf(@, "Int"))
227227 then @
228228 else unit
229229 }, wrapErr("invalid stakedByUserREADONLY result")))
230230 let price = if ((shareAssetEmission == 0))
231231 then scale18BigInt
232232 else fraction(toBigInt(stakedAmount), scale18BigInt, toBigInt(shareAssetEmission), FLOOR)
233233 price
234234 }
235235
236236
237237 @Callable(i)
238238 func setManager (pendingManagerPublicKey) = {
239239 let checkCaller = mustManager(i)
240240 if ((checkCaller == checkCaller))
241241 then {
242242 let checkManagerPublicKey = fromBase58String(pendingManagerPublicKey)
243243 if ((checkManagerPublicKey == checkManagerPublicKey))
244244 then [StringEntry(keyPendingManagerPublicKey(), pendingManagerPublicKey)]
245245 else throw("Strict value is not equal to itself.")
246246 }
247247 else throw("Strict value is not equal to itself.")
248248 }
249249
250250
251251
252252 @Callable(i)
253253 func confirmManager () = {
254254 let pm = pendingManagerPublicKeyOrUnit()
255255 let hasPM = if (isDefined(pm))
256256 then true
257257 else throwErr("no pending manager")
258258 if ((hasPM == hasPM))
259259 then {
260260 let checkPM = if ((i.callerPublicKey == value(pm)))
261261 then true
262262 else throwErr("you are not pending manager")
263263 if ((checkPM == checkPM))
264264 then [StringEntry(keyManagerPublicKey(), toBase58String(value(pm))), DeleteEntry(keyPendingManagerPublicKey())]
265265 else throw("Strict value is not equal to itself.")
266266 }
267267 else throw("Strict value is not equal to itself.")
268268 }
269269
270270
271271
272272 @Callable(i)
273273 func create (baseAssetIdStr,shareAssetIdStr,shareAssetName,shareAssetDescription,shareAssetLogo) = {
274274 let shareAssetLabel = "LP_STAKING_POOLS"
275275 let baseAssetId = parseAssetId(baseAssetIdStr)
276276 let checks = [mustManager(i), if (isDefined(getPoolInfo(baseAssetId)))
277277 then true
278278 else throwErr("invalid base asset")]
279279 if ((checks == checks))
280280 then {
281281 let commonState = [IntegerEntry(keyPeriod(baseAssetId), 0)]
282282 if ((shareAssetIdStr == ""))
283283 then {
284284 let shareAssetIssueAmount = 1
285285 let shareAssetIssueAction = Issue(shareAssetName, shareAssetDescription, shareAssetIssueAmount, shareAssetDecimals, true)
286286 let calculatedShareAssetId = calculateAssetId(shareAssetIssueAction)
287287 let shareAssetBurnAction = Burn(calculatedShareAssetId, shareAssetIssueAmount)
288288 let calculatedShareAssetIdStr = toBase58String(calculatedShareAssetId)
289289 let createOrUpdate = invoke(assetsStoreContract, "createOrUpdate", [calculatedShareAssetIdStr, shareAssetLogo, false], nil)
290290 if ((createOrUpdate == createOrUpdate))
291291 then {
292292 let addLabel = invoke(assetsStoreContract, "addLabel", [calculatedShareAssetIdStr, shareAssetLabel], nil)
293293 if ((addLabel == addLabel))
294294 then $Tuple2((commonState ++ [shareAssetIssueAction, shareAssetBurnAction, StringEntry(keyShareAssetId(baseAssetId), calculatedShareAssetIdStr), StringEntry(keyBaseAssetId(calculatedShareAssetId), baseAssetIdStr)]), calculatedShareAssetIdStr)
295295 else throw("Strict value is not equal to itself.")
296296 }
297297 else throw("Strict value is not equal to itself.")
298298 }
299299 else {
300300 let shareAssetId = fromBase58String(shareAssetIdStr)
301301 let shareAssetInfo = valueOrErrorMessage(assetInfo(shareAssetId), wrapErr("invalid share asset id"))
302302 let checkIssuer = if ((shareAssetInfo.issuer == lpStakingContract))
303303 then true
304304 else throwErr("invalid share asset id issuer")
305305 if ((checkIssuer == checkIssuer))
306306 then $Tuple2((commonState ++ [StringEntry(keyShareAssetId(baseAssetId), shareAssetIdStr), StringEntry(keyShareAssetId(shareAssetId), baseAssetIdStr)]), shareAssetIdStr)
307307 else throw("Strict value is not equal to itself.")
308308 }
309309 }
310310 else throw("Strict value is not equal to itself.")
311311 }
312312
313313
314314
315315 @Callable(i)
316316 func put () = {
317317 let pmt = if ((size(i.payments) == 1))
318318 then i.payments[0]
319319 else throwErr("exactly 1 payment is expected")
320320 let baseAssetId = pmt.assetId
321321 let userAddress = i.caller
322322 let checks = [shutdownCheck(i), if (isDefined(getString(keyShareAssetId(baseAssetId))))
323323 then true
324324 else throwErr("invalid asset")]
325325 if ((checks == checks))
326326 then {
327327 let $t01131211415 = valueOrErrorMessage(getPoolInfo(baseAssetId), wrapErr("invalid asset"))
328328 let poolAddress = $t01131211415._1
329329 let lpAssetId = $t01131211415._2
330330 let period = value(getInteger(keyPeriod(baseAssetId)))
331331 let userBaseAssetAmountToConvertPeriodOption = getInteger(keyUserBaseAssetAmountToConvertPeriod(baseAssetId, userAddress))
332332 let claimShareAssetInvocation = if ((userBaseAssetAmountToConvertPeriodOption == unit))
333333 then unit
334334 else {
335335 let userBaseAssetAmountToConvertPeriod = value(userBaseAssetAmountToConvertPeriodOption)
336336 if ((userBaseAssetAmountToConvertPeriod == period))
337337 then unit
338338 else invoke(this, "claimShareAsset", [assetIdToString(baseAssetId), toString(userAddress)], nil)
339339 }
340340 if ((claimShareAssetInvocation == claimShareAssetInvocation))
341341 then {
342342 let baseAssetAmountToConvert = valueOrElse(getInteger(keyBaseAssetAmountToConvert(baseAssetId)), 0)
343343 let userBaseAssetAmountToConvert = valueOrElse(getInteger(keyUserBaseAssetAmountToConvert(baseAssetId, userAddress)), 0)
344344 $Tuple2([IntegerEntry(keyBaseAssetAmountToConvert(baseAssetId), (baseAssetAmountToConvert + pmt.amount)), IntegerEntry(keyUserBaseAssetAmountToConvert(baseAssetId, userAddress), (userBaseAssetAmountToConvert + pmt.amount)), IntegerEntry(keyUserBaseAssetAmountToConvertPeriod(baseAssetId, userAddress), period), IntegerEntry(keyHistoryEntry(baseAssetId, "put", period, userAddress, i.transactionId), pmt.amount)], unit)
345345 }
346346 else throw("Strict value is not equal to itself.")
347347 }
348348 else throw("Strict value is not equal to itself.")
349349 }
350350
351351
352352
353353 @Callable(i)
354354 func claimShareAsset (baseAssetIdStr,userAddressStr) = {
355355 let checks = [shutdownCheck(i)]
356356 if ((checks == checks))
357357 then {
358358 let userAddress = if ((userAddressStr == ""))
359359 then i.caller
360360 else {
361361 let checkCaller = mustThis(i)
362362 if ((checkCaller == checkCaller))
363363 then valueOrErrorMessage(addressFromString(userAddressStr), wrapErr("invalid user address"))
364364 else throw("Strict value is not equal to itself.")
365365 }
366366 if ((userAddress == userAddress))
367367 then {
368368 let baseAssetId = parseAssetId(baseAssetIdStr)
369369 let shareAssetId = value(parseAssetId(valueOrErrorMessage(getString(keyShareAssetId(baseAssetId)), wrapErr("invalid base asset id"))))
370370 if ((shareAssetId == shareAssetId))
371371 then {
372372 let period = valueOrErrorMessage(getInteger(keyPeriod(baseAssetId)), wrapErr("invalid period"))
373373 if ((period == period))
374374 then {
375375 let userBaseAssetAmountToConvert = valueOrElse(getInteger(keyUserBaseAssetAmountToConvert(baseAssetId, userAddress)), 0)
376376 let checkAmountToConvert = if ((userBaseAssetAmountToConvert > 0))
377377 then true
378378 else throwErr("nothing to claim")
379379 if ((checkAmountToConvert == checkAmountToConvert))
380380 then {
381381 let userBaseAssetAmountToConvertPeriod = valueOrErrorMessage(getInteger(keyUserBaseAssetAmountToConvertPeriod(baseAssetId, userAddress)), wrapErr("failed to get period"))
382382 let checkPeriod = if ((period > userBaseAssetAmountToConvertPeriod))
383383 then true
384384 else throwErr("invalid period")
385385 if ((checkPeriod == checkPeriod))
386386 then {
387387 let price = toBigInt(valueOrErrorMessage(getBinary(keyPricePeriodPut(baseAssetId, userBaseAssetAmountToConvertPeriod)), wrapErr("failed to get price")))
388388 let shareAssetAmount = toInt(fraction(toBigInt(userBaseAssetAmountToConvert), scale18BigInt, price))
389389 $Tuple2([IntegerEntry(keyUserBaseAssetAmountToConvert(baseAssetId, userAddress), 0), ScriptTransfer(userAddress, shareAssetAmount, shareAssetId), IntegerEntry(keyHistoryEntry(baseAssetId, "claimShareAsset", period, userAddress, i.transactionId), shareAssetAmount)], unit)
390390 }
391391 else throw("Strict value is not equal to itself.")
392392 }
393393 else throw("Strict value is not equal to itself.")
394394 }
395395 else throw("Strict value is not equal to itself.")
396396 }
397397 else throw("Strict value is not equal to itself.")
398398 }
399399 else throw("Strict value is not equal to itself.")
400400 }
401401 else throw("Strict value is not equal to itself.")
402402 }
403403
404404
405405
406406 @Callable(i)
407407 func get () = {
408408 let checks = [shutdownCheck(i)]
409409 if ((checks == checks))
410410 then {
411411 let pmt = if ((size(i.payments) == 1))
412412 then i.payments[0]
413413 else throwErr("exactly 1 payment is expected")
414414 let shareAssetId = pmt.assetId
415415 let baseAssetId = value(parseAssetId(valueOrErrorMessage(getString(keyBaseAssetId(shareAssetId)), wrapErr("invalid share asset id"))))
416416 if ((baseAssetId == baseAssetId))
417417 then {
418418 let userAddress = i.caller
419419 let $t01511615219 = valueOrErrorMessage(getPoolInfo(baseAssetId), wrapErr("invalid asset"))
420420 let poolAddress = $t01511615219._1
421421 let lpAssetId = $t01511615219._2
422422 let period = value(getInteger(keyPeriod(baseAssetId)))
423423 let userShareAssetAmountToConvertPeriodOption = getInteger(keyUserShareAssetAmountToConvertPeriod(baseAssetId, userAddress))
424424 let claimBaseAssetInvocation = if ((userShareAssetAmountToConvertPeriodOption == unit))
425425 then unit
426426 else {
427427 let userShareAssetAmountToConvertPeriod = value(userShareAssetAmountToConvertPeriodOption)
428428 if ((userShareAssetAmountToConvertPeriod == period))
429429 then unit
430430 else invoke(this, "claimBaseAsset", [userAddress], nil)
431431 }
432432 if ((claimBaseAssetInvocation == claimBaseAssetInvocation))
433433 then {
434434 let shareAssetAmountToConvert = valueOrElse(getInteger(keyShareAssetAmountToConvert(baseAssetId)), 0)
435435 let userShareAssetAmountToConvert = valueOrElse(getInteger(keyUserShareAssetAmountToConvert(baseAssetId, userAddress)), 0)
436436 $Tuple2([IntegerEntry(keyShareAssetAmountToConvert(baseAssetId), (shareAssetAmountToConvert + pmt.amount)), IntegerEntry(keyUserShareAssetAmountToConvert(baseAssetId, userAddress), (userShareAssetAmountToConvert + pmt.amount)), IntegerEntry(keyUserShareAssetAmountToConvertPeriod(baseAssetId, userAddress), period), IntegerEntry(keyHistoryEntry(baseAssetId, "get", period, userAddress, i.transactionId), pmt.amount)], unit)
437437 }
438438 else throw("Strict value is not equal to itself.")
439439 }
440440 else throw("Strict value is not equal to itself.")
441441 }
442442 else throw("Strict value is not equal to itself.")
443443 }
444444
445445
446446
447447 @Callable(i)
448448 func claimBaseAsset (baseAssetIdStr,userAddressStr) = {
449449 let checks = [shutdownCheck(i)]
450450 if ((checks == checks))
451451 then {
452452 let userAddress = if ((userAddressStr == ""))
453453 then i.caller
454454 else {
455455 let checkCaller = mustThis(i)
456456 if ((checkCaller == checkCaller))
457457 then valueOrErrorMessage(addressFromString(userAddressStr), wrapErr("invalid user address"))
458458 else throw("Strict value is not equal to itself.")
459459 }
460460 if ((userAddress == userAddress))
461461 then {
462462 let baseAssetId = parseAssetId(baseAssetIdStr)
463463 let shareAssetId = value(parseAssetId(valueOrErrorMessage(getString(keyShareAssetId(baseAssetId)), wrapErr("invalid base asset id"))))
464464 if ((shareAssetId == shareAssetId))
465465 then {
466466 let period = valueOrErrorMessage(getInteger(keyPeriod(baseAssetId)), wrapErr("invalid period"))
467467 if ((period == period))
468468 then {
469469 let userShareAssetAmountToConvert = valueOrElse(getInteger(keyUserShareAssetAmountToConvert(baseAssetId, userAddress)), 0)
470470 let checkAmountToConvert = if ((userShareAssetAmountToConvert > 0))
471471 then true
472472 else throwErr("nothing to claim")
473473 if ((checkAmountToConvert == checkAmountToConvert))
474474 then {
475475 let userShareAssetAmountToConvertPeriod = valueOrErrorMessage(getInteger(keyUserShareAssetAmountToConvertPeriod(baseAssetId, userAddress)), wrapErr("failed to get period"))
476476 let checkPeriod = if ((period > userShareAssetAmountToConvertPeriod))
477477 then true
478478 else throwErr("invalid period")
479479 if ((checkPeriod == checkPeriod))
480480 then {
481481 let price = toBigInt(valueOrErrorMessage(getBinary(keyPricePeriodGet(baseAssetId, userShareAssetAmountToConvertPeriod)), wrapErr("failed to get price")))
482482 let baseAssetAmount = toInt(fraction(toBigInt(userShareAssetAmountToConvert), price, scale18BigInt))
483483 $Tuple2([IntegerEntry(keyUserShareAssetAmountToConvert(baseAssetId, userAddress), 0), ScriptTransfer(userAddress, baseAssetAmount, baseAssetId), IntegerEntry(keyHistoryEntry(baseAssetId, "claimBaseAsset", period, userAddress, i.transactionId), baseAssetAmount)], unit)
484484 }
485485 else throw("Strict value is not equal to itself.")
486486 }
487487 else throw("Strict value is not equal to itself.")
488488 }
489489 else throw("Strict value is not equal to itself.")
490490 }
491491 else throw("Strict value is not equal to itself.")
492492 }
493493 else throw("Strict value is not equal to itself.")
494494 }
495495 else throw("Strict value is not equal to itself.")
496496 }
497497
498498
499499
500500 @Callable(i)
501501 func finalize (baseAssetIdStr) = {
502502 let checks = [shutdownCheck(i)]
503503 if ((checks == checks))
504504 then {
505505 let baseAssetId = parseAssetId(baseAssetIdStr)
506506 let shareAssetId = value(parseAssetId(valueOrErrorMessage(getString(keyShareAssetId(baseAssetId)), wrapErr("invalid base asset id"))))
507507 if ((shareAssetId == shareAssetId))
508508 then {
509509 let period = valueOrErrorMessage(getInteger(keyPeriod(baseAssetId)), wrapErr("invalid period"))
510510 if ((period == period))
511511 then {
512512 let periodStartHeightOption = getInteger(keyPeriodStartHeight(baseAssetId, period))
513513 let checkDelay = if ((periodStartHeightOption == unit))
514514 then unit
515515 else {
516516 let delay = (height - value(periodStartHeightOption))
517517 let blocksToWait = max([0, (minDelay - delay)])
518518 if ((blocksToWait == 0))
519519 then unit
520520 else throwErr(makeString(["finalization will be possible in ", toString(blocksToWait), " blocks"], ""))
521521 }
522522 if ((checkDelay == checkDelay))
523523 then {
524- let $t01916119378 = valueOrErrorMessage(getPoolInfo(baseAssetId), wrapErr("invalid asset"))
525- let poolAddress = $t01916119378._1
526- let lpAssetId = $t01916119378._2
524+ let $t01916119342 = valueOrErrorMessage(getPoolInfo(baseAssetId), wrapErr("invalid asset"))
525+ let poolAddress = $t01916119342._1
526+ let lpAssetId = $t01916119342._2
527527 let stakingReward = valueOrErrorMessage({
528- let @ = invoke(stakingContract, "claimWx", [assetIdToString(lpAssetId)], nil)
528+ let @ = invoke(stakingContract, "claimWxclaimWxDoNotThrow", [assetIdToString(lpAssetId)], nil)
529529 if ($isInstanceOf(@, "Int"))
530530 then @
531531 else unit
532532 }, wrapErr("invalid claimWx result"))
533533 if ((stakingReward == stakingReward))
534534 then {
535535 let baseAssetAmountToConvert = valueOrElse(getInteger(keyBaseAssetAmountToConvert(baseAssetId)), 0)
536536 let shareAssetAmountToConvert = valueOrElse(getInteger(keyShareAssetAmountToConvert(baseAssetId)), 0)
537537 let checkFinalizationIsRequired = {
538538 let isFinalizationRequired = if (if ((stakingReward > 0))
539539 then true
540540 else (baseAssetAmountToConvert > 0))
541541 then true
542542 else (shareAssetAmountToConvert > 0)
543543 if (isFinalizationRequired)
544544 then true
545545 else throwErr("nothing to finalize")
546546 }
547547 if ((checkFinalizationIsRequired == checkFinalizationIsRequired))
548548 then {
549549 let useStakingReward = if ((stakingReward > 0))
550550 then {
551551 let lockPart = fraction(stakingReward, lockFraction, lockFractionMultiplier)
552552 let convertPart = (stakingReward - lockPart)
553553 let r = invoke(boostingContract, "userMaxDurationREADONLY", [toString(this)], nil)
554554 let lock = if ((lockPart > 0))
555555 then match r {
556556 case _ =>
557557 if (if (if ($isInstanceOf($match0._1, "String"))
558558 then $isInstanceOf($match0._2, "Int")
559559 else false)
560560 then $isInstanceOf($match0, "(String, Int)")
561561 else false)
562562 then {
563563 let function = $match0._1
564564 let duration = $match0._2
565565 if ((lockPart > 0))
566566 then invoke(boostingContract, function, [duration], [AttachedPayment(wxAssetId, lockPart)])
567567 else unit
568568 }
569569 else throwErr("invalid lock params")
570570 }
571571 else unit
572572 if ((lock == lock))
573573 then {
574574 let convertedAmount = if ((convertPart > 0))
575575 then {
576576 let inAssetId = wxAssetId
577577 let minimumToReceive = 0
578578 let outAssetIdStr = assetIdToString(usdnAssetId)
579579 let targetAddress = ""
580580 valueOrErrorMessage({
581581 let @ = invoke(swapContract, "swap", [minimumToReceive, outAssetIdStr, targetAddress], [AttachedPayment(inAssetId, convertPart)])
582582 if ($isInstanceOf(@, "Int"))
583583 then @
584584 else unit
585585 }, wrapErr("invalid swap result"))
586586 }
587587 else 0
588588 if ((convertedAmount == convertedAmount))
589589 then {
590590 let lpAssetAmount = if ((convertedAmount > 0))
591591 then {
592592 let minOutAmount = 0
593593 let autoStake = true
594594 valueOrErrorMessage({
595595 let @ = invoke(poolAddress, "putOneTknV2", [minOutAmount, autoStake], [AttachedPayment(usdnAssetId, convertedAmount)])
596596 if ($isInstanceOf(@, "Int"))
597597 then @
598598 else unit
599599 }, wrapErr("invalid putOneTknV2 result"))
600600 }
601601 else 0
602602 if ((lpAssetAmount == lpAssetAmount))
603603 then lpAssetAmount
604604 else throw("Strict value is not equal to itself.")
605605 }
606606 else throw("Strict value is not equal to itself.")
607607 }
608608 else throw("Strict value is not equal to itself.")
609609 }
610610 else unit
611611 if ((useStakingReward == useStakingReward))
612612 then {
613613 let getActions = if ((shareAssetAmountToConvert > 0))
614614 then {
615615 let price = calcPrice(lpAssetId, shareAssetId)
616616 if ((price == price))
617617 then {
618618 let unstakeAmount = toInt(fraction(toBigInt(shareAssetAmountToConvert), price, scale18BigInt, FLOOR))
619619 let baseAssetAmount = {
620620 let outAssetId = baseAssetId
621621 let minOutAmount = 0
622622 valueOrErrorMessage({
623623 let @ = invoke(poolAddress, "unstakeAndGetOneTknV2", [unstakeAmount, assetIdToString(outAssetId), minOutAmount], nil)
624624 if ($isInstanceOf(@, "Int"))
625625 then @
626626 else unit
627627 }, wrapErr("invalid unstakeAndGetOneTknV2 result"))
628628 }
629629 if ((baseAssetAmount == baseAssetAmount))
630630 then {
631631 let shareAssetBurnActions = [Burn(shareAssetId, shareAssetAmountToConvert)]
632632 let priceGet = fraction(toBigInt(baseAssetAmount), scale18BigInt, toBigInt(shareAssetAmountToConvert), FLOOR)
633633 let priceGetUpdateActions = [BinaryEntry(keyPricePeriodGet(baseAssetId, period), toBytes(priceGet)), StringEntry(keyPriceGetHistory(baseAssetId), toString(priceGet))]
634634 (shareAssetBurnActions ++ priceGetUpdateActions)
635635 }
636636 else throw("Strict value is not equal to itself.")
637637 }
638638 else throw("Strict value is not equal to itself.")
639639 }
640640 else nil
641641 let putActions = if ((baseAssetAmountToConvert > 0))
642642 then {
643643 let lpAssetAmount = {
644644 let minOutAmount = 0
645645 let autoStake = true
646646 valueOrErrorMessage({
647647 let @ = invoke(poolAddress, "putOneTknV2", [minOutAmount, autoStake], [AttachedPayment(baseAssetId, baseAssetAmountToConvert)])
648648 if ($isInstanceOf(@, "Int"))
649649 then @
650650 else unit
651651 }, wrapErr("invalid putOneTknV2 result"))
652652 }
653653 if ((lpAssetAmount == lpAssetAmount))
654654 then {
655655 let price = calcPrice(lpAssetId, shareAssetId)
656656 if ((price == price))
657657 then {
658658 let shareAssetAmount = toInt(fraction(toBigInt(lpAssetAmount), scale18BigInt, price, FLOOR))
659659 let isReissuable = true
660660 let shareAssetReissueActions = [Reissue(shareAssetId, shareAssetAmount, isReissuable)]
661661 let pricePut = fraction(toBigInt(baseAssetAmountToConvert), scale18BigInt, toBigInt(shareAssetAmount))
662662 let pricePutUpdateActions = [BinaryEntry(keyPricePeriodPut(baseAssetId, period), toBytes(pricePut)), StringEntry(keyPricePutHistory(baseAssetId), toString(pricePut))]
663663 (shareAssetReissueActions ++ pricePutUpdateActions)
664664 }
665665 else throw("Strict value is not equal to itself.")
666666 }
667667 else throw("Strict value is not equal to itself.")
668668 }
669669 else nil
670670 let newPeriod = (period + 1)
671671 let lastPrice = calcPrice(lpAssetId, shareAssetId)
672672 let actions = (([IntegerEntry(keyPeriod(baseAssetId), newPeriod), IntegerEntry(keyPeriodStartHeight(baseAssetId, newPeriod), height), IntegerEntry(keyShareAssetAmountToConvert(baseAssetId), 0), IntegerEntry(keyBaseAssetAmountToConvert(baseAssetId), 0), BinaryEntry(keyPricePeriod(baseAssetId, period), toBytes(lastPrice)), StringEntry(keyPriceHistory(baseAssetId), toString(lastPrice))] ++ putActions) ++ getActions)
673673 $Tuple2(actions, toBytes(lastPrice))
674674 }
675675 else throw("Strict value is not equal to itself.")
676676 }
677677 else throw("Strict value is not equal to itself.")
678678 }
679679 else throw("Strict value is not equal to itself.")
680680 }
681681 else throw("Strict value is not equal to itself.")
682682 }
683683 else throw("Strict value is not equal to itself.")
684684 }
685685 else throw("Strict value is not equal to itself.")
686686 }
687687 else throw("Strict value is not equal to itself.")
688688 }
689689
690690
691691 @Verifier(tx)
692692 func verify () = {
693693 let targetPublicKey = match managerPublicKeyOrUnit() {
694694 case pk: ByteVector =>
695695 pk
696696 case _: Unit =>
697697 tx.senderPublicKey
698698 case _ =>
699699 throw("Match error")
700700 }
701701 sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)
702702 }
703703

github/deemru/w8io/fabc49c 
73.97 ms