tx · 13nvndpidaVj4athEixXFno8si8znqFKjMstsnzLK4YM

3N98Ngyaszw66EakvWRCiZ771ja2RDgNaxV:  -0.03000000 Waves

2023.04.25 13:36 [2549966] smart account 3N98Ngyaszw66EakvWRCiZ771ja2RDgNaxV > SELF 0.00000000 Waves

{ "type": 13, "id": "13nvndpidaVj4athEixXFno8si8znqFKjMstsnzLK4YM", "fee": 3000000, "feeAssetId": null, "timestamp": 1682418988794, "version": 2, "chainId": 84, "sender": "3N98Ngyaszw66EakvWRCiZ771ja2RDgNaxV", "senderPublicKey": "F4oaTkX67vt2MEsXLJJ8a7gaURGjW7x8fkvGfdEiH5oy", "proofs": [ "3QvEiuYgkdve8juaNPd8po3t81G5W2pQLiqnurmFhgLiRvVFwE7jskAbWcxnW1MQgCbfdCgqktHWxgoLqxwQLbV4" ], "script": "base64:BgIzCAISAwoBCBIAEgQKAgIBEgQKAgIBEgcKBQgICAgIEgASBAoCCAgSABIECgIICBIDCgEIQQAJc2VwYXJhdG9yAgJfXwASc2hhcmVBc3NldERlY2ltYWxzAAgAC3dhdmVzU3RyaW5nAgVXQVZFUwAHc2NhbGUxOACAgJC7utat8A0ADXNjYWxlMThCaWdJbnQJALYCAQUHc2NhbGUxOAEHd3JhcEVycgEDbXNnCQC5CQIJAMwIAgIWbHBfc3Rha2luZ19wb29scy5yaWRlOgkAzAgCBQNtc2cFA25pbAIBIAEIdGhyb3dFcnIBA21zZwkAAgEJAQd3cmFwRXJyAQUDbXNnARJlcnJLZXlJc05vdERlZmluZWQCB2FkZHJlc3MDa2V5CQEHd3JhcEVycgEJALkJAgkAzAgCAgptYW5kYXRvcnkgCQDMCAIJAKUIAQUHYWRkcmVzcwkAzAgCAgEuCQDMCAIFA2tleQkAzAgCAg8gaXMgbm90IGRlZmluZWQFA25pbAIAAQxnZXRTdHJPckZhaWwCB2FkZHJlc3MDa2V5CQETdmFsdWVPckVycm9yTWVzc2FnZQIJAJ0IAgUHYWRkcmVzcwUDa2V5CQESZXJyS2V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AAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4BAnR4AQZ2ZXJpZnkABA90YXJnZXRQdWJsaWNLZXkEByRtYXRjaDAJARZtYW5hZ2VyUHVibGljS2V5T3JVbml0AAMJAAECBQckbWF0Y2gwAgpCeXRlVmVjdG9yBAJwawUHJG1hdGNoMAUCcGsDCQABAgUHJG1hdGNoMAIEVW5pdAgFAnR4D3NlbmRlclB1YmxpY0tleQkAAgECC01hdGNoIGVycm9yCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAABQ90YXJnZXRQdWJsaWNLZXlnqTwj", "height": 2549966, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EBpkzpDASPHrYmpZ3DF9zqfhW8WzcNEriNU5vrnyMskK Next: H69tGjR2Q2UBryiPWuzoZHjwSkaxQfsCsZFgbcFbZYCP Diff:
OldNewDifferences
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
125-func keyHistoryEntry (baseAssetId,operation,period,userAddress,txId) = makeString(["%s%s%s%s", "history", operation, toString(userAddress), toBase58String(txId), toString(height)], separator)
125+func keyHistoryEntry (baseAssetId,operation,period,userAddress,txId) = makeString(["%s%s%s%s", "history", toUtf8String(value(baseAssetId)), operation, toString(userAddress), toBase58String(txId), toString(height)], separator)
126126
127127
128128 func keyManagerPublicKey () = "%s__managerPublicKey"
347347 else throwErr("invalid asset")]
348348 if ((checks == checks))
349349 then {
350- let $t01164011743 = valueOrErrorMessage(getPoolInfo(baseAssetId), wrapErr("invalid asset"))
351- let poolAddress = $t01164011743._1
352- let lpAssetId = $t01164011743._2
350+ let $t01167511778 = valueOrErrorMessage(getPoolInfo(baseAssetId), wrapErr("invalid asset"))
351+ let poolAddress = $t01167511778._1
352+ let lpAssetId = $t01167511778._2
353353 let period = value(getInteger(keyPeriod(baseAssetId)))
354354 let userBaseAssetAmountToConvertPeriodOption = getInteger(keyUserBaseAssetAmountToConvertPeriod(baseAssetId, userAddress))
355355 let claimShareAssetInvocation = if ((userBaseAssetAmountToConvertPeriodOption == unit))
363363 if ((claimShareAssetInvocation == claimShareAssetInvocation))
364364 then {
365365 let baseAssetAmountToConvert = valueOrElse(getInteger(keyBaseAssetAmountToConvert(baseAssetId)), 0)
366- let userBaseAssetAmountToConvert = valueOrElse(getInteger(keyUserBaseAssetAmountToConvert(baseAssetId, userAddress)), 0)
367- $Tuple2([IntegerEntry(keyBaseAssetAmountToConvert(baseAssetId), (baseAssetAmountToConvert + pmt.amount)), IntegerEntry(keyUserBaseAssetAmountToConvert(baseAssetId, userAddress), (userBaseAssetAmountToConvert + pmt.amount)), IntegerEntry(keyUserBaseAssetAmountToConvertPeriod(baseAssetId, userAddress), period), StringEntry(keyHistoryEntry(baseAssetId, "put", period, userAddress, i.transactionId), makeString([toString(pmt.amount), toString(lastBlock.timestamp), toString(userBaseAssetAmountToConvert)], separator))], unit)
366+ let userBaseAssetAmountToConvert = valueOrElse(parseInt(split(value(getString(keyUserBaseAssetAmountToConvert(baseAssetId, userAddress))), separator)[1]), 0)
367+ $Tuple2([IntegerEntry(keyBaseAssetAmountToConvert(baseAssetId), (baseAssetAmountToConvert + pmt.amount)), StringEntry(keyUserBaseAssetAmountToConvert(baseAssetId, userAddress), makeString(["%d%d", toString((userBaseAssetAmountToConvert + pmt.amount)), toString(lastBlock.timestamp)], separator)), IntegerEntry(keyUserBaseAssetAmountToConvertPeriod(baseAssetId, userAddress), period), StringEntry(keyHistoryEntry(baseAssetId, "put", period, userAddress, i.transactionId), makeString(["%d%d%d", toString(pmt.amount), toString(lastBlock.timestamp), toString(userBaseAssetAmountToConvert)], separator))], unit)
368368 }
369369 else throw("Strict value is not equal to itself.")
370370 }
395395 let period = valueOrErrorMessage(getInteger(keyPeriod(baseAssetId)), wrapErr("invalid period"))
396396 if ((period == period))
397397 then {
398- let userBaseAssetAmountToConvert = valueOrElse(getInteger(keyUserBaseAssetAmountToConvert(baseAssetId, userAddress)), 0)
398+ let userBaseAssetAmountToConvert = valueOrElse(parseInt(split(value(getString(keyUserBaseAssetAmountToConvert(baseAssetId, userAddress))), separator)[1]), 0)
399399 let checkAmountToConvert = if ((userBaseAssetAmountToConvert > 0))
400400 then true
401401 else throwErr("nothing to claim")
409409 then {
410410 let price = toBigInt(valueOrErrorMessage(getBinary(keyPricePeriodPut(baseAssetId, userBaseAssetAmountToConvertPeriod)), wrapErr("failed to get price")))
411411 let shareAssetAmount = toInt(fraction(toBigInt(userBaseAssetAmountToConvert), scale18BigInt, price))
412- $Tuple2([IntegerEntry(keyUserBaseAssetAmountToConvert(baseAssetId, userAddress), 0), DeleteEntry(keyUserBaseAssetAmountToConvertPeriod(baseAssetId, userAddress)), ScriptTransfer(userAddress, shareAssetAmount, shareAssetId), StringEntry(keyHistoryEntry(baseAssetId, "claimShareAsset", period, userAddress, i.transactionId), makeString([toString(shareAssetAmount), toString(lastBlock.timestamp), toString(price), toString(userBaseAssetAmountToConvert)], separator))], unit)
412+ $Tuple2([StringEntry(keyUserBaseAssetAmountToConvert(baseAssetId, userAddress), makeString(["%d%d", toString(0), toString(lastBlock.timestamp)], separator)), DeleteEntry(keyUserBaseAssetAmountToConvertPeriod(baseAssetId, userAddress)), ScriptTransfer(userAddress, shareAssetAmount, shareAssetId), StringEntry(keyHistoryEntry(baseAssetId, "claimShareAsset", period, userAddress, i.transactionId), makeString(["%d%d%d%d", toString(shareAssetAmount), toString(lastBlock.timestamp), toString(price), toString(userBaseAssetAmountToConvert)], separator))], unit)
413413 }
414414 else throw("Strict value is not equal to itself.")
415415 }
439439 if ((baseAssetId == baseAssetId))
440440 then {
441441 let userAddress = i.caller
442- let $t01582016009 = valueOrErrorMessage(getPoolInfo(baseAssetId), wrapErr("invalid asset"))
443- let poolAddress = $t01582016009._1
444- let lpAssetId = $t01582016009._2
442+ let $t01612016309 = valueOrErrorMessage(getPoolInfo(baseAssetId), wrapErr("invalid asset"))
443+ let poolAddress = $t01612016309._1
444+ let lpAssetId = $t01612016309._2
445445 let period = value(getInteger(keyPeriod(baseAssetId)))
446446 let userShareAssetAmountToConvertPeriodOption = getInteger(keyUserShareAssetAmountToConvertPeriod(baseAssetId, userAddress))
447447 let claimBaseAssetInvocation = if ((userShareAssetAmountToConvertPeriodOption == unit))
455455 if ((claimBaseAssetInvocation == claimBaseAssetInvocation))
456456 then {
457457 let shareAssetAmountToConvert = valueOrElse(getInteger(keyShareAssetAmountToConvert(baseAssetId)), 0)
458- let userShareAssetAmountToConvert = valueOrElse(getInteger(keyUserShareAssetAmountToConvert(baseAssetId, userAddress)), 0)
459- $Tuple2([IntegerEntry(keyShareAssetAmountToConvert(baseAssetId), (shareAssetAmountToConvert + pmt.amount)), IntegerEntry(keyUserShareAssetAmountToConvert(baseAssetId, userAddress), (userShareAssetAmountToConvert + pmt.amount)), IntegerEntry(keyUserShareAssetAmountToConvertPeriod(baseAssetId, userAddress), period), StringEntry(keyHistoryEntry(baseAssetId, "get", period, userAddress, i.transactionId), makeString([toString(pmt.amount), toString(lastBlock.timestamp), toString(userShareAssetAmountToConvert)], separator))], unit)
458+ let userShareAssetAmountToConvert = valueOrElse(parseInt(split(value(getString(keyUserShareAssetAmountToConvert(baseAssetId, userAddress))), separator)[1]), 0)
459+ $Tuple2([IntegerEntry(keyShareAssetAmountToConvert(baseAssetId), (shareAssetAmountToConvert + pmt.amount)), StringEntry(keyUserShareAssetAmountToConvert(baseAssetId, userAddress), makeString(["%d%d", toString((userShareAssetAmountToConvert + pmt.amount)), toString(lastBlock.timestamp)], separator)), IntegerEntry(keyUserShareAssetAmountToConvertPeriod(baseAssetId, userAddress), period), StringEntry(keyHistoryEntry(baseAssetId, "get", period, userAddress, i.transactionId), makeString(["%d%d%d", toString(pmt.amount), toString(lastBlock.timestamp), toString(userShareAssetAmountToConvert)], separator))], unit)
460460 }
461461 else throw("Strict value is not equal to itself.")
462462 }
489489 let period = valueOrErrorMessage(getInteger(keyPeriod(baseAssetId)), wrapErr("invalid period"))
490490 if ((period == period))
491491 then {
492- let userShareAssetAmountToConvert = valueOrElse(getInteger(keyUserShareAssetAmountToConvert(baseAssetId, userAddress)), 0)
492+ let userShareAssetAmountToConvert = valueOrElse(parseInt(split(value(getString(keyUserShareAssetAmountToConvert(baseAssetId, userAddress))), separator)[1]), 0)
493493 let userShareAssetAmountToConvertPeriod = valueOrErrorMessage(getInteger(keyUserShareAssetAmountToConvertPeriod(baseAssetId, userAddress)), wrapErr("failed to get period"))
494494 let checkPeriod = if ((period > userShareAssetAmountToConvertPeriod))
495495 then true
498498 then {
499499 let price = toBigInt(valueOrErrorMessage(getBinary(keyPricePeriodGet(baseAssetId, userShareAssetAmountToConvertPeriod)), wrapErr("failed to get price")))
500500 let baseAssetAmount = toInt(fraction(toBigInt(userShareAssetAmountToConvert), price, scale18BigInt))
501- $Tuple2([IntegerEntry(keyUserShareAssetAmountToConvert(baseAssetId, userAddress), 0), DeleteEntry(keyUserShareAssetAmountToConvertPeriod(baseAssetId, userAddress)), ScriptTransfer(userAddress, baseAssetAmount, baseAssetId), StringEntry(keyHistoryEntry(baseAssetId, "claimBaseAsset", period, userAddress, i.transactionId), makeString([toString(baseAssetAmount), toString(lastBlock.timestamp), toString(price), toString(userShareAssetAmountToConvertPeriod)], separator))], unit)
501+ $Tuple2([StringEntry(keyUserShareAssetAmountToConvert(baseAssetId, userAddress), makeString(["%d%d", toString(0), toString(lastBlock.timestamp)], separator)), DeleteEntry(keyUserShareAssetAmountToConvertPeriod(baseAssetId, userAddress)), ScriptTransfer(userAddress, baseAssetAmount, baseAssetId), StringEntry(keyHistoryEntry(baseAssetId, "claimBaseAsset", period, userAddress, i.transactionId), makeString(["%d%d%d%d", toString(baseAssetAmount), toString(lastBlock.timestamp), toString(price), toString(userShareAssetAmountToConvertPeriod)], separator))], unit)
502502 }
503503 else throw("Strict value is not equal to itself.")
504504 }
538538 }
539539 if ((checkDelay == checkDelay))
540540 then {
541- let $t02111321294 = valueOrErrorMessage(getPoolInfo(baseAssetId), wrapErr("invalid asset"))
542- let poolAddress = $t02111321294._1
543- let lpAssetId = $t02111321294._2
541+ let $t02168021861 = valueOrErrorMessage(getPoolInfo(baseAssetId), wrapErr("invalid asset"))
542+ let poolAddress = $t02168021861._1
543+ let lpAssetId = $t02168021861._2
544544 let stakingReward = valueOrErrorMessage({
545545 let @ = invoke(stakingContract, "claimWxDoNotThrow", [assetIdToString(lpAssetId)], nil)
546546 if ($isInstanceOf(@, "Int"))
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 keyUsdtAssetId () = makeString(["%s", "usdtAssetId"], 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
125-func keyHistoryEntry (baseAssetId,operation,period,userAddress,txId) = makeString(["%s%s%s%s", "history", operation, toString(userAddress), toBase58String(txId), toString(height)], separator)
125+func keyHistoryEntry (baseAssetId,operation,period,userAddress,txId) = makeString(["%s%s%s%s", "history", toUtf8String(value(baseAssetId)), 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 usdtAssetId = parseAssetId(getStrOrFail(this, keyUsdtAssetId()))
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(usdtAssetId)
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 emit (assetId,amount) = {
274274 let checkCaller = mustThis(i)
275275 if ((checkCaller == checkCaller))
276276 then {
277277 let isReissuable = true
278278 $Tuple2([Reissue(assetId, amount, isReissuable)], amount)
279279 }
280280 else throw("Strict value is not equal to itself.")
281281 }
282282
283283
284284
285285 @Callable(i)
286286 func burn (assetId,amount) = {
287287 let checkCaller = mustThis(i)
288288 if ((checkCaller == checkCaller))
289289 then $Tuple2([Burn(assetId, amount)], amount)
290290 else throw("Strict value is not equal to itself.")
291291 }
292292
293293
294294
295295 @Callable(i)
296296 func create (baseAssetIdStr,shareAssetIdStr,shareAssetName,shareAssetDescription,shareAssetLogo) = {
297297 let shareAssetLabel = "STAKING_LP"
298298 let baseAssetId = parseAssetId(baseAssetIdStr)
299299 let checks = [mustManager(i), if (isDefined(getPoolInfo(baseAssetId)))
300300 then true
301301 else throwErr("invalid base asset")]
302302 if ((checks == checks))
303303 then {
304304 let commonState = [IntegerEntry(keyPeriod(baseAssetId), 0)]
305305 if ((shareAssetIdStr == ""))
306306 then {
307307 let shareAssetIssueAmount = 1
308308 let shareAssetIssueAction = Issue(shareAssetName, shareAssetDescription, shareAssetIssueAmount, shareAssetDecimals, true)
309309 let calculatedShareAssetId = calculateAssetId(shareAssetIssueAction)
310310 let shareAssetBurnAction = Burn(calculatedShareAssetId, shareAssetIssueAmount)
311311 let calculatedShareAssetIdStr = toBase58String(calculatedShareAssetId)
312312 let createOrUpdate = invoke(assetsStoreContract, "createOrUpdate", [calculatedShareAssetIdStr, shareAssetLogo, false], nil)
313313 if ((createOrUpdate == createOrUpdate))
314314 then {
315315 let addLabel = invoke(assetsStoreContract, "addLabel", [calculatedShareAssetIdStr, shareAssetLabel], nil)
316316 if ((addLabel == addLabel))
317317 then $Tuple2((commonState ++ [shareAssetIssueAction, shareAssetBurnAction, StringEntry(keyShareAssetId(baseAssetId), calculatedShareAssetIdStr), StringEntry(keyBaseAssetId(calculatedShareAssetId), baseAssetIdStr)]), calculatedShareAssetIdStr)
318318 else throw("Strict value is not equal to itself.")
319319 }
320320 else throw("Strict value is not equal to itself.")
321321 }
322322 else {
323323 let shareAssetId = fromBase58String(shareAssetIdStr)
324324 let shareAssetInfo = valueOrErrorMessage(assetInfo(shareAssetId), wrapErr("invalid share asset id"))
325325 let checkIssuer = if ((shareAssetInfo.issuer == lpStakingContract))
326326 then true
327327 else throwErr("invalid share asset id issuer")
328328 if ((checkIssuer == checkIssuer))
329329 then $Tuple2((commonState ++ [StringEntry(keyShareAssetId(baseAssetId), shareAssetIdStr), StringEntry(keyBaseAssetId(shareAssetId), baseAssetIdStr)]), shareAssetIdStr)
330330 else throw("Strict value is not equal to itself.")
331331 }
332332 }
333333 else throw("Strict value is not equal to itself.")
334334 }
335335
336336
337337
338338 @Callable(i)
339339 func put () = {
340340 let pmt = if ((size(i.payments) == 1))
341341 then i.payments[0]
342342 else throwErr("exactly 1 payment is expected")
343343 let baseAssetId = pmt.assetId
344344 let userAddress = i.caller
345345 let checks = [shutdownCheck(i), if (isDefined(getString(keyShareAssetId(baseAssetId))))
346346 then true
347347 else throwErr("invalid asset")]
348348 if ((checks == checks))
349349 then {
350- let $t01164011743 = valueOrErrorMessage(getPoolInfo(baseAssetId), wrapErr("invalid asset"))
351- let poolAddress = $t01164011743._1
352- let lpAssetId = $t01164011743._2
350+ let $t01167511778 = valueOrErrorMessage(getPoolInfo(baseAssetId), wrapErr("invalid asset"))
351+ let poolAddress = $t01167511778._1
352+ let lpAssetId = $t01167511778._2
353353 let period = value(getInteger(keyPeriod(baseAssetId)))
354354 let userBaseAssetAmountToConvertPeriodOption = getInteger(keyUserBaseAssetAmountToConvertPeriod(baseAssetId, userAddress))
355355 let claimShareAssetInvocation = if ((userBaseAssetAmountToConvertPeriodOption == unit))
356356 then unit
357357 else {
358358 let userBaseAssetAmountToConvertPeriod = value(userBaseAssetAmountToConvertPeriodOption)
359359 if ((userBaseAssetAmountToConvertPeriod == period))
360360 then unit
361361 else invoke(this, "claimShareAsset", [assetIdToString(baseAssetId), toString(userAddress)], nil)
362362 }
363363 if ((claimShareAssetInvocation == claimShareAssetInvocation))
364364 then {
365365 let baseAssetAmountToConvert = valueOrElse(getInteger(keyBaseAssetAmountToConvert(baseAssetId)), 0)
366- let userBaseAssetAmountToConvert = valueOrElse(getInteger(keyUserBaseAssetAmountToConvert(baseAssetId, userAddress)), 0)
367- $Tuple2([IntegerEntry(keyBaseAssetAmountToConvert(baseAssetId), (baseAssetAmountToConvert + pmt.amount)), IntegerEntry(keyUserBaseAssetAmountToConvert(baseAssetId, userAddress), (userBaseAssetAmountToConvert + pmt.amount)), IntegerEntry(keyUserBaseAssetAmountToConvertPeriod(baseAssetId, userAddress), period), StringEntry(keyHistoryEntry(baseAssetId, "put", period, userAddress, i.transactionId), makeString([toString(pmt.amount), toString(lastBlock.timestamp), toString(userBaseAssetAmountToConvert)], separator))], unit)
366+ let userBaseAssetAmountToConvert = valueOrElse(parseInt(split(value(getString(keyUserBaseAssetAmountToConvert(baseAssetId, userAddress))), separator)[1]), 0)
367+ $Tuple2([IntegerEntry(keyBaseAssetAmountToConvert(baseAssetId), (baseAssetAmountToConvert + pmt.amount)), StringEntry(keyUserBaseAssetAmountToConvert(baseAssetId, userAddress), makeString(["%d%d", toString((userBaseAssetAmountToConvert + pmt.amount)), toString(lastBlock.timestamp)], separator)), IntegerEntry(keyUserBaseAssetAmountToConvertPeriod(baseAssetId, userAddress), period), StringEntry(keyHistoryEntry(baseAssetId, "put", period, userAddress, i.transactionId), makeString(["%d%d%d", toString(pmt.amount), toString(lastBlock.timestamp), toString(userBaseAssetAmountToConvert)], separator))], unit)
368368 }
369369 else throw("Strict value is not equal to itself.")
370370 }
371371 else throw("Strict value is not equal to itself.")
372372 }
373373
374374
375375
376376 @Callable(i)
377377 func claimShareAsset (baseAssetIdStr,userAddressStr) = {
378378 let checks = [shutdownCheck(i)]
379379 if ((checks == checks))
380380 then {
381381 let userAddress = if ((userAddressStr == ""))
382382 then i.caller
383383 else {
384384 let checkCaller = mustThis(i)
385385 if ((checkCaller == checkCaller))
386386 then valueOrErrorMessage(addressFromString(userAddressStr), wrapErr("invalid user address"))
387387 else throw("Strict value is not equal to itself.")
388388 }
389389 if ((userAddress == userAddress))
390390 then {
391391 let baseAssetId = parseAssetId(baseAssetIdStr)
392392 let shareAssetId = value(parseAssetId(valueOrErrorMessage(getString(keyShareAssetId(baseAssetId)), wrapErr("invalid base asset id"))))
393393 if ((shareAssetId == shareAssetId))
394394 then {
395395 let period = valueOrErrorMessage(getInteger(keyPeriod(baseAssetId)), wrapErr("invalid period"))
396396 if ((period == period))
397397 then {
398- let userBaseAssetAmountToConvert = valueOrElse(getInteger(keyUserBaseAssetAmountToConvert(baseAssetId, userAddress)), 0)
398+ let userBaseAssetAmountToConvert = valueOrElse(parseInt(split(value(getString(keyUserBaseAssetAmountToConvert(baseAssetId, userAddress))), separator)[1]), 0)
399399 let checkAmountToConvert = if ((userBaseAssetAmountToConvert > 0))
400400 then true
401401 else throwErr("nothing to claim")
402402 if ((checkAmountToConvert == checkAmountToConvert))
403403 then {
404404 let userBaseAssetAmountToConvertPeriod = valueOrErrorMessage(getInteger(keyUserBaseAssetAmountToConvertPeriod(baseAssetId, userAddress)), wrapErr("failed to get period"))
405405 let checkPeriod = if ((period > userBaseAssetAmountToConvertPeriod))
406406 then true
407407 else throwErr("invalid period")
408408 if ((checkPeriod == checkPeriod))
409409 then {
410410 let price = toBigInt(valueOrErrorMessage(getBinary(keyPricePeriodPut(baseAssetId, userBaseAssetAmountToConvertPeriod)), wrapErr("failed to get price")))
411411 let shareAssetAmount = toInt(fraction(toBigInt(userBaseAssetAmountToConvert), scale18BigInt, price))
412- $Tuple2([IntegerEntry(keyUserBaseAssetAmountToConvert(baseAssetId, userAddress), 0), DeleteEntry(keyUserBaseAssetAmountToConvertPeriod(baseAssetId, userAddress)), ScriptTransfer(userAddress, shareAssetAmount, shareAssetId), StringEntry(keyHistoryEntry(baseAssetId, "claimShareAsset", period, userAddress, i.transactionId), makeString([toString(shareAssetAmount), toString(lastBlock.timestamp), toString(price), toString(userBaseAssetAmountToConvert)], separator))], unit)
412+ $Tuple2([StringEntry(keyUserBaseAssetAmountToConvert(baseAssetId, userAddress), makeString(["%d%d", toString(0), toString(lastBlock.timestamp)], separator)), DeleteEntry(keyUserBaseAssetAmountToConvertPeriod(baseAssetId, userAddress)), ScriptTransfer(userAddress, shareAssetAmount, shareAssetId), StringEntry(keyHistoryEntry(baseAssetId, "claimShareAsset", period, userAddress, i.transactionId), makeString(["%d%d%d%d", toString(shareAssetAmount), toString(lastBlock.timestamp), toString(price), toString(userBaseAssetAmountToConvert)], separator))], unit)
413413 }
414414 else throw("Strict value is not equal to itself.")
415415 }
416416 else throw("Strict value is not equal to itself.")
417417 }
418418 else throw("Strict value is not equal to itself.")
419419 }
420420 else throw("Strict value is not equal to itself.")
421421 }
422422 else throw("Strict value is not equal to itself.")
423423 }
424424 else throw("Strict value is not equal to itself.")
425425 }
426426
427427
428428
429429 @Callable(i)
430430 func get () = {
431431 let checks = [shutdownCheck(i)]
432432 if ((checks == checks))
433433 then {
434434 let pmt = if ((size(i.payments) == 1))
435435 then i.payments[0]
436436 else throwErr("exactly 1 payment is expected")
437437 let shareAssetId = pmt.assetId
438438 let baseAssetId = value(parseAssetId(valueOrErrorMessage(getString(keyBaseAssetId(shareAssetId)), wrapErr("invalid share asset id"))))
439439 if ((baseAssetId == baseAssetId))
440440 then {
441441 let userAddress = i.caller
442- let $t01582016009 = valueOrErrorMessage(getPoolInfo(baseAssetId), wrapErr("invalid asset"))
443- let poolAddress = $t01582016009._1
444- let lpAssetId = $t01582016009._2
442+ let $t01612016309 = valueOrErrorMessage(getPoolInfo(baseAssetId), wrapErr("invalid asset"))
443+ let poolAddress = $t01612016309._1
444+ let lpAssetId = $t01612016309._2
445445 let period = value(getInteger(keyPeriod(baseAssetId)))
446446 let userShareAssetAmountToConvertPeriodOption = getInteger(keyUserShareAssetAmountToConvertPeriod(baseAssetId, userAddress))
447447 let claimBaseAssetInvocation = if ((userShareAssetAmountToConvertPeriodOption == unit))
448448 then unit
449449 else {
450450 let userShareAssetAmountToConvertPeriod = value(userShareAssetAmountToConvertPeriodOption)
451451 if ((userShareAssetAmountToConvertPeriod == period))
452452 then unit
453453 else invoke(this, "claimBaseAsset", [assetIdToString(baseAssetId), toString(userAddress)], nil)
454454 }
455455 if ((claimBaseAssetInvocation == claimBaseAssetInvocation))
456456 then {
457457 let shareAssetAmountToConvert = valueOrElse(getInteger(keyShareAssetAmountToConvert(baseAssetId)), 0)
458- let userShareAssetAmountToConvert = valueOrElse(getInteger(keyUserShareAssetAmountToConvert(baseAssetId, userAddress)), 0)
459- $Tuple2([IntegerEntry(keyShareAssetAmountToConvert(baseAssetId), (shareAssetAmountToConvert + pmt.amount)), IntegerEntry(keyUserShareAssetAmountToConvert(baseAssetId, userAddress), (userShareAssetAmountToConvert + pmt.amount)), IntegerEntry(keyUserShareAssetAmountToConvertPeriod(baseAssetId, userAddress), period), StringEntry(keyHistoryEntry(baseAssetId, "get", period, userAddress, i.transactionId), makeString([toString(pmt.amount), toString(lastBlock.timestamp), toString(userShareAssetAmountToConvert)], separator))], unit)
458+ let userShareAssetAmountToConvert = valueOrElse(parseInt(split(value(getString(keyUserShareAssetAmountToConvert(baseAssetId, userAddress))), separator)[1]), 0)
459+ $Tuple2([IntegerEntry(keyShareAssetAmountToConvert(baseAssetId), (shareAssetAmountToConvert + pmt.amount)), StringEntry(keyUserShareAssetAmountToConvert(baseAssetId, userAddress), makeString(["%d%d", toString((userShareAssetAmountToConvert + pmt.amount)), toString(lastBlock.timestamp)], separator)), IntegerEntry(keyUserShareAssetAmountToConvertPeriod(baseAssetId, userAddress), period), StringEntry(keyHistoryEntry(baseAssetId, "get", period, userAddress, i.transactionId), makeString(["%d%d%d", toString(pmt.amount), toString(lastBlock.timestamp), toString(userShareAssetAmountToConvert)], separator))], unit)
460460 }
461461 else throw("Strict value is not equal to itself.")
462462 }
463463 else throw("Strict value is not equal to itself.")
464464 }
465465 else throw("Strict value is not equal to itself.")
466466 }
467467
468468
469469
470470 @Callable(i)
471471 func claimBaseAsset (baseAssetIdStr,userAddressStr) = {
472472 let checks = [shutdownCheck(i)]
473473 if ((checks == checks))
474474 then {
475475 let userAddress = if ((userAddressStr == ""))
476476 then i.caller
477477 else {
478478 let checkCaller = mustThis(i)
479479 if ((checkCaller == checkCaller))
480480 then valueOrErrorMessage(addressFromString(userAddressStr), wrapErr("invalid user address"))
481481 else throw("Strict value is not equal to itself.")
482482 }
483483 if ((userAddress == userAddress))
484484 then {
485485 let baseAssetId = parseAssetId(baseAssetIdStr)
486486 let shareAssetId = value(parseAssetId(valueOrErrorMessage(getString(keyShareAssetId(baseAssetId)), wrapErr("invalid base asset id"))))
487487 if ((shareAssetId == shareAssetId))
488488 then {
489489 let period = valueOrErrorMessage(getInteger(keyPeriod(baseAssetId)), wrapErr("invalid period"))
490490 if ((period == period))
491491 then {
492- let userShareAssetAmountToConvert = valueOrElse(getInteger(keyUserShareAssetAmountToConvert(baseAssetId, userAddress)), 0)
492+ let userShareAssetAmountToConvert = valueOrElse(parseInt(split(value(getString(keyUserShareAssetAmountToConvert(baseAssetId, userAddress))), separator)[1]), 0)
493493 let userShareAssetAmountToConvertPeriod = valueOrErrorMessage(getInteger(keyUserShareAssetAmountToConvertPeriod(baseAssetId, userAddress)), wrapErr("failed to get period"))
494494 let checkPeriod = if ((period > userShareAssetAmountToConvertPeriod))
495495 then true
496496 else throwErr("invalid period")
497497 if ((checkPeriod == checkPeriod))
498498 then {
499499 let price = toBigInt(valueOrErrorMessage(getBinary(keyPricePeriodGet(baseAssetId, userShareAssetAmountToConvertPeriod)), wrapErr("failed to get price")))
500500 let baseAssetAmount = toInt(fraction(toBigInt(userShareAssetAmountToConvert), price, scale18BigInt))
501- $Tuple2([IntegerEntry(keyUserShareAssetAmountToConvert(baseAssetId, userAddress), 0), DeleteEntry(keyUserShareAssetAmountToConvertPeriod(baseAssetId, userAddress)), ScriptTransfer(userAddress, baseAssetAmount, baseAssetId), StringEntry(keyHistoryEntry(baseAssetId, "claimBaseAsset", period, userAddress, i.transactionId), makeString([toString(baseAssetAmount), toString(lastBlock.timestamp), toString(price), toString(userShareAssetAmountToConvertPeriod)], separator))], unit)
501+ $Tuple2([StringEntry(keyUserShareAssetAmountToConvert(baseAssetId, userAddress), makeString(["%d%d", toString(0), toString(lastBlock.timestamp)], separator)), DeleteEntry(keyUserShareAssetAmountToConvertPeriod(baseAssetId, userAddress)), ScriptTransfer(userAddress, baseAssetAmount, baseAssetId), StringEntry(keyHistoryEntry(baseAssetId, "claimBaseAsset", period, userAddress, i.transactionId), makeString(["%d%d%d%d", toString(baseAssetAmount), toString(lastBlock.timestamp), toString(price), toString(userShareAssetAmountToConvertPeriod)], separator))], unit)
502502 }
503503 else throw("Strict value is not equal to itself.")
504504 }
505505 else throw("Strict value is not equal to itself.")
506506 }
507507 else throw("Strict value is not equal to itself.")
508508 }
509509 else throw("Strict value is not equal to itself.")
510510 }
511511 else throw("Strict value is not equal to itself.")
512512 }
513513
514514
515515
516516 @Callable(i)
517517 func finalize (baseAssetIdStr) = {
518518 let checks = [shutdownCheck(i)]
519519 if ((checks == checks))
520520 then {
521521 let baseAssetId = parseAssetId(baseAssetIdStr)
522522 let shareAssetId = value(parseAssetId(valueOrErrorMessage(getString(keyShareAssetId(baseAssetId)), wrapErr("invalid base asset id"))))
523523 if ((shareAssetId == shareAssetId))
524524 then {
525525 let shareAssetInfo = valueOrErrorMessage(assetInfo(shareAssetId), wrapErr("invalid share asset id"))
526526 let period = valueOrErrorMessage(getInteger(keyPeriod(baseAssetId)), wrapErr("invalid period"))
527527 if ((period == period))
528528 then {
529529 let periodStartHeightOption = getInteger(keyPeriodStartHeight(baseAssetId, period))
530530 let checkDelay = if ((periodStartHeightOption == unit))
531531 then unit
532532 else {
533533 let delay = (height - value(periodStartHeightOption))
534534 let blocksToWait = max([0, (minDelay - delay)])
535535 if ((blocksToWait == 0))
536536 then unit
537537 else throwErr(makeString(["finalization will be possible in ", toString(blocksToWait), " blocks"], ""))
538538 }
539539 if ((checkDelay == checkDelay))
540540 then {
541- let $t02111321294 = valueOrErrorMessage(getPoolInfo(baseAssetId), wrapErr("invalid asset"))
542- let poolAddress = $t02111321294._1
543- let lpAssetId = $t02111321294._2
541+ let $t02168021861 = valueOrErrorMessage(getPoolInfo(baseAssetId), wrapErr("invalid asset"))
542+ let poolAddress = $t02168021861._1
543+ let lpAssetId = $t02168021861._2
544544 let stakingReward = valueOrErrorMessage({
545545 let @ = invoke(stakingContract, "claimWxDoNotThrow", [assetIdToString(lpAssetId)], nil)
546546 if ($isInstanceOf(@, "Int"))
547547 then @
548548 else unit
549549 }, wrapErr("invalid claimWx result"))
550550 if ((stakingReward == stakingReward))
551551 then {
552552 let baseAssetAmountToConvert = valueOrElse(getInteger(keyBaseAssetAmountToConvert(baseAssetId)), 0)
553553 let shareAssetAmountToConvert = valueOrElse(getInteger(keyShareAssetAmountToConvert(baseAssetId)), 0)
554554 let checkFinalizationIsRequired = {
555555 let isFinalizationRequired = if (if ((stakingReward > 0))
556556 then true
557557 else (baseAssetAmountToConvert > 0))
558558 then true
559559 else (shareAssetAmountToConvert > 0)
560560 if (isFinalizationRequired)
561561 then true
562562 else throwErr("nothing to finalize")
563563 }
564564 if ((checkFinalizationIsRequired == checkFinalizationIsRequired))
565565 then {
566566 let useStakingReward = if ((stakingReward > 0))
567567 then {
568568 let lockPart = fraction(stakingReward, lockFraction, lockFractionMultiplier)
569569 let convertPart = (stakingReward - lockPart)
570570 let r = invoke(boostingContract, "userMaxDurationREADONLY", [toString(this)], nil)
571571 let lock = if ((lockPart > 0))
572572 then match r {
573573 case _ =>
574574 if (if (if ($isInstanceOf($match0._1, "String"))
575575 then $isInstanceOf($match0._2, "Int")
576576 else false)
577577 then $isInstanceOf($match0, "(String, Int)")
578578 else false)
579579 then {
580580 let function = $match0._1
581581 let duration = $match0._2
582582 if ((lockPart > 0))
583583 then invoke(boostingContract, function, [duration], [AttachedPayment(wxAssetId, lockPart)])
584584 else unit
585585 }
586586 else throwErr("invalid lock params")
587587 }
588588 else unit
589589 if ((lock == lock))
590590 then {
591591 let convertedAmount = if ((convertPart > 0))
592592 then {
593593 let inAssetId = wxAssetId
594594 let minimumToReceive = 0
595595 let outAssetIdStr = assetIdToString(usdtAssetId)
596596 let targetAddress = toString(this)
597597 valueOrErrorMessage({
598598 let @ = invoke(swapContract, "swap", [minimumToReceive, outAssetIdStr, targetAddress], [AttachedPayment(inAssetId, convertPart)])
599599 if ($isInstanceOf(@, "Int"))
600600 then @
601601 else unit
602602 }, wrapErr("invalid swap result"))
603603 }
604604 else 0
605605 if ((convertedAmount == convertedAmount))
606606 then {
607607 let lpAssetAmount = if ((convertedAmount > 0))
608608 then {
609609 let minOutAmount = 0
610610 let autoStake = true
611611 valueOrErrorMessage({
612612 let @ = invoke(poolAddress, "putOneTknV2", [minOutAmount, autoStake], [AttachedPayment(usdtAssetId, convertedAmount)])
613613 if ($isInstanceOf(@, "Int"))
614614 then @
615615 else unit
616616 }, wrapErr("invalid putOneTknV2 result"))
617617 }
618618 else 0
619619 if ((lpAssetAmount == lpAssetAmount))
620620 then lpAssetAmount
621621 else throw("Strict value is not equal to itself.")
622622 }
623623 else throw("Strict value is not equal to itself.")
624624 }
625625 else throw("Strict value is not equal to itself.")
626626 }
627627 else unit
628628 if ((useStakingReward == useStakingReward))
629629 then {
630630 let getActions = if ((shareAssetAmountToConvert > 0))
631631 then {
632632 let price = calcPrice(lpAssetId, shareAssetId)
633633 if ((price == price))
634634 then {
635635 let unstakeAmount = toInt(fraction(toBigInt(shareAssetAmountToConvert), price, scale18BigInt, FLOOR))
636636 let baseAssetAmount = {
637637 let outAssetId = baseAssetId
638638 let minOutAmount = 0
639639 valueOrErrorMessage({
640640 let @ = invoke(poolAddress, "unstakeAndGetOneTknV2", [unstakeAmount, assetIdToString(outAssetId), minOutAmount], nil)
641641 if ($isInstanceOf(@, "Int"))
642642 then @
643643 else unit
644644 }, wrapErr("invalid unstakeAndGetOneTknV2 result"))
645645 }
646646 if ((baseAssetAmount == baseAssetAmount))
647647 then {
648648 let shareAssetBurn = if ((shareAssetInfo.issuer == this))
649649 then invoke(this, "burn", [shareAssetId, shareAssetAmountToConvert], nil)
650650 else throwErr("invalid share asset issuer")
651651 if ((shareAssetBurn == shareAssetBurn))
652652 then {
653653 let priceGet = fraction(toBigInt(baseAssetAmount), scale18BigInt, toBigInt(shareAssetAmountToConvert), FLOOR)
654654 let priceGetUpdateActions = [BinaryEntry(keyPricePeriodGet(baseAssetId, period), toBytes(priceGet)), StringEntry(keyPriceGetHistory(baseAssetId), toString(priceGet))]
655655 priceGetUpdateActions
656656 }
657657 else throw("Strict value is not equal to itself.")
658658 }
659659 else throw("Strict value is not equal to itself.")
660660 }
661661 else throw("Strict value is not equal to itself.")
662662 }
663663 else nil
664664 if ((getActions == getActions))
665665 then {
666666 let putActions = if ((baseAssetAmountToConvert > 0))
667667 then {
668668 let lpAssetAmount = {
669669 let minOutAmount = 0
670670 let autoStake = true
671671 valueOrErrorMessage({
672672 let @ = invoke(poolAddress, "putOneTknV2", [minOutAmount, autoStake], [AttachedPayment(baseAssetId, baseAssetAmountToConvert)])
673673 if ($isInstanceOf(@, "Int"))
674674 then @
675675 else unit
676676 }, wrapErr("invalid putOneTknV2 result"))
677677 }
678678 if ((lpAssetAmount == lpAssetAmount))
679679 then {
680680 let price = calcPrice(lpAssetId, shareAssetId)
681681 if ((price == price))
682682 then {
683683 let checkPrice = if ((value(toInt(price)) != 0))
684684 then true
685685 else throw("price is ZERO")
686686 if ((checkPrice == checkPrice))
687687 then {
688688 let shareAssetAmount = toInt(fraction(toBigInt(lpAssetAmount), scale18BigInt, price, FLOOR))
689689 let checkShareAssetAmount = if ((value(toInt(price)) != 0))
690690 then true
691691 else throw("shareAssetAmount is ZERO")
692692 if ((checkShareAssetAmount == checkShareAssetAmount))
693693 then {
694694 let shareAssetReissue = if ((shareAssetInfo.issuer == this))
695695 then invoke(this, "emit", [shareAssetId, shareAssetAmount], nil)
696696 else throwErr("invalid share asset issuer")
697697 if ((shareAssetReissue == shareAssetReissue))
698698 then {
699699 let pricePut = fraction(toBigInt(baseAssetAmountToConvert), scale18BigInt, toBigInt(shareAssetAmount))
700700 let pricePutUpdateActions = [BinaryEntry(keyPricePeriodPut(baseAssetId, period), toBytes(pricePut)), StringEntry(keyPricePutHistory(baseAssetId), toString(pricePut))]
701701 pricePutUpdateActions
702702 }
703703 else throw("Strict value is not equal to itself.")
704704 }
705705 else throw("Strict value is not equal to itself.")
706706 }
707707 else throw("Strict value is not equal to itself.")
708708 }
709709 else throw("Strict value is not equal to itself.")
710710 }
711711 else throw("Strict value is not equal to itself.")
712712 }
713713 else nil
714714 if ((putActions == putActions))
715715 then {
716716 let newPeriod = (period + 1)
717717 let lastPrice = calcPrice(lpAssetId, shareAssetId)
718718 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)
719719 $Tuple2(actions, toBytes(lastPrice))
720720 }
721721 else throw("Strict value is not equal to itself.")
722722 }
723723 else throw("Strict value is not equal to itself.")
724724 }
725725 else throw("Strict value is not equal to itself.")
726726 }
727727 else throw("Strict value is not equal to itself.")
728728 }
729729 else throw("Strict value is not equal to itself.")
730730 }
731731 else throw("Strict value is not equal to itself.")
732732 }
733733 else throw("Strict value is not equal to itself.")
734734 }
735735 else throw("Strict value is not equal to itself.")
736736 }
737737 else throw("Strict value is not equal to itself.")
738738 }
739739
740740
741741 @Verifier(tx)
742742 func verify () = {
743743 let targetPublicKey = match managerPublicKeyOrUnit() {
744744 case pk: ByteVector =>
745745 pk
746746 case _: Unit =>
747747 tx.senderPublicKey
748748 case _ =>
749749 throw("Match error")
750750 }
751751 sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)
752752 }
753753

github/deemru/w8io/fabc49c 
87.15 ms