tx · EJyzmvU9wyzKFvUzVAr2ZNteMXwdKA3JepBmaqovpSBm

3N98Ngyaszw66EakvWRCiZ771ja2RDgNaxV:  -0.02900000 Waves

2023.01.13 12:52 [2403024] smart account 3N98Ngyaszw66EakvWRCiZ771ja2RDgNaxV > SELF 0.00000000 Waves

{ "type": 13, "id": "EJyzmvU9wyzKFvUzVAr2ZNteMXwdKA3JepBmaqovpSBm", "fee": 2900000, "feeAssetId": null, "timestamp": 1673603573026, "version": 1, "sender": "3N98Ngyaszw66EakvWRCiZ771ja2RDgNaxV", "senderPublicKey": "F4oaTkX67vt2MEsXLJJ8a7gaURGjW7x8fkvGfdEiH5oy", "proofs": [ "gXUFMjLpsqjBKVEXZcmLfuqjxa7fguc4tNDu8WFDsfrMpxa1yKXaZXFRJVAcegXreQxTuyFk4RwNPWdY35hrGdV" ], "script": "base64:BgIzCAISAwoBCBIAEgQKAgIBEgQKAgIBEgcKBQgICAgIEgASBAoCCAgSABIECgIICBIDCgEIQQAJc2VwYXJhdG9yAgJfXwASc2hhcmVBc3NldERlY2ltYWxzAAgAC3dhdmVzU3RyaW5nAgVXQVZFUwAHc2NhbGUxOACAgJC7utat8A0ADXNjYWxlMThCaWdJbnQJALYCAQUHc2NhbGUxOAEHd3JhcEVycgEDbXNnCQC5CQIJAMwIAgIWbHBfc3Rha2luZ19wb29scy5yaWRlOgkAzAgCBQNtc2cFA25pbAIBIAEIdGhyb3dFcnIBA21zZwkAAgEJAQd3cmFwRXJyAQUDbXNnARJlcnJLZXlJc05vdERlZmluZWQCB2FkZHJlc3MDa2V5CQEHd3JhcEVycgEJALkJAgkAzAgCAgptYW5kYXRvcnkgCQDMCAIJAKUIAQUHYWRkcmVzcwkAzAgCAgEuCQDMCAIFA2tleQkAzAgCAg8gaXMgbm90IGRlZmluZWQFA25pbAIAAQxnZXRTdHJPckZhaWwCB2FkZHJlc3MDa2V5CQETdmFsdWVPckVycm9yTWVzc2FnZQIJAJ0IAgUHYWRkcmVzcwUDa2V5C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VyUHVibGljS2V5T3JVbml0AAMJAAECBQckbWF0Y2gwAgpCeXRlVmVjdG9yBAJwawUHJG1hdGNoMAUCcGsDCQABAgUHJG1hdGNoMAIEVW5pdAgFAnR4D3NlbmRlclB1YmxpY0tleQkAAgECC01hdGNoIGVycm9yCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAABQ90YXJnZXRQdWJsaWNLZXnwo/mk", "chainId": 84, "height": 2403024, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7BdaSHDCRUgc7XzSuat1P1rDJWjVzZCNdvVY9DkzqanA Next: GRmwVoE47idkiEzX845B8XUnpK2vGHmmYvKx1CJ25ovy Diff:
OldNewDifferences
270270
271271
272272 @Callable(i)
273+func emit (assetId,amount) = {
274+ let checkCaller = mustThis(i)
275+ if ((checkCaller == checkCaller))
276+ then {
277+ let isReissuable = true
278+ $Tuple2([Reissue(assetId, amount, isReissuable)], amount)
279+ }
280+ else throw("Strict value is not equal to itself.")
281+ }
282+
283+
284+
285+@Callable(i)
286+func burn (assetId,amount) = {
287+ let checkCaller = mustThis(i)
288+ if ((checkCaller == checkCaller))
289+ then $Tuple2([Burn(assetId, amount)], amount)
290+ else throw("Strict value is not equal to itself.")
291+ }
292+
293+
294+
295+@Callable(i)
273296 func create (baseAssetIdStr,shareAssetIdStr,shareAssetName,shareAssetDescription,shareAssetLogo) = {
274297 let shareAssetLabel = "LP_STAKING_POOLS"
275298 let baseAssetId = parseAssetId(baseAssetIdStr)
324347 else throwErr("invalid asset")]
325348 if ((checks == checks))
326349 then {
327- let $t01131211415 = valueOrErrorMessage(getPoolInfo(baseAssetId), wrapErr("invalid asset"))
328- let poolAddress = $t01131211415._1
329- let lpAssetId = $t01131211415._2
350+ let $t01164611749 = valueOrErrorMessage(getPoolInfo(baseAssetId), wrapErr("invalid asset"))
351+ let poolAddress = $t01164611749._1
352+ let lpAssetId = $t01164611749._2
330353 let period = value(getInteger(keyPeriod(baseAssetId)))
331354 let userBaseAssetAmountToConvertPeriodOption = getInteger(keyUserBaseAssetAmountToConvertPeriod(baseAssetId, userAddress))
332355 let claimShareAssetInvocation = if ((userBaseAssetAmountToConvertPeriodOption == unit))
416439 if ((baseAssetId == baseAssetId))
417440 then {
418441 let userAddress = i.caller
419- let $t01511615219 = valueOrErrorMessage(getPoolInfo(baseAssetId), wrapErr("invalid asset"))
420- let poolAddress = $t01511615219._1
421- let lpAssetId = $t01511615219._2
442+ let $t01545015553 = valueOrErrorMessage(getPoolInfo(baseAssetId), wrapErr("invalid asset"))
443+ let poolAddress = $t01545015553._1
444+ let lpAssetId = $t01545015553._2
422445 let period = value(getInteger(keyPeriod(baseAssetId)))
423446 let userShareAssetAmountToConvertPeriodOption = getInteger(keyUserShareAssetAmountToConvertPeriod(baseAssetId, userAddress))
424447 let claimBaseAssetInvocation = if ((userShareAssetAmountToConvertPeriodOption == unit))
506529 let shareAssetId = value(parseAssetId(valueOrErrorMessage(getString(keyShareAssetId(baseAssetId)), wrapErr("invalid base asset id"))))
507530 if ((shareAssetId == shareAssetId))
508531 then {
532+ let shareAssetInfo = valueOrErrorMessage(assetInfo(shareAssetId), wrapErr("invalid share asset id"))
509533 let period = valueOrErrorMessage(getInteger(keyPeriod(baseAssetId)), wrapErr("invalid period"))
510534 if ((period == period))
511535 then {
521545 }
522546 if ((checkDelay == checkDelay))
523547 then {
524- let $t01916119342 = valueOrErrorMessage(getPoolInfo(baseAssetId), wrapErr("invalid asset"))
525- let poolAddress = $t01916119342._1
526- let lpAssetId = $t01916119342._2
548+ let $t01959919780 = valueOrErrorMessage(getPoolInfo(baseAssetId), wrapErr("invalid asset"))
549+ let poolAddress = $t01959919780._1
550+ let lpAssetId = $t01959919780._2
527551 let stakingReward = valueOrErrorMessage({
528552 let @ = invoke(stakingContract, "claimWxDoNotThrow", [assetIdToString(lpAssetId)], nil)
529553 if ($isInstanceOf(@, "Int"))
628652 }
629653 if ((baseAssetAmount == baseAssetAmount))
630654 then {
631- let shareAssetBurnActions = [Burn(shareAssetId, shareAssetAmountToConvert)]
632- let priceGet = fraction(toBigInt(baseAssetAmount), scale18BigInt, toBigInt(shareAssetAmountToConvert), FLOOR)
633- let priceGetUpdateActions = [BinaryEntry(keyPricePeriodGet(baseAssetId, period), toBytes(priceGet)), StringEntry(keyPriceGetHistory(baseAssetId), toString(priceGet))]
634- (shareAssetBurnActions ++ priceGetUpdateActions)
655+ let shareAssetBurn = if ((shareAssetInfo.issuer == this))
656+ then invoke(this, "burn", [shareAssetId, shareAssetAmountToConvert], nil)
657+ else if ((shareAssetInfo.issuer == lpStakingContract))
658+ then invoke(lpStakingContract, "burn", [shareAssetId, shareAssetAmountToConvert], nil)
659+ else throwErr("invalid share asset issuer")
660+ if ((shareAssetBurn == shareAssetBurn))
661+ then {
662+ let priceGet = fraction(toBigInt(baseAssetAmount), scale18BigInt, toBigInt(shareAssetAmountToConvert), FLOOR)
663+ let priceGetUpdateActions = [BinaryEntry(keyPricePeriodGet(baseAssetId, period), toBytes(priceGet)), StringEntry(keyPriceGetHistory(baseAssetId), toString(priceGet))]
664+ priceGetUpdateActions
665+ }
666+ else throw("Strict value is not equal to itself.")
635667 }
636668 else throw("Strict value is not equal to itself.")
637669 }
638670 else throw("Strict value is not equal to itself.")
639671 }
640672 else nil
641- let putActions = if ((baseAssetAmountToConvert > 0))
673+ if ((getActions == getActions))
642674 then {
643- let lpAssetAmount = {
644- let minOutAmount = 0
645- let autoStake = true
646- valueOrErrorMessage({
647- let @ = invoke(poolAddress, "putOneTknV2", [minOutAmount, autoStake], [AttachedPayment(baseAssetId, baseAssetAmountToConvert)])
648- if ($isInstanceOf(@, "Int"))
649- then @
650- else unit
651- }, wrapErr("invalid putOneTknV2 result"))
652- }
653- if ((lpAssetAmount == lpAssetAmount))
675+ let putActions = if ((baseAssetAmountToConvert > 0))
654676 then {
655- let price = calcPrice(lpAssetId, shareAssetId)
656- if ((price == price))
677+ let lpAssetAmount = {
678+ let minOutAmount = 0
679+ let autoStake = true
680+ valueOrErrorMessage({
681+ let @ = invoke(poolAddress, "putOneTknV2", [minOutAmount, autoStake], [AttachedPayment(baseAssetId, baseAssetAmountToConvert)])
682+ if ($isInstanceOf(@, "Int"))
683+ then @
684+ else unit
685+ }, wrapErr("invalid putOneTknV2 result"))
686+ }
687+ if ((lpAssetAmount == lpAssetAmount))
657688 then {
658- let shareAssetAmount = toInt(fraction(toBigInt(lpAssetAmount), scale18BigInt, price, FLOOR))
659- let isReissuable = true
660- let shareAssetReissueActions = [Reissue(shareAssetId, shareAssetAmount, isReissuable)]
661- let pricePut = fraction(toBigInt(baseAssetAmountToConvert), scale18BigInt, toBigInt(shareAssetAmount))
662- let pricePutUpdateActions = [BinaryEntry(keyPricePeriodPut(baseAssetId, period), toBytes(pricePut)), StringEntry(keyPricePutHistory(baseAssetId), toString(pricePut))]
663- (shareAssetReissueActions ++ pricePutUpdateActions)
689+ let price = calcPrice(lpAssetId, shareAssetId)
690+ if ((price == price))
691+ then {
692+ let shareAssetAmount = toInt(fraction(toBigInt(lpAssetAmount), scale18BigInt, price, FLOOR))
693+ let shareAssetReissue = if ((shareAssetInfo.issuer == this))
694+ then invoke(this, "emit", [shareAssetId, shareAssetAmount], nil)
695+ else if ((shareAssetInfo.issuer == lpStakingContract))
696+ then invoke(lpStakingContract, "emit", [shareAssetId, shareAssetAmount], nil)
697+ else throwErr("invalid share asset issuer")
698+ if ((shareAssetReissue == shareAssetReissue))
699+ then {
700+ let pricePut = fraction(toBigInt(baseAssetAmountToConvert), scale18BigInt, toBigInt(shareAssetAmount))
701+ let pricePutUpdateActions = [BinaryEntry(keyPricePeriodPut(baseAssetId, period), toBytes(pricePut)), StringEntry(keyPricePutHistory(baseAssetId), toString(pricePut))]
702+ pricePutUpdateActions
703+ }
704+ else throw("Strict value is not equal to itself.")
705+ }
706+ else throw("Strict value is not equal to itself.")
664707 }
665708 else throw("Strict value is not equal to itself.")
666709 }
710+ else nil
711+ if ((putActions == putActions))
712+ then {
713+ let newPeriod = (period + 1)
714+ let lastPrice = calcPrice(lpAssetId, shareAssetId)
715+ 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)
716+ $Tuple2(actions, toBytes(lastPrice))
717+ }
667718 else throw("Strict value is not equal to itself.")
668719 }
669- else nil
670- let newPeriod = (period + 1)
671- let lastPrice = calcPrice(lpAssetId, shareAssetId)
672- 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)
673- $Tuple2(actions, toBytes(lastPrice))
720+ else throw("Strict value is not equal to itself.")
674721 }
675722 else throw("Strict value is not equal to itself.")
676723 }
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)
273+func emit (assetId,amount) = {
274+ let checkCaller = mustThis(i)
275+ if ((checkCaller == checkCaller))
276+ then {
277+ let isReissuable = true
278+ $Tuple2([Reissue(assetId, amount, isReissuable)], amount)
279+ }
280+ else throw("Strict value is not equal to itself.")
281+ }
282+
283+
284+
285+@Callable(i)
286+func burn (assetId,amount) = {
287+ let checkCaller = mustThis(i)
288+ if ((checkCaller == checkCaller))
289+ then $Tuple2([Burn(assetId, amount)], amount)
290+ else throw("Strict value is not equal to itself.")
291+ }
292+
293+
294+
295+@Callable(i)
273296 func create (baseAssetIdStr,shareAssetIdStr,shareAssetName,shareAssetDescription,shareAssetLogo) = {
274297 let shareAssetLabel = "LP_STAKING_POOLS"
275298 let baseAssetId = parseAssetId(baseAssetIdStr)
276299 let checks = [mustManager(i), if (isDefined(getPoolInfo(baseAssetId)))
277300 then true
278301 else throwErr("invalid base asset")]
279302 if ((checks == checks))
280303 then {
281304 let commonState = [IntegerEntry(keyPeriod(baseAssetId), 0)]
282305 if ((shareAssetIdStr == ""))
283306 then {
284307 let shareAssetIssueAmount = 1
285308 let shareAssetIssueAction = Issue(shareAssetName, shareAssetDescription, shareAssetIssueAmount, shareAssetDecimals, true)
286309 let calculatedShareAssetId = calculateAssetId(shareAssetIssueAction)
287310 let shareAssetBurnAction = Burn(calculatedShareAssetId, shareAssetIssueAmount)
288311 let calculatedShareAssetIdStr = toBase58String(calculatedShareAssetId)
289312 let createOrUpdate = invoke(assetsStoreContract, "createOrUpdate", [calculatedShareAssetIdStr, shareAssetLogo, false], nil)
290313 if ((createOrUpdate == createOrUpdate))
291314 then {
292315 let addLabel = invoke(assetsStoreContract, "addLabel", [calculatedShareAssetIdStr, shareAssetLabel], nil)
293316 if ((addLabel == addLabel))
294317 then $Tuple2((commonState ++ [shareAssetIssueAction, shareAssetBurnAction, StringEntry(keyShareAssetId(baseAssetId), calculatedShareAssetIdStr), StringEntry(keyBaseAssetId(calculatedShareAssetId), baseAssetIdStr)]), calculatedShareAssetIdStr)
295318 else throw("Strict value is not equal to itself.")
296319 }
297320 else throw("Strict value is not equal to itself.")
298321 }
299322 else {
300323 let shareAssetId = fromBase58String(shareAssetIdStr)
301324 let shareAssetInfo = valueOrErrorMessage(assetInfo(shareAssetId), wrapErr("invalid share asset id"))
302325 let checkIssuer = if ((shareAssetInfo.issuer == lpStakingContract))
303326 then true
304327 else throwErr("invalid share asset id issuer")
305328 if ((checkIssuer == checkIssuer))
306329 then $Tuple2((commonState ++ [StringEntry(keyShareAssetId(baseAssetId), shareAssetIdStr), StringEntry(keyShareAssetId(shareAssetId), baseAssetIdStr)]), shareAssetIdStr)
307330 else throw("Strict value is not equal to itself.")
308331 }
309332 }
310333 else throw("Strict value is not equal to itself.")
311334 }
312335
313336
314337
315338 @Callable(i)
316339 func put () = {
317340 let pmt = if ((size(i.payments) == 1))
318341 then i.payments[0]
319342 else throwErr("exactly 1 payment is expected")
320343 let baseAssetId = pmt.assetId
321344 let userAddress = i.caller
322345 let checks = [shutdownCheck(i), if (isDefined(getString(keyShareAssetId(baseAssetId))))
323346 then true
324347 else throwErr("invalid asset")]
325348 if ((checks == checks))
326349 then {
327- let $t01131211415 = valueOrErrorMessage(getPoolInfo(baseAssetId), wrapErr("invalid asset"))
328- let poolAddress = $t01131211415._1
329- let lpAssetId = $t01131211415._2
350+ let $t01164611749 = valueOrErrorMessage(getPoolInfo(baseAssetId), wrapErr("invalid asset"))
351+ let poolAddress = $t01164611749._1
352+ let lpAssetId = $t01164611749._2
330353 let period = value(getInteger(keyPeriod(baseAssetId)))
331354 let userBaseAssetAmountToConvertPeriodOption = getInteger(keyUserBaseAssetAmountToConvertPeriod(baseAssetId, userAddress))
332355 let claimShareAssetInvocation = if ((userBaseAssetAmountToConvertPeriodOption == unit))
333356 then unit
334357 else {
335358 let userBaseAssetAmountToConvertPeriod = value(userBaseAssetAmountToConvertPeriodOption)
336359 if ((userBaseAssetAmountToConvertPeriod == period))
337360 then unit
338361 else invoke(this, "claimShareAsset", [assetIdToString(baseAssetId), toString(userAddress)], nil)
339362 }
340363 if ((claimShareAssetInvocation == claimShareAssetInvocation))
341364 then {
342365 let baseAssetAmountToConvert = valueOrElse(getInteger(keyBaseAssetAmountToConvert(baseAssetId)), 0)
343366 let userBaseAssetAmountToConvert = valueOrElse(getInteger(keyUserBaseAssetAmountToConvert(baseAssetId, userAddress)), 0)
344367 $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)
345368 }
346369 else throw("Strict value is not equal to itself.")
347370 }
348371 else throw("Strict value is not equal to itself.")
349372 }
350373
351374
352375
353376 @Callable(i)
354377 func claimShareAsset (baseAssetIdStr,userAddressStr) = {
355378 let checks = [shutdownCheck(i)]
356379 if ((checks == checks))
357380 then {
358381 let userAddress = if ((userAddressStr == ""))
359382 then i.caller
360383 else {
361384 let checkCaller = mustThis(i)
362385 if ((checkCaller == checkCaller))
363386 then valueOrErrorMessage(addressFromString(userAddressStr), wrapErr("invalid user address"))
364387 else throw("Strict value is not equal to itself.")
365388 }
366389 if ((userAddress == userAddress))
367390 then {
368391 let baseAssetId = parseAssetId(baseAssetIdStr)
369392 let shareAssetId = value(parseAssetId(valueOrErrorMessage(getString(keyShareAssetId(baseAssetId)), wrapErr("invalid base asset id"))))
370393 if ((shareAssetId == shareAssetId))
371394 then {
372395 let period = valueOrErrorMessage(getInteger(keyPeriod(baseAssetId)), wrapErr("invalid period"))
373396 if ((period == period))
374397 then {
375398 let userBaseAssetAmountToConvert = valueOrElse(getInteger(keyUserBaseAssetAmountToConvert(baseAssetId, userAddress)), 0)
376399 let checkAmountToConvert = if ((userBaseAssetAmountToConvert > 0))
377400 then true
378401 else throwErr("nothing to claim")
379402 if ((checkAmountToConvert == checkAmountToConvert))
380403 then {
381404 let userBaseAssetAmountToConvertPeriod = valueOrErrorMessage(getInteger(keyUserBaseAssetAmountToConvertPeriod(baseAssetId, userAddress)), wrapErr("failed to get period"))
382405 let checkPeriod = if ((period > userBaseAssetAmountToConvertPeriod))
383406 then true
384407 else throwErr("invalid period")
385408 if ((checkPeriod == checkPeriod))
386409 then {
387410 let price = toBigInt(valueOrErrorMessage(getBinary(keyPricePeriodPut(baseAssetId, userBaseAssetAmountToConvertPeriod)), wrapErr("failed to get price")))
388411 let shareAssetAmount = toInt(fraction(toBigInt(userBaseAssetAmountToConvert), scale18BigInt, price))
389412 $Tuple2([IntegerEntry(keyUserBaseAssetAmountToConvert(baseAssetId, userAddress), 0), ScriptTransfer(userAddress, shareAssetAmount, shareAssetId), IntegerEntry(keyHistoryEntry(baseAssetId, "claimShareAsset", period, userAddress, i.transactionId), shareAssetAmount)], unit)
390413 }
391414 else throw("Strict value is not equal to itself.")
392415 }
393416 else throw("Strict value is not equal to itself.")
394417 }
395418 else throw("Strict value is not equal to itself.")
396419 }
397420 else throw("Strict value is not equal to itself.")
398421 }
399422 else throw("Strict value is not equal to itself.")
400423 }
401424 else throw("Strict value is not equal to itself.")
402425 }
403426
404427
405428
406429 @Callable(i)
407430 func get () = {
408431 let checks = [shutdownCheck(i)]
409432 if ((checks == checks))
410433 then {
411434 let pmt = if ((size(i.payments) == 1))
412435 then i.payments[0]
413436 else throwErr("exactly 1 payment is expected")
414437 let shareAssetId = pmt.assetId
415438 let baseAssetId = value(parseAssetId(valueOrErrorMessage(getString(keyBaseAssetId(shareAssetId)), wrapErr("invalid share asset id"))))
416439 if ((baseAssetId == baseAssetId))
417440 then {
418441 let userAddress = i.caller
419- let $t01511615219 = valueOrErrorMessage(getPoolInfo(baseAssetId), wrapErr("invalid asset"))
420- let poolAddress = $t01511615219._1
421- let lpAssetId = $t01511615219._2
442+ let $t01545015553 = valueOrErrorMessage(getPoolInfo(baseAssetId), wrapErr("invalid asset"))
443+ let poolAddress = $t01545015553._1
444+ let lpAssetId = $t01545015553._2
422445 let period = value(getInteger(keyPeriod(baseAssetId)))
423446 let userShareAssetAmountToConvertPeriodOption = getInteger(keyUserShareAssetAmountToConvertPeriod(baseAssetId, userAddress))
424447 let claimBaseAssetInvocation = if ((userShareAssetAmountToConvertPeriodOption == unit))
425448 then unit
426449 else {
427450 let userShareAssetAmountToConvertPeriod = value(userShareAssetAmountToConvertPeriodOption)
428451 if ((userShareAssetAmountToConvertPeriod == period))
429452 then unit
430453 else invoke(this, "claimBaseAsset", [userAddress], nil)
431454 }
432455 if ((claimBaseAssetInvocation == claimBaseAssetInvocation))
433456 then {
434457 let shareAssetAmountToConvert = valueOrElse(getInteger(keyShareAssetAmountToConvert(baseAssetId)), 0)
435458 let userShareAssetAmountToConvert = valueOrElse(getInteger(keyUserShareAssetAmountToConvert(baseAssetId, userAddress)), 0)
436459 $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)
437460 }
438461 else throw("Strict value is not equal to itself.")
439462 }
440463 else throw("Strict value is not equal to itself.")
441464 }
442465 else throw("Strict value is not equal to itself.")
443466 }
444467
445468
446469
447470 @Callable(i)
448471 func claimBaseAsset (baseAssetIdStr,userAddressStr) = {
449472 let checks = [shutdownCheck(i)]
450473 if ((checks == checks))
451474 then {
452475 let userAddress = if ((userAddressStr == ""))
453476 then i.caller
454477 else {
455478 let checkCaller = mustThis(i)
456479 if ((checkCaller == checkCaller))
457480 then valueOrErrorMessage(addressFromString(userAddressStr), wrapErr("invalid user address"))
458481 else throw("Strict value is not equal to itself.")
459482 }
460483 if ((userAddress == userAddress))
461484 then {
462485 let baseAssetId = parseAssetId(baseAssetIdStr)
463486 let shareAssetId = value(parseAssetId(valueOrErrorMessage(getString(keyShareAssetId(baseAssetId)), wrapErr("invalid base asset id"))))
464487 if ((shareAssetId == shareAssetId))
465488 then {
466489 let period = valueOrErrorMessage(getInteger(keyPeriod(baseAssetId)), wrapErr("invalid period"))
467490 if ((period == period))
468491 then {
469492 let userShareAssetAmountToConvert = valueOrElse(getInteger(keyUserShareAssetAmountToConvert(baseAssetId, userAddress)), 0)
470493 let checkAmountToConvert = if ((userShareAssetAmountToConvert > 0))
471494 then true
472495 else throwErr("nothing to claim")
473496 if ((checkAmountToConvert == checkAmountToConvert))
474497 then {
475498 let userShareAssetAmountToConvertPeriod = valueOrErrorMessage(getInteger(keyUserShareAssetAmountToConvertPeriod(baseAssetId, userAddress)), wrapErr("failed to get period"))
476499 let checkPeriod = if ((period > userShareAssetAmountToConvertPeriod))
477500 then true
478501 else throwErr("invalid period")
479502 if ((checkPeriod == checkPeriod))
480503 then {
481504 let price = toBigInt(valueOrErrorMessage(getBinary(keyPricePeriodGet(baseAssetId, userShareAssetAmountToConvertPeriod)), wrapErr("failed to get price")))
482505 let baseAssetAmount = toInt(fraction(toBigInt(userShareAssetAmountToConvert), price, scale18BigInt))
483506 $Tuple2([IntegerEntry(keyUserShareAssetAmountToConvert(baseAssetId, userAddress), 0), ScriptTransfer(userAddress, baseAssetAmount, baseAssetId), IntegerEntry(keyHistoryEntry(baseAssetId, "claimBaseAsset", period, userAddress, i.transactionId), baseAssetAmount)], unit)
484507 }
485508 else throw("Strict value is not equal to itself.")
486509 }
487510 else throw("Strict value is not equal to itself.")
488511 }
489512 else throw("Strict value is not equal to itself.")
490513 }
491514 else throw("Strict value is not equal to itself.")
492515 }
493516 else throw("Strict value is not equal to itself.")
494517 }
495518 else throw("Strict value is not equal to itself.")
496519 }
497520
498521
499522
500523 @Callable(i)
501524 func finalize (baseAssetIdStr) = {
502525 let checks = [shutdownCheck(i)]
503526 if ((checks == checks))
504527 then {
505528 let baseAssetId = parseAssetId(baseAssetIdStr)
506529 let shareAssetId = value(parseAssetId(valueOrErrorMessage(getString(keyShareAssetId(baseAssetId)), wrapErr("invalid base asset id"))))
507530 if ((shareAssetId == shareAssetId))
508531 then {
532+ let shareAssetInfo = valueOrErrorMessage(assetInfo(shareAssetId), wrapErr("invalid share asset id"))
509533 let period = valueOrErrorMessage(getInteger(keyPeriod(baseAssetId)), wrapErr("invalid period"))
510534 if ((period == period))
511535 then {
512536 let periodStartHeightOption = getInteger(keyPeriodStartHeight(baseAssetId, period))
513537 let checkDelay = if ((periodStartHeightOption == unit))
514538 then unit
515539 else {
516540 let delay = (height - value(periodStartHeightOption))
517541 let blocksToWait = max([0, (minDelay - delay)])
518542 if ((blocksToWait == 0))
519543 then unit
520544 else throwErr(makeString(["finalization will be possible in ", toString(blocksToWait), " blocks"], ""))
521545 }
522546 if ((checkDelay == checkDelay))
523547 then {
524- let $t01916119342 = valueOrErrorMessage(getPoolInfo(baseAssetId), wrapErr("invalid asset"))
525- let poolAddress = $t01916119342._1
526- let lpAssetId = $t01916119342._2
548+ let $t01959919780 = valueOrErrorMessage(getPoolInfo(baseAssetId), wrapErr("invalid asset"))
549+ let poolAddress = $t01959919780._1
550+ let lpAssetId = $t01959919780._2
527551 let stakingReward = valueOrErrorMessage({
528552 let @ = invoke(stakingContract, "claimWxDoNotThrow", [assetIdToString(lpAssetId)], nil)
529553 if ($isInstanceOf(@, "Int"))
530554 then @
531555 else unit
532556 }, wrapErr("invalid claimWx result"))
533557 if ((stakingReward == stakingReward))
534558 then {
535559 let baseAssetAmountToConvert = valueOrElse(getInteger(keyBaseAssetAmountToConvert(baseAssetId)), 0)
536560 let shareAssetAmountToConvert = valueOrElse(getInteger(keyShareAssetAmountToConvert(baseAssetId)), 0)
537561 let checkFinalizationIsRequired = {
538562 let isFinalizationRequired = if (if ((stakingReward > 0))
539563 then true
540564 else (baseAssetAmountToConvert > 0))
541565 then true
542566 else (shareAssetAmountToConvert > 0)
543567 if (isFinalizationRequired)
544568 then true
545569 else throwErr("nothing to finalize")
546570 }
547571 if ((checkFinalizationIsRequired == checkFinalizationIsRequired))
548572 then {
549573 let useStakingReward = if ((stakingReward > 0))
550574 then {
551575 let lockPart = fraction(stakingReward, lockFraction, lockFractionMultiplier)
552576 let convertPart = (stakingReward - lockPart)
553577 let r = invoke(boostingContract, "userMaxDurationREADONLY", [toString(this)], nil)
554578 let lock = if ((lockPart > 0))
555579 then match r {
556580 case _ =>
557581 if (if (if ($isInstanceOf($match0._1, "String"))
558582 then $isInstanceOf($match0._2, "Int")
559583 else false)
560584 then $isInstanceOf($match0, "(String, Int)")
561585 else false)
562586 then {
563587 let function = $match0._1
564588 let duration = $match0._2
565589 if ((lockPart > 0))
566590 then invoke(boostingContract, function, [duration], [AttachedPayment(wxAssetId, lockPart)])
567591 else unit
568592 }
569593 else throwErr("invalid lock params")
570594 }
571595 else unit
572596 if ((lock == lock))
573597 then {
574598 let convertedAmount = if ((convertPart > 0))
575599 then {
576600 let inAssetId = wxAssetId
577601 let minimumToReceive = 0
578602 let outAssetIdStr = assetIdToString(usdnAssetId)
579603 let targetAddress = ""
580604 valueOrErrorMessage({
581605 let @ = invoke(swapContract, "swap", [minimumToReceive, outAssetIdStr, targetAddress], [AttachedPayment(inAssetId, convertPart)])
582606 if ($isInstanceOf(@, "Int"))
583607 then @
584608 else unit
585609 }, wrapErr("invalid swap result"))
586610 }
587611 else 0
588612 if ((convertedAmount == convertedAmount))
589613 then {
590614 let lpAssetAmount = if ((convertedAmount > 0))
591615 then {
592616 let minOutAmount = 0
593617 let autoStake = true
594618 valueOrErrorMessage({
595619 let @ = invoke(poolAddress, "putOneTknV2", [minOutAmount, autoStake], [AttachedPayment(usdnAssetId, convertedAmount)])
596620 if ($isInstanceOf(@, "Int"))
597621 then @
598622 else unit
599623 }, wrapErr("invalid putOneTknV2 result"))
600624 }
601625 else 0
602626 if ((lpAssetAmount == lpAssetAmount))
603627 then lpAssetAmount
604628 else throw("Strict value is not equal to itself.")
605629 }
606630 else throw("Strict value is not equal to itself.")
607631 }
608632 else throw("Strict value is not equal to itself.")
609633 }
610634 else unit
611635 if ((useStakingReward == useStakingReward))
612636 then {
613637 let getActions = if ((shareAssetAmountToConvert > 0))
614638 then {
615639 let price = calcPrice(lpAssetId, shareAssetId)
616640 if ((price == price))
617641 then {
618642 let unstakeAmount = toInt(fraction(toBigInt(shareAssetAmountToConvert), price, scale18BigInt, FLOOR))
619643 let baseAssetAmount = {
620644 let outAssetId = baseAssetId
621645 let minOutAmount = 0
622646 valueOrErrorMessage({
623647 let @ = invoke(poolAddress, "unstakeAndGetOneTknV2", [unstakeAmount, assetIdToString(outAssetId), minOutAmount], nil)
624648 if ($isInstanceOf(@, "Int"))
625649 then @
626650 else unit
627651 }, wrapErr("invalid unstakeAndGetOneTknV2 result"))
628652 }
629653 if ((baseAssetAmount == baseAssetAmount))
630654 then {
631- let shareAssetBurnActions = [Burn(shareAssetId, shareAssetAmountToConvert)]
632- let priceGet = fraction(toBigInt(baseAssetAmount), scale18BigInt, toBigInt(shareAssetAmountToConvert), FLOOR)
633- let priceGetUpdateActions = [BinaryEntry(keyPricePeriodGet(baseAssetId, period), toBytes(priceGet)), StringEntry(keyPriceGetHistory(baseAssetId), toString(priceGet))]
634- (shareAssetBurnActions ++ priceGetUpdateActions)
655+ let shareAssetBurn = if ((shareAssetInfo.issuer == this))
656+ then invoke(this, "burn", [shareAssetId, shareAssetAmountToConvert], nil)
657+ else if ((shareAssetInfo.issuer == lpStakingContract))
658+ then invoke(lpStakingContract, "burn", [shareAssetId, shareAssetAmountToConvert], nil)
659+ else throwErr("invalid share asset issuer")
660+ if ((shareAssetBurn == shareAssetBurn))
661+ then {
662+ let priceGet = fraction(toBigInt(baseAssetAmount), scale18BigInt, toBigInt(shareAssetAmountToConvert), FLOOR)
663+ let priceGetUpdateActions = [BinaryEntry(keyPricePeriodGet(baseAssetId, period), toBytes(priceGet)), StringEntry(keyPriceGetHistory(baseAssetId), toString(priceGet))]
664+ priceGetUpdateActions
665+ }
666+ else throw("Strict value is not equal to itself.")
635667 }
636668 else throw("Strict value is not equal to itself.")
637669 }
638670 else throw("Strict value is not equal to itself.")
639671 }
640672 else nil
641- let putActions = if ((baseAssetAmountToConvert > 0))
673+ if ((getActions == getActions))
642674 then {
643- let lpAssetAmount = {
644- let minOutAmount = 0
645- let autoStake = true
646- valueOrErrorMessage({
647- let @ = invoke(poolAddress, "putOneTknV2", [minOutAmount, autoStake], [AttachedPayment(baseAssetId, baseAssetAmountToConvert)])
648- if ($isInstanceOf(@, "Int"))
649- then @
650- else unit
651- }, wrapErr("invalid putOneTknV2 result"))
652- }
653- if ((lpAssetAmount == lpAssetAmount))
675+ let putActions = if ((baseAssetAmountToConvert > 0))
654676 then {
655- let price = calcPrice(lpAssetId, shareAssetId)
656- if ((price == price))
677+ let lpAssetAmount = {
678+ let minOutAmount = 0
679+ let autoStake = true
680+ valueOrErrorMessage({
681+ let @ = invoke(poolAddress, "putOneTknV2", [minOutAmount, autoStake], [AttachedPayment(baseAssetId, baseAssetAmountToConvert)])
682+ if ($isInstanceOf(@, "Int"))
683+ then @
684+ else unit
685+ }, wrapErr("invalid putOneTknV2 result"))
686+ }
687+ if ((lpAssetAmount == lpAssetAmount))
657688 then {
658- let shareAssetAmount = toInt(fraction(toBigInt(lpAssetAmount), scale18BigInt, price, FLOOR))
659- let isReissuable = true
660- let shareAssetReissueActions = [Reissue(shareAssetId, shareAssetAmount, isReissuable)]
661- let pricePut = fraction(toBigInt(baseAssetAmountToConvert), scale18BigInt, toBigInt(shareAssetAmount))
662- let pricePutUpdateActions = [BinaryEntry(keyPricePeriodPut(baseAssetId, period), toBytes(pricePut)), StringEntry(keyPricePutHistory(baseAssetId), toString(pricePut))]
663- (shareAssetReissueActions ++ pricePutUpdateActions)
689+ let price = calcPrice(lpAssetId, shareAssetId)
690+ if ((price == price))
691+ then {
692+ let shareAssetAmount = toInt(fraction(toBigInt(lpAssetAmount), scale18BigInt, price, FLOOR))
693+ let shareAssetReissue = if ((shareAssetInfo.issuer == this))
694+ then invoke(this, "emit", [shareAssetId, shareAssetAmount], nil)
695+ else if ((shareAssetInfo.issuer == lpStakingContract))
696+ then invoke(lpStakingContract, "emit", [shareAssetId, shareAssetAmount], nil)
697+ else throwErr("invalid share asset issuer")
698+ if ((shareAssetReissue == shareAssetReissue))
699+ then {
700+ let pricePut = fraction(toBigInt(baseAssetAmountToConvert), scale18BigInt, toBigInt(shareAssetAmount))
701+ let pricePutUpdateActions = [BinaryEntry(keyPricePeriodPut(baseAssetId, period), toBytes(pricePut)), StringEntry(keyPricePutHistory(baseAssetId), toString(pricePut))]
702+ pricePutUpdateActions
703+ }
704+ else throw("Strict value is not equal to itself.")
705+ }
706+ else throw("Strict value is not equal to itself.")
664707 }
665708 else throw("Strict value is not equal to itself.")
666709 }
710+ else nil
711+ if ((putActions == putActions))
712+ then {
713+ let newPeriod = (period + 1)
714+ let lastPrice = calcPrice(lpAssetId, shareAssetId)
715+ 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)
716+ $Tuple2(actions, toBytes(lastPrice))
717+ }
667718 else throw("Strict value is not equal to itself.")
668719 }
669- else nil
670- let newPeriod = (period + 1)
671- let lastPrice = calcPrice(lpAssetId, shareAssetId)
672- 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)
673- $Tuple2(actions, toBytes(lastPrice))
720+ else throw("Strict value is not equal to itself.")
674721 }
675722 else throw("Strict value is not equal to itself.")
676723 }
677724 else throw("Strict value is not equal to itself.")
678725 }
679726 else throw("Strict value is not equal to itself.")
680727 }
681728 else throw("Strict value is not equal to itself.")
682729 }
683730 else throw("Strict value is not equal to itself.")
684731 }
685732 else throw("Strict value is not equal to itself.")
686733 }
687734 else throw("Strict value is not equal to itself.")
688735 }
689736
690737
691738 @Verifier(tx)
692739 func verify () = {
693740 let targetPublicKey = match managerPublicKeyOrUnit() {
694741 case pk: ByteVector =>
695742 pk
696743 case _: Unit =>
697744 tx.senderPublicKey
698745 case _ =>
699746 throw("Match error")
700747 }
701748 sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)
702749 }
703750

github/deemru/w8io/fabc49c 
72.40 ms