tx · u3QfzGcSiuSLUtyPhQfcq1cf9JvaoQHBLWwyAs8Foqh

3N98Ngyaszw66EakvWRCiZ771ja2RDgNaxV:  -0.02900000 Waves

2023.05.10 13:15 [2571654] smart account 3N98Ngyaszw66EakvWRCiZ771ja2RDgNaxV > SELF 0.00000000 Waves

{ "type": 13, "id": "u3QfzGcSiuSLUtyPhQfcq1cf9JvaoQHBLWwyAs8Foqh", "fee": 2900000, "feeAssetId": null, "timestamp": 1683713730880, "version": 2, "chainId": 84, "sender": "3N98Ngyaszw66EakvWRCiZ771ja2RDgNaxV", "senderPublicKey": "F4oaTkX67vt2MEsXLJJ8a7gaURGjW7x8fkvGfdEiH5oy", "proofs": [ "2ws5g6sah1NDEGbJhkPTXzjBupWzEUsEsDNdxLm5rTN5nLqLbeEd7BmJBRCEDTJeAidXfWRvuAgMtLLX78ZJAKUo" ], "script": "base64:BgIsCAISBAoCAgESBAoCAgESBwoFCAgICAgSABIECgIICBIAEgQKAggIEgMKAQhBAAlzZXBhcmF0b3ICAl9fABJzaGFyZUFzc2V0RGVjaW1hbHMACAALd2F2ZXNTdHJpbmcCBVdBVkVTAAdzY2FsZTE4AICAkLu61q3wDQANc2NhbGUxOEJpZ0ludAkAtgIBBQdzY2FsZTE4AQd3cmFwRXJyAQNtc2cJALkJAgkAzAgCAhZscF9zdGFraW5nX3Bvb2xzLnJpZGU6CQDMCAIFA21zZwUDbmlsAgEgAQh0aHJvd0VycgEDbXNnCQACAQkBB3dyYXBFcnIBBQNtc2cBEmVycktleUlzTm90RGVmaW5lZAIHYWRkcmVzcwNrZXkJAQd3cmFwRXJyAQkAuQkCCQDMCAICCm1hbmRhdG9yeSAJAMwIAgkApQgBBQdhZGRyZXNzCQDMCAICAS4JAMwIAgUDa2V5CQDMCAICDyBpcyBub3QgZGVmaW5lZAUDbmlsAgABDGdldFN0ck9yRmFpbAIHYWRkcmVzcwNrZXkJARN2YWx1ZU9yRXJyb3JNZXNzYWdlAgkAnQgCBQdhZGRyZXNz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": 0 } View: original | compacted Prev: HyCJVY3ypdnWdQx4jtDX5JhGoWP5hZbGyNvvCo3kLktw Next: EnuRAfmbkpQis4qRRLEvD8NgGJJso2JoB9EH2cfsfBVM Diff:
OldNewDifferences
128128 func keyManagerPublicKey () = "%s__managerPublicKey"
129129
130130
131-func keyPendingManagerPublicKey () = "%s__pendingManagerPublicKey"
131+func keyManagerVaultAddress () = "%s__managerVaultAddress"
132132
133133
134-func managerPublicKeyOrUnit () = match getString(keyManagerPublicKey()) {
134+func getManagerVaultAddressOrThis () = match getString(keyManagerVaultAddress()) {
135135 case s: String =>
136- fromBase58String(s)
137- case _: Unit =>
138- unit
136+ addressFromStringValue(s)
139137 case _ =>
140- throw("Match error")
138+ this
141139 }
142140
143141
144-func pendingManagerPublicKeyOrUnit () = match getString(keyPendingManagerPublicKey()) {
145- case s: String =>
146- fromBase58String(s)
147- case _: Unit =>
148- unit
149- case _ =>
150- throw("Match error")
151-}
142+func managerPublicKeyOrUnit () = {
143+ let managerVaultAddress = getManagerVaultAddressOrThis()
144+ match getString(managerVaultAddress, keyManagerPublicKey()) {
145+ case s: String =>
146+ fromBase58String(s)
147+ case _: Unit =>
148+ unit
149+ case _ =>
150+ throw("Match error")
151+ }
152+ }
152153
153154
154155 let permissionDeniedError = throw("Permission denied")
235236
236237
237238 @Callable(i)
238-func setManager (pendingManagerPublicKey) = {
239- let checkCaller = mustManager(i)
240- if ((checkCaller == checkCaller))
241- then {
242- let checkManagerPublicKey = fromBase58String(pendingManagerPublicKey)
243- if ((checkManagerPublicKey == checkManagerPublicKey))
244- then [StringEntry(keyPendingManagerPublicKey(), pendingManagerPublicKey)]
245- else throw("Strict value is not equal to itself.")
246- }
247- else throw("Strict value is not equal to itself.")
248- }
249-
250-
251-
252-@Callable(i)
253-func confirmManager () = {
254- let pm = pendingManagerPublicKeyOrUnit()
255- let hasPM = if (isDefined(pm))
256- then true
257- else throwErr("no pending manager")
258- if ((hasPM == hasPM))
259- then {
260- let checkPM = if ((i.callerPublicKey == value(pm)))
261- then true
262- else throwErr("you are not pending manager")
263- if ((checkPM == checkPM))
264- then [StringEntry(keyManagerPublicKey(), toBase58String(value(pm))), DeleteEntry(keyPendingManagerPublicKey())]
265- else throw("Strict value is not equal to itself.")
266- }
267- else throw("Strict value is not equal to itself.")
268- }
269-
270-
271-
272-@Callable(i)
273239 func emit (assetId,amount) = {
274240 let checkCaller = mustThis(i)
275241 if ((checkCaller == checkCaller))
347313 else throwErr("invalid asset")]
348314 if ((checks == checks))
349315 then {
350- let $t01164011743 = valueOrErrorMessage(getPoolInfo(baseAssetId), wrapErr("invalid asset"))
351- let poolAddress = $t01164011743._1
352- let lpAssetId = $t01164011743._2
316+ let $t01109211195 = valueOrErrorMessage(getPoolInfo(baseAssetId), wrapErr("invalid asset"))
317+ let poolAddress = $t01109211195._1
318+ let lpAssetId = $t01109211195._2
353319 let period = value(getInteger(keyPeriod(baseAssetId)))
354320 let userBaseAssetAmountToConvertPeriodOption = getInteger(keyUserBaseAssetAmountToConvertPeriod(baseAssetId, userAddress))
355321 let claimShareAssetInvocation = if ((userBaseAssetAmountToConvertPeriodOption == unit))
439405 if ((baseAssetId == baseAssetId))
440406 then {
441407 let userAddress = i.caller
442- let $t01582016009 = valueOrErrorMessage(getPoolInfo(baseAssetId), wrapErr("invalid asset"))
443- let poolAddress = $t01582016009._1
444- let lpAssetId = $t01582016009._2
408+ let $t01527215461 = valueOrErrorMessage(getPoolInfo(baseAssetId), wrapErr("invalid asset"))
409+ let poolAddress = $t01527215461._1
410+ let lpAssetId = $t01527215461._2
445411 let period = value(getInteger(keyPeriod(baseAssetId)))
446412 let userShareAssetAmountToConvertPeriodOption = getInteger(keyUserShareAssetAmountToConvertPeriod(baseAssetId, userAddress))
447413 let claimBaseAssetInvocation = if ((userShareAssetAmountToConvertPeriodOption == unit))
538504 }
539505 if ((checkDelay == checkDelay))
540506 then {
541- let $t02111321294 = valueOrErrorMessage(getPoolInfo(baseAssetId), wrapErr("invalid asset"))
542- let poolAddress = $t02111321294._1
543- let lpAssetId = $t02111321294._2
507+ let $t02056520746 = valueOrErrorMessage(getPoolInfo(baseAssetId), wrapErr("invalid asset"))
508+ let poolAddress = $t02056520746._1
509+ let lpAssetId = $t02056520746._2
544510 let stakingReward = valueOrErrorMessage({
545511 let @ = invoke(stakingContract, "claimWxDoNotThrow", [assetIdToString(lpAssetId)], nil)
546512 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
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
131-func keyPendingManagerPublicKey () = "%s__pendingManagerPublicKey"
131+func keyManagerVaultAddress () = "%s__managerVaultAddress"
132132
133133
134-func managerPublicKeyOrUnit () = match getString(keyManagerPublicKey()) {
134+func getManagerVaultAddressOrThis () = match getString(keyManagerVaultAddress()) {
135135 case s: String =>
136- fromBase58String(s)
137- case _: Unit =>
138- unit
136+ addressFromStringValue(s)
139137 case _ =>
140- throw("Match error")
138+ this
141139 }
142140
143141
144-func pendingManagerPublicKeyOrUnit () = match getString(keyPendingManagerPublicKey()) {
145- case s: String =>
146- fromBase58String(s)
147- case _: Unit =>
148- unit
149- case _ =>
150- throw("Match error")
151-}
142+func managerPublicKeyOrUnit () = {
143+ let managerVaultAddress = getManagerVaultAddressOrThis()
144+ match getString(managerVaultAddress, keyManagerPublicKey()) {
145+ case s: String =>
146+ fromBase58String(s)
147+ case _: Unit =>
148+ unit
149+ case _ =>
150+ throw("Match error")
151+ }
152+ }
152153
153154
154155 let permissionDeniedError = throw("Permission denied")
155156
156157 func mustThis (i) = if ((i.caller == this))
157158 then true
158159 else permissionDeniedError
159160
160161
161162 func mustManager (i) = match managerPublicKeyOrUnit() {
162163 case pk: ByteVector =>
163164 if ((i.callerPublicKey == pk))
164165 then true
165166 else permissionDeniedError
166167 case _: Unit =>
167168 mustThis(i)
168169 case _ =>
169170 throw("Match error")
170171 }
171172
172173
173174 let shutdown = valueOrElse(getBoolean(keyShutdown()), false)
174175
175176 func shutdownCheck (i) = if (if (!(shutdown))
176177 then true
177178 else mustManager(i))
178179 then true
179180 else throw("operation is disabled")
180181
181182
182183 let factoryContract = addressFromStringValue(getStrOrFail(this, keyFactoryContract()))
183184
184185 let lpStakingContract = addressFromStringValue(getStrOrFail(this, keyLpStakingContract()))
185186
186187 let stakingContract = addressFromStringValue(getStrOrFail(this, keyStakingContract()))
187188
188189 let boostingContract = addressFromStringValue(getStrOrFail(this, keyBoostingContract()))
189190
190191 let swapContract = addressFromStringValue(getStrOrFail(this, keySwapContract()))
191192
192193 let assetsStoreContract = addressFromStringValue(getStrOrFail(this, keyAssetsStoreContract()))
193194
194195 let usdtAssetId = parseAssetId(getStrOrFail(this, keyUsdtAssetId()))
195196
196197 let wxAssetId = parseAssetId(getStrOrFail(this, keyWxAssetId()))
197198
198199 let minDelayDefault = 1440
199200
200201 let minDelay = valueOrElse(getInteger(this, keyMinDelay()), minDelayDefault)
201202
202203 let lockFractionMultiplier = 100000000
203204
204205 let lockFractionDefault = fraction(1, lockFractionMultiplier, 2)
205206
206207 let lockFraction = valueOrElse(getInteger(this, keyLockFraction()), lockFractionDefault)
207208
208209 func getPoolInfo (amountAssetId) = {
209210 let amountAssetIdStr = assetIdToString(amountAssetId)
210211 let priceAssetIdStr = assetIdToString(usdtAssetId)
211212 let poolInfoOption = {
212213 let @ = invoke(factoryContract, "poolInfoREADONLY", [amountAssetIdStr, priceAssetIdStr], nil)
213214 if ($isInstanceOf(@, "(Address, ByteVector)"))
214215 then @
215216 else unit
216217 }
217218 poolInfoOption
218219 }
219220
220221
221222 func calcPrice (lpAssetId,shareAssetId) = {
222223 let shareAssetInfo = valueOrErrorMessage(assetInfo(shareAssetId), "failed to get share asset info")
223224 let shareAssetEmission = shareAssetInfo.quantity
224225 let stakedAmount = ensurePositive(valueOrErrorMessage({
225226 let @ = invoke(stakingContract, "stakedByUserREADONLY", [assetIdToString(lpAssetId), toString(this)], nil)
226227 if ($isInstanceOf(@, "Int"))
227228 then @
228229 else unit
229230 }, wrapErr("invalid stakedByUserREADONLY result")))
230231 let price = if ((shareAssetEmission == 0))
231232 then scale18BigInt
232233 else fraction(toBigInt(stakedAmount), scale18BigInt, toBigInt(shareAssetEmission), FLOOR)
233234 price
234235 }
235236
236237
237238 @Callable(i)
238-func setManager (pendingManagerPublicKey) = {
239- let checkCaller = mustManager(i)
240- if ((checkCaller == checkCaller))
241- then {
242- let checkManagerPublicKey = fromBase58String(pendingManagerPublicKey)
243- if ((checkManagerPublicKey == checkManagerPublicKey))
244- then [StringEntry(keyPendingManagerPublicKey(), pendingManagerPublicKey)]
245- else throw("Strict value is not equal to itself.")
246- }
247- else throw("Strict value is not equal to itself.")
248- }
249-
250-
251-
252-@Callable(i)
253-func confirmManager () = {
254- let pm = pendingManagerPublicKeyOrUnit()
255- let hasPM = if (isDefined(pm))
256- then true
257- else throwErr("no pending manager")
258- if ((hasPM == hasPM))
259- then {
260- let checkPM = if ((i.callerPublicKey == value(pm)))
261- then true
262- else throwErr("you are not pending manager")
263- if ((checkPM == checkPM))
264- then [StringEntry(keyManagerPublicKey(), toBase58String(value(pm))), DeleteEntry(keyPendingManagerPublicKey())]
265- else throw("Strict value is not equal to itself.")
266- }
267- else throw("Strict value is not equal to itself.")
268- }
269-
270-
271-
272-@Callable(i)
273239 func emit (assetId,amount) = {
274240 let checkCaller = mustThis(i)
275241 if ((checkCaller == checkCaller))
276242 then {
277243 let isReissuable = true
278244 $Tuple2([Reissue(assetId, amount, isReissuable)], amount)
279245 }
280246 else throw("Strict value is not equal to itself.")
281247 }
282248
283249
284250
285251 @Callable(i)
286252 func burn (assetId,amount) = {
287253 let checkCaller = mustThis(i)
288254 if ((checkCaller == checkCaller))
289255 then $Tuple2([Burn(assetId, amount)], amount)
290256 else throw("Strict value is not equal to itself.")
291257 }
292258
293259
294260
295261 @Callable(i)
296262 func create (baseAssetIdStr,shareAssetIdStr,shareAssetName,shareAssetDescription,shareAssetLogo) = {
297263 let shareAssetLabel = "STAKING_LP"
298264 let baseAssetId = parseAssetId(baseAssetIdStr)
299265 let checks = [mustManager(i), if (isDefined(getPoolInfo(baseAssetId)))
300266 then true
301267 else throwErr("invalid base asset")]
302268 if ((checks == checks))
303269 then {
304270 let commonState = [IntegerEntry(keyPeriod(baseAssetId), 0)]
305271 if ((shareAssetIdStr == ""))
306272 then {
307273 let shareAssetIssueAmount = 1
308274 let shareAssetIssueAction = Issue(shareAssetName, shareAssetDescription, shareAssetIssueAmount, shareAssetDecimals, true)
309275 let calculatedShareAssetId = calculateAssetId(shareAssetIssueAction)
310276 let shareAssetBurnAction = Burn(calculatedShareAssetId, shareAssetIssueAmount)
311277 let calculatedShareAssetIdStr = toBase58String(calculatedShareAssetId)
312278 let createOrUpdate = invoke(assetsStoreContract, "createOrUpdate", [calculatedShareAssetIdStr, shareAssetLogo, false], nil)
313279 if ((createOrUpdate == createOrUpdate))
314280 then {
315281 let addLabel = invoke(assetsStoreContract, "addLabel", [calculatedShareAssetIdStr, shareAssetLabel], nil)
316282 if ((addLabel == addLabel))
317283 then $Tuple2((commonState ++ [shareAssetIssueAction, shareAssetBurnAction, StringEntry(keyShareAssetId(baseAssetId), calculatedShareAssetIdStr), StringEntry(keyBaseAssetId(calculatedShareAssetId), baseAssetIdStr)]), calculatedShareAssetIdStr)
318284 else throw("Strict value is not equal to itself.")
319285 }
320286 else throw("Strict value is not equal to itself.")
321287 }
322288 else {
323289 let shareAssetId = fromBase58String(shareAssetIdStr)
324290 let shareAssetInfo = valueOrErrorMessage(assetInfo(shareAssetId), wrapErr("invalid share asset id"))
325291 let checkIssuer = if ((shareAssetInfo.issuer == lpStakingContract))
326292 then true
327293 else throwErr("invalid share asset id issuer")
328294 if ((checkIssuer == checkIssuer))
329295 then $Tuple2((commonState ++ [StringEntry(keyShareAssetId(baseAssetId), shareAssetIdStr), StringEntry(keyBaseAssetId(shareAssetId), baseAssetIdStr)]), shareAssetIdStr)
330296 else throw("Strict value is not equal to itself.")
331297 }
332298 }
333299 else throw("Strict value is not equal to itself.")
334300 }
335301
336302
337303
338304 @Callable(i)
339305 func put () = {
340306 let pmt = if ((size(i.payments) == 1))
341307 then i.payments[0]
342308 else throwErr("exactly 1 payment is expected")
343309 let baseAssetId = pmt.assetId
344310 let userAddress = i.caller
345311 let checks = [shutdownCheck(i), if (isDefined(getString(keyShareAssetId(baseAssetId))))
346312 then true
347313 else throwErr("invalid asset")]
348314 if ((checks == checks))
349315 then {
350- let $t01164011743 = valueOrErrorMessage(getPoolInfo(baseAssetId), wrapErr("invalid asset"))
351- let poolAddress = $t01164011743._1
352- let lpAssetId = $t01164011743._2
316+ let $t01109211195 = valueOrErrorMessage(getPoolInfo(baseAssetId), wrapErr("invalid asset"))
317+ let poolAddress = $t01109211195._1
318+ let lpAssetId = $t01109211195._2
353319 let period = value(getInteger(keyPeriod(baseAssetId)))
354320 let userBaseAssetAmountToConvertPeriodOption = getInteger(keyUserBaseAssetAmountToConvertPeriod(baseAssetId, userAddress))
355321 let claimShareAssetInvocation = if ((userBaseAssetAmountToConvertPeriodOption == unit))
356322 then unit
357323 else {
358324 let userBaseAssetAmountToConvertPeriod = value(userBaseAssetAmountToConvertPeriodOption)
359325 if ((userBaseAssetAmountToConvertPeriod == period))
360326 then unit
361327 else invoke(this, "claimShareAsset", [assetIdToString(baseAssetId), toString(userAddress)], nil)
362328 }
363329 if ((claimShareAssetInvocation == claimShareAssetInvocation))
364330 then {
365331 let baseAssetAmountToConvert = valueOrElse(getInteger(keyBaseAssetAmountToConvert(baseAssetId)), 0)
366332 let userBaseAssetAmountToConvert = valueOrElse(getInteger(keyUserBaseAssetAmountToConvert(baseAssetId, userAddress)), 0)
367333 $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)
368334 }
369335 else throw("Strict value is not equal to itself.")
370336 }
371337 else throw("Strict value is not equal to itself.")
372338 }
373339
374340
375341
376342 @Callable(i)
377343 func claimShareAsset (baseAssetIdStr,userAddressStr) = {
378344 let checks = [shutdownCheck(i)]
379345 if ((checks == checks))
380346 then {
381347 let userAddress = if ((userAddressStr == ""))
382348 then i.caller
383349 else {
384350 let checkCaller = mustThis(i)
385351 if ((checkCaller == checkCaller))
386352 then valueOrErrorMessage(addressFromString(userAddressStr), wrapErr("invalid user address"))
387353 else throw("Strict value is not equal to itself.")
388354 }
389355 if ((userAddress == userAddress))
390356 then {
391357 let baseAssetId = parseAssetId(baseAssetIdStr)
392358 let shareAssetId = value(parseAssetId(valueOrErrorMessage(getString(keyShareAssetId(baseAssetId)), wrapErr("invalid base asset id"))))
393359 if ((shareAssetId == shareAssetId))
394360 then {
395361 let period = valueOrErrorMessage(getInteger(keyPeriod(baseAssetId)), wrapErr("invalid period"))
396362 if ((period == period))
397363 then {
398364 let userBaseAssetAmountToConvert = valueOrElse(getInteger(keyUserBaseAssetAmountToConvert(baseAssetId, userAddress)), 0)
399365 let checkAmountToConvert = if ((userBaseAssetAmountToConvert > 0))
400366 then true
401367 else throwErr("nothing to claim")
402368 if ((checkAmountToConvert == checkAmountToConvert))
403369 then {
404370 let userBaseAssetAmountToConvertPeriod = valueOrErrorMessage(getInteger(keyUserBaseAssetAmountToConvertPeriod(baseAssetId, userAddress)), wrapErr("failed to get period"))
405371 let checkPeriod = if ((period > userBaseAssetAmountToConvertPeriod))
406372 then true
407373 else throwErr("invalid period")
408374 if ((checkPeriod == checkPeriod))
409375 then {
410376 let price = toBigInt(valueOrErrorMessage(getBinary(keyPricePeriodPut(baseAssetId, userBaseAssetAmountToConvertPeriod)), wrapErr("failed to get price")))
411377 let shareAssetAmount = toInt(fraction(toBigInt(userBaseAssetAmountToConvert), scale18BigInt, price))
412378 $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)
413379 }
414380 else throw("Strict value is not equal to itself.")
415381 }
416382 else throw("Strict value is not equal to itself.")
417383 }
418384 else throw("Strict value is not equal to itself.")
419385 }
420386 else throw("Strict value is not equal to itself.")
421387 }
422388 else throw("Strict value is not equal to itself.")
423389 }
424390 else throw("Strict value is not equal to itself.")
425391 }
426392
427393
428394
429395 @Callable(i)
430396 func get () = {
431397 let checks = [shutdownCheck(i)]
432398 if ((checks == checks))
433399 then {
434400 let pmt = if ((size(i.payments) == 1))
435401 then i.payments[0]
436402 else throwErr("exactly 1 payment is expected")
437403 let shareAssetId = pmt.assetId
438404 let baseAssetId = value(parseAssetId(valueOrErrorMessage(getString(keyBaseAssetId(shareAssetId)), wrapErr("invalid share asset id"))))
439405 if ((baseAssetId == baseAssetId))
440406 then {
441407 let userAddress = i.caller
442- let $t01582016009 = valueOrErrorMessage(getPoolInfo(baseAssetId), wrapErr("invalid asset"))
443- let poolAddress = $t01582016009._1
444- let lpAssetId = $t01582016009._2
408+ let $t01527215461 = valueOrErrorMessage(getPoolInfo(baseAssetId), wrapErr("invalid asset"))
409+ let poolAddress = $t01527215461._1
410+ let lpAssetId = $t01527215461._2
445411 let period = value(getInteger(keyPeriod(baseAssetId)))
446412 let userShareAssetAmountToConvertPeriodOption = getInteger(keyUserShareAssetAmountToConvertPeriod(baseAssetId, userAddress))
447413 let claimBaseAssetInvocation = if ((userShareAssetAmountToConvertPeriodOption == unit))
448414 then unit
449415 else {
450416 let userShareAssetAmountToConvertPeriod = value(userShareAssetAmountToConvertPeriodOption)
451417 if ((userShareAssetAmountToConvertPeriod == period))
452418 then unit
453419 else invoke(this, "claimBaseAsset", [assetIdToString(baseAssetId), toString(userAddress)], nil)
454420 }
455421 if ((claimBaseAssetInvocation == claimBaseAssetInvocation))
456422 then {
457423 let shareAssetAmountToConvert = valueOrElse(getInteger(keyShareAssetAmountToConvert(baseAssetId)), 0)
458424 let userShareAssetAmountToConvert = valueOrElse(getInteger(keyUserShareAssetAmountToConvert(baseAssetId, userAddress)), 0)
459425 $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)
460426 }
461427 else throw("Strict value is not equal to itself.")
462428 }
463429 else throw("Strict value is not equal to itself.")
464430 }
465431 else throw("Strict value is not equal to itself.")
466432 }
467433
468434
469435
470436 @Callable(i)
471437 func claimBaseAsset (baseAssetIdStr,userAddressStr) = {
472438 let checks = [shutdownCheck(i)]
473439 if ((checks == checks))
474440 then {
475441 let userAddress = if ((userAddressStr == ""))
476442 then i.caller
477443 else {
478444 let checkCaller = mustThis(i)
479445 if ((checkCaller == checkCaller))
480446 then valueOrErrorMessage(addressFromString(userAddressStr), wrapErr("invalid user address"))
481447 else throw("Strict value is not equal to itself.")
482448 }
483449 if ((userAddress == userAddress))
484450 then {
485451 let baseAssetId = parseAssetId(baseAssetIdStr)
486452 let shareAssetId = value(parseAssetId(valueOrErrorMessage(getString(keyShareAssetId(baseAssetId)), wrapErr("invalid base asset id"))))
487453 if ((shareAssetId == shareAssetId))
488454 then {
489455 let period = valueOrErrorMessage(getInteger(keyPeriod(baseAssetId)), wrapErr("invalid period"))
490456 if ((period == period))
491457 then {
492458 let userShareAssetAmountToConvert = valueOrElse(getInteger(keyUserShareAssetAmountToConvert(baseAssetId, userAddress)), 0)
493459 let userShareAssetAmountToConvertPeriod = valueOrErrorMessage(getInteger(keyUserShareAssetAmountToConvertPeriod(baseAssetId, userAddress)), wrapErr("failed to get period"))
494460 let checkPeriod = if ((period > userShareAssetAmountToConvertPeriod))
495461 then true
496462 else throwErr("invalid period")
497463 if ((checkPeriod == checkPeriod))
498464 then {
499465 let price = toBigInt(valueOrErrorMessage(getBinary(keyPricePeriodGet(baseAssetId, userShareAssetAmountToConvertPeriod)), wrapErr("failed to get price")))
500466 let baseAssetAmount = toInt(fraction(toBigInt(userShareAssetAmountToConvert), price, scale18BigInt))
501467 $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)
502468 }
503469 else throw("Strict value is not equal to itself.")
504470 }
505471 else throw("Strict value is not equal to itself.")
506472 }
507473 else throw("Strict value is not equal to itself.")
508474 }
509475 else throw("Strict value is not equal to itself.")
510476 }
511477 else throw("Strict value is not equal to itself.")
512478 }
513479
514480
515481
516482 @Callable(i)
517483 func finalize (baseAssetIdStr) = {
518484 let checks = [shutdownCheck(i)]
519485 if ((checks == checks))
520486 then {
521487 let baseAssetId = parseAssetId(baseAssetIdStr)
522488 let shareAssetId = value(parseAssetId(valueOrErrorMessage(getString(keyShareAssetId(baseAssetId)), wrapErr("invalid base asset id"))))
523489 if ((shareAssetId == shareAssetId))
524490 then {
525491 let shareAssetInfo = valueOrErrorMessage(assetInfo(shareAssetId), wrapErr("invalid share asset id"))
526492 let period = valueOrErrorMessage(getInteger(keyPeriod(baseAssetId)), wrapErr("invalid period"))
527493 if ((period == period))
528494 then {
529495 let periodStartHeightOption = getInteger(keyPeriodStartHeight(baseAssetId, period))
530496 let checkDelay = if ((periodStartHeightOption == unit))
531497 then unit
532498 else {
533499 let delay = (height - value(periodStartHeightOption))
534500 let blocksToWait = max([0, (minDelay - delay)])
535501 if ((blocksToWait == 0))
536502 then unit
537503 else throwErr(makeString(["finalization will be possible in ", toString(blocksToWait), " blocks"], ""))
538504 }
539505 if ((checkDelay == checkDelay))
540506 then {
541- let $t02111321294 = valueOrErrorMessage(getPoolInfo(baseAssetId), wrapErr("invalid asset"))
542- let poolAddress = $t02111321294._1
543- let lpAssetId = $t02111321294._2
507+ let $t02056520746 = valueOrErrorMessage(getPoolInfo(baseAssetId), wrapErr("invalid asset"))
508+ let poolAddress = $t02056520746._1
509+ let lpAssetId = $t02056520746._2
544510 let stakingReward = valueOrErrorMessage({
545511 let @ = invoke(stakingContract, "claimWxDoNotThrow", [assetIdToString(lpAssetId)], nil)
546512 if ($isInstanceOf(@, "Int"))
547513 then @
548514 else unit
549515 }, wrapErr("invalid claimWx result"))
550516 if ((stakingReward == stakingReward))
551517 then {
552518 let baseAssetAmountToConvert = valueOrElse(getInteger(keyBaseAssetAmountToConvert(baseAssetId)), 0)
553519 let shareAssetAmountToConvert = valueOrElse(getInteger(keyShareAssetAmountToConvert(baseAssetId)), 0)
554520 let checkFinalizationIsRequired = {
555521 let isFinalizationRequired = if (if ((stakingReward > 0))
556522 then true
557523 else (baseAssetAmountToConvert > 0))
558524 then true
559525 else (shareAssetAmountToConvert > 0)
560526 if (isFinalizationRequired)
561527 then true
562528 else throwErr("nothing to finalize")
563529 }
564530 if ((checkFinalizationIsRequired == checkFinalizationIsRequired))
565531 then {
566532 let useStakingReward = if ((stakingReward > 0))
567533 then {
568534 let lockPart = fraction(stakingReward, lockFraction, lockFractionMultiplier)
569535 let convertPart = (stakingReward - lockPart)
570536 let r = invoke(boostingContract, "userMaxDurationREADONLY", [toString(this)], nil)
571537 let lock = if ((lockPart > 0))
572538 then match r {
573539 case _ =>
574540 if (if (if ($isInstanceOf($match0._1, "String"))
575541 then $isInstanceOf($match0._2, "Int")
576542 else false)
577543 then $isInstanceOf($match0, "(String, Int)")
578544 else false)
579545 then {
580546 let function = $match0._1
581547 let duration = $match0._2
582548 if ((lockPart > 0))
583549 then invoke(boostingContract, function, [duration], [AttachedPayment(wxAssetId, lockPart)])
584550 else unit
585551 }
586552 else throwErr("invalid lock params")
587553 }
588554 else unit
589555 if ((lock == lock))
590556 then {
591557 let convertedAmount = if ((convertPart > 0))
592558 then {
593559 let inAssetId = wxAssetId
594560 let minimumToReceive = 0
595561 let outAssetIdStr = assetIdToString(usdtAssetId)
596562 let targetAddress = toString(this)
597563 valueOrErrorMessage({
598564 let @ = invoke(swapContract, "swap", [minimumToReceive, outAssetIdStr, targetAddress], [AttachedPayment(inAssetId, convertPart)])
599565 if ($isInstanceOf(@, "Int"))
600566 then @
601567 else unit
602568 }, wrapErr("invalid swap result"))
603569 }
604570 else 0
605571 if ((convertedAmount == convertedAmount))
606572 then {
607573 let lpAssetAmount = if ((convertedAmount > 0))
608574 then {
609575 let minOutAmount = 0
610576 let autoStake = true
611577 valueOrErrorMessage({
612578 let @ = invoke(poolAddress, "putOneTknV2", [minOutAmount, autoStake], [AttachedPayment(usdtAssetId, convertedAmount)])
613579 if ($isInstanceOf(@, "Int"))
614580 then @
615581 else unit
616582 }, wrapErr("invalid putOneTknV2 result"))
617583 }
618584 else 0
619585 if ((lpAssetAmount == lpAssetAmount))
620586 then lpAssetAmount
621587 else throw("Strict value is not equal to itself.")
622588 }
623589 else throw("Strict value is not equal to itself.")
624590 }
625591 else throw("Strict value is not equal to itself.")
626592 }
627593 else unit
628594 if ((useStakingReward == useStakingReward))
629595 then {
630596 let getActions = if ((shareAssetAmountToConvert > 0))
631597 then {
632598 let price = calcPrice(lpAssetId, shareAssetId)
633599 if ((price == price))
634600 then {
635601 let unstakeAmount = toInt(fraction(toBigInt(shareAssetAmountToConvert), price, scale18BigInt, FLOOR))
636602 let baseAssetAmount = {
637603 let outAssetId = baseAssetId
638604 let minOutAmount = 0
639605 valueOrErrorMessage({
640606 let @ = invoke(poolAddress, "unstakeAndGetOneTknV2", [unstakeAmount, assetIdToString(outAssetId), minOutAmount], nil)
641607 if ($isInstanceOf(@, "Int"))
642608 then @
643609 else unit
644610 }, wrapErr("invalid unstakeAndGetOneTknV2 result"))
645611 }
646612 if ((baseAssetAmount == baseAssetAmount))
647613 then {
648614 let shareAssetBurn = if ((shareAssetInfo.issuer == this))
649615 then invoke(this, "burn", [shareAssetId, shareAssetAmountToConvert], nil)
650616 else throwErr("invalid share asset issuer")
651617 if ((shareAssetBurn == shareAssetBurn))
652618 then {
653619 let priceGet = fraction(toBigInt(baseAssetAmount), scale18BigInt, toBigInt(shareAssetAmountToConvert), FLOOR)
654620 let priceGetUpdateActions = [BinaryEntry(keyPricePeriodGet(baseAssetId, period), toBytes(priceGet)), StringEntry(keyPriceGetHistory(baseAssetId), toString(priceGet))]
655621 priceGetUpdateActions
656622 }
657623 else throw("Strict value is not equal to itself.")
658624 }
659625 else throw("Strict value is not equal to itself.")
660626 }
661627 else throw("Strict value is not equal to itself.")
662628 }
663629 else nil
664630 if ((getActions == getActions))
665631 then {
666632 let putActions = if ((baseAssetAmountToConvert > 0))
667633 then {
668634 let lpAssetAmount = {
669635 let minOutAmount = 0
670636 let autoStake = true
671637 valueOrErrorMessage({
672638 let @ = invoke(poolAddress, "putOneTknV2", [minOutAmount, autoStake], [AttachedPayment(baseAssetId, baseAssetAmountToConvert)])
673639 if ($isInstanceOf(@, "Int"))
674640 then @
675641 else unit
676642 }, wrapErr("invalid putOneTknV2 result"))
677643 }
678644 if ((lpAssetAmount == lpAssetAmount))
679645 then {
680646 let price = calcPrice(lpAssetId, shareAssetId)
681647 if ((price == price))
682648 then {
683649 let checkPrice = if ((value(toInt(price)) != 0))
684650 then true
685651 else throw("price is ZERO")
686652 if ((checkPrice == checkPrice))
687653 then {
688654 let shareAssetAmount = toInt(fraction(toBigInt(lpAssetAmount), scale18BigInt, price, FLOOR))
689655 let checkShareAssetAmount = if ((value(toInt(price)) != 0))
690656 then true
691657 else throw("shareAssetAmount is ZERO")
692658 if ((checkShareAssetAmount == checkShareAssetAmount))
693659 then {
694660 let shareAssetReissue = if ((shareAssetInfo.issuer == this))
695661 then invoke(this, "emit", [shareAssetId, shareAssetAmount], nil)
696662 else throwErr("invalid share asset issuer")
697663 if ((shareAssetReissue == shareAssetReissue))
698664 then {
699665 let pricePut = fraction(toBigInt(baseAssetAmountToConvert), scale18BigInt, toBigInt(shareAssetAmount))
700666 let pricePutUpdateActions = [BinaryEntry(keyPricePeriodPut(baseAssetId, period), toBytes(pricePut)), StringEntry(keyPricePutHistory(baseAssetId), toString(pricePut))]
701667 pricePutUpdateActions
702668 }
703669 else throw("Strict value is not equal to itself.")
704670 }
705671 else throw("Strict value is not equal to itself.")
706672 }
707673 else throw("Strict value is not equal to itself.")
708674 }
709675 else throw("Strict value is not equal to itself.")
710676 }
711677 else throw("Strict value is not equal to itself.")
712678 }
713679 else nil
714680 if ((putActions == putActions))
715681 then {
716682 let newPeriod = (period + 1)
717683 let lastPrice = calcPrice(lpAssetId, shareAssetId)
718684 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)
719685 $Tuple2(actions, toBytes(lastPrice))
720686 }
721687 else throw("Strict value is not equal to itself.")
722688 }
723689 else throw("Strict value is not equal to itself.")
724690 }
725691 else throw("Strict value is not equal to itself.")
726692 }
727693 else throw("Strict value is not equal to itself.")
728694 }
729695 else throw("Strict value is not equal to itself.")
730696 }
731697 else throw("Strict value is not equal to itself.")
732698 }
733699 else throw("Strict value is not equal to itself.")
734700 }
735701 else throw("Strict value is not equal to itself.")
736702 }
737703 else throw("Strict value is not equal to itself.")
738704 }
739705
740706
741707 @Verifier(tx)
742708 func verify () = {
743709 let targetPublicKey = match managerPublicKeyOrUnit() {
744710 case pk: ByteVector =>
745711 pk
746712 case _: Unit =>
747713 tx.senderPublicKey
748714 case _ =>
749715 throw("Match error")
750716 }
751717 sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)
752718 }
753719

github/deemru/w8io/169f3d6 
117.44 ms