tx · 2LTc4ktSWPxw6eYsLdCjMxgkDVmckBbHiHUA9qVpt7jh

3N4QFkEYPsR9D54c1pHRQzqRARjubXcbGuA:  -0.02700000 Waves

2023.07.06 11:57 [2653839] smart account 3N4QFkEYPsR9D54c1pHRQzqRARjubXcbGuA > SELF 0.00000000 Waves

{ "type": 13, "id": "2LTc4ktSWPxw6eYsLdCjMxgkDVmckBbHiHUA9qVpt7jh", "fee": 2700000, "feeAssetId": null, "timestamp": 1688633882060, "version": 1, "sender": "3N4QFkEYPsR9D54c1pHRQzqRARjubXcbGuA", "senderPublicKey": "8nr9XxGKmrRg6E6Zss6YPynBYEFbCf39Z2D9WvVuUgzY", "proofs": [ "55LSfuUp6bLFihhmefYv5oFsvDq1dt7VXysstT1NQe3jZQZWo4NkLeknpccUSG6zm1uuHYDtw8Bnf9rNekRTayvX" ], "script": "base64:BwIxCAISAwoBAhIGCgQCAQEBEgUKAwEBARIDCgECEgMKAQISBAoCAgISBAoCAgISAwoBAiwAA1NFUAICX18ADUNPTlRSQUNUX05BTUUCD2NhbGN1bGF0b3IucmlkZQAGU0NBTEU4AIDC1y8AB1BFTkRJTkcCB1BFTkRJTkcACEZJTklTSEVEAghGSU5JU0hFRAAFV0FWRVMCBVdBVkVTAQd3cmFwRXJyAQFzCQCsAgIJAKwCAgUNQ09OVFJBQ1RfTkFNRQICOiAFAXMBCHRocm93RXJyAQFzCQACAQkBB3dyYXBFcnIBBQFzAQ9hc3NldElkVG9TdHJpbmcBB2Fzc2V0SWQEByRtYXRjaDAFB2Fzc2V0SWQDCQABAgUHJG1hdGNoMAIKQnl0ZVZlY3RvcgQBYgUHJG1hdGNoMAkA2AQBBQFiAwkAAQIFByRtYXRjaDACBFVuaXQFBVdBVkVTCQACAQILTWF0Y2ggZXJyb3IBA2FicwEBbgMJAGYCAAAFAW4JAQEtAQUBbgUBbgERa2V5RmFjdG9yeUFkZHJlc3MACQC5CQIJAMwIAgICJXMJAMwIAgIHZmFjdG9yeQUDbmlsBQN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ted Prev: GKDAgiqcoXDDhesSaVU28Xn1gsSCgpMhmRopUXVJQSzU Next: Fmk17va81cA8ffFnFAvcFabPoAfSrdAH5SUnak4Cf5y3 Diff:
OldNewDifferences
231231 }
232232
233233
234+func finalizeINTERNAL (newTreasuryVolumeInWaves,pwrManagersBonusInWaves,treasuryVolumeDiffAllocationCoef) = {
235+ let donatedWavesAmount = valueOrElse(getInteger(factoryAddressOrFail, keyDonated(unit)), 0)
236+ let investedWavesAmount = valueOrElse(getInteger(factoryAddressOrFail, keyInvested(unit)), 0)
237+ let currentTreasuryVolumeInWaves = (donatedWavesAmount + investedWavesAmount)
238+ let profitRaw = (newTreasuryVolumeInWaves - currentTreasuryVolumeInWaves)
239+ let pwrManagersBonusAmount = if (if ((profitRaw >= pwrManagersBonusInWaves))
240+ then true
241+ else (pwrManagersBonusInWaves == 0))
242+ then pwrManagersBonusInWaves
243+ else throwErr("power bonus is more than profit")
244+ let profit = (profitRaw - pwrManagersBonusAmount)
245+ let donationPart = if ((currentTreasuryVolumeInWaves > 0))
246+ then fraction(donatedWavesAmount, SCALE8, currentTreasuryVolumeInWaves)
247+ else 0
248+ let donationProfitPartRaw = fraction(profit, donationPart, SCALE8)
249+ let investmentProfitPartRaw = (profit - donationProfitPartRaw)
250+ let treasuryVolumeDiffAllocationCoefAbs = abs(treasuryVolumeDiffAllocationCoef)
251+ let amountToDonation = fraction(investmentProfitPartRaw, if ((0 > treasuryVolumeDiffAllocationCoef))
252+ then treasuryVolumeDiffAllocationCoefAbs
253+ else 0, SCALE8)
254+ let amountToInvestment = fraction(donationProfitPartRaw, if ((treasuryVolumeDiffAllocationCoef > 0))
255+ then treasuryVolumeDiffAllocationCoefAbs
256+ else 0, SCALE8)
257+ let donationProfitPart = ((donationProfitPartRaw - amountToInvestment) + amountToDonation)
258+ let investmentProfitPart = ((investmentProfitPartRaw - amountToDonation) + amountToInvestment)
259+ let donatedWavesAmountNewRaw = (donatedWavesAmount + donationProfitPart)
260+ let investedWavesAmountNewRaw = (investedWavesAmount + investmentProfitPart)
261+ let donatedPartDebt = min([0, donatedWavesAmountNewRaw])
262+ let investedPartDebt = min([0, investedWavesAmountNewRaw])
263+ let donatedWavesAmountNew = (max([0, donatedWavesAmountNewRaw]) + investedPartDebt)
264+ let investedWavesAmountNew = (max([0, investedWavesAmountNewRaw]) + donatedPartDebt)
265+ let lpAssetQuantity = valueOrErrorMessage(assetInfo(lpAssetIdOrFail), wrapErr("invalid lpAsset info")).quantity
266+ let newPrice = fraction(investedWavesAmountNew, SCALE8, lpAssetQuantity)
267+ let checkIfPriceNotZero = if ((newPrice != 0))
268+ then true
269+ else throwErr("LP price cannot be 0")
270+ if ((checkIfPriceNotZero == checkIfPriceNotZero))
271+ then {
272+ let lpAssetAmountToBurn = valueOrElse(getInteger(factoryAddressOrFail, keyWithdrawal()), 0)
273+ let paymentAmountMin = max([0, fraction(lpAssetAmountToBurn, newPrice, SCALE8)])
274+ let finalInvestedWavesAmount = (investedWavesAmountNew - paymentAmountMin)
275+ let lpAssetFinalQuantity = (lpAssetQuantity - lpAssetAmountToBurn)
276+ $Tuple6(paymentAmountMin, finalInvestedWavesAmount, donatedWavesAmountNew, newPrice, lpAssetAmountToBurn, lpAssetFinalQuantity)
277+ }
278+ else throw("Strict value is not equal to itself.")
279+ }
280+
281+
234282 @Callable(i)
235283 func claimLP (userAddressBytes) = {
236284 let checkCaller = onlyFactory(i)
275323 else throwErr("invalid treasury volume diff allocation coefficient")]
276324 if ((checks == checks))
277325 then {
278- let donatedWavesAmount = valueOrElse(getInteger(factoryAddressOrFail, keyDonated(unit)), 0)
279- let investedWavesAmount = valueOrElse(getInteger(factoryAddressOrFail, keyInvested(unit)), 0)
280- let currentTreasuryVolumeInWaves = (donatedWavesAmount + investedWavesAmount)
281- let profitRaw = (newTreasuryVolumeInWaves - currentTreasuryVolumeInWaves)
282- let pwrManagersBonusAmount = if (if ((profitRaw > 0))
283- then (profitRaw >= pwrManagersBonusInWaves)
284- else false)
285- then pwrManagersBonusInWaves
286- else throwErr("power bonus is more than profit")
287- let profit = (profitRaw - pwrManagersBonusAmount)
288- let donationPart = if ((currentTreasuryVolumeInWaves > 0))
289- then fraction(donatedWavesAmount, SCALE8, currentTreasuryVolumeInWaves)
290- else 0
291- let donationProfitPartRaw = fraction(profit, donationPart, SCALE8)
292- let investmentProfitPartRaw = (profit - donationProfitPartRaw)
293- let treasuryVolumeDiffAllocationCoefAbs = abs(treasuryVolumeDiffAllocationCoef)
294- let amountToDonation = fraction(investmentProfitPartRaw, if ((0 > treasuryVolumeDiffAllocationCoef))
295- then treasuryVolumeDiffAllocationCoefAbs
296- else 0, SCALE8)
297- let amountToInvestment = fraction(donationProfitPartRaw, if ((treasuryVolumeDiffAllocationCoef > 0))
298- then treasuryVolumeDiffAllocationCoefAbs
299- else 0, SCALE8)
300- let donationProfitPart = ((donationProfitPartRaw - amountToInvestment) + amountToDonation)
301- let investmentProfitPart = ((investmentProfitPartRaw - amountToDonation) + amountToInvestment)
302- let donatedWavesAmountNewRaw = (donatedWavesAmount + donationProfitPart)
303- let investedWavesAmountNewRaw = (investedWavesAmount + investmentProfitPart)
304- let donatedPartDebt = min([0, donatedWavesAmountNewRaw])
305- let investedPartDebt = min([0, investedWavesAmountNewRaw])
306- let donatedWavesAmountNew = (max([0, donatedWavesAmountNewRaw]) + investedPartDebt)
307- let investedWavesAmountNew = (max([0, investedWavesAmountNewRaw]) + donatedPartDebt)
326+ let $t01028210543 = finalizeINTERNAL(newTreasuryVolumeInWaves, pwrManagersBonusInWaves, treasuryVolumeDiffAllocationCoef)
327+ let paymentAmountMin = $t01028210543._1
328+ let finalInvestedWavesAmount = $t01028210543._2
329+ let donatedWavesAmountNew = $t01028210543._3
330+ let newPrice = $t01028210543._4
331+ let lpAssetAmountToBurn = $t01028210543._5
332+ let lpAssetFinalQuantity = $t01028210543._6
308333 let newPeriod = (currentPeriodOrFail + 1)
309- let lpAssetQuantity = valueOrErrorMessage(assetInfo(lpAssetIdOrFail), wrapErr("invalid lpAsset info")).quantity
310- let newPrice = fraction(investedWavesAmountNew, SCALE8, lpAssetQuantity)
311- let checkIfPriceNotZero = if ((newPrice != 0))
334+ let paymentOption = if ((size(i.payments) > 0))
335+ then i.payments[0]
336+ else unit
337+ let paymentAmount = value(paymentOption).amount
338+ let paymentAssetId = value(paymentOption).assetId
339+ let checkPayment = if (if ((paymentAmountMin == 0))
312340 then true
313- else throwErr("LP price cannot be 0")
314- if ((checkIfPriceNotZero == checkIfPriceNotZero))
341+ else if (if ((paymentOption != unit))
342+ then (paymentAssetId == unit)
343+ else false)
344+ then (paymentAmount >= paymentAmountMin)
345+ else false)
346+ then true
347+ else throwErr(("invalid payments, payment amount min: " + toString(paymentAmountMin)))
348+ if ((checkPayment == checkPayment))
315349 then {
316- let lpAssetAmountToBurn = valueOrElse(getInteger(factoryAddressOrFail, keyWithdrawal()), 0)
317- let paymentAmountMin = max([0, fraction(lpAssetAmountToBurn, newPrice, SCALE8)])
318- let paymentOption = if ((size(i.payments) > 0))
319- then i.payments[0]
320- else unit
321- let paymentAmount = value(paymentOption).amount
322- let paymentAssetId = value(paymentOption).assetId
323- let checkPayment = if (if ((paymentAmountMin == 0))
324- then true
325- else if (if ((paymentOption != unit))
326- then (paymentAssetId == unit)
327- else false)
328- then (paymentAmount >= paymentAmountMin)
329- else false)
330- then true
331- else throwErr(("invalid payments, payment amount min: " + toString(paymentAmountMin)))
332- if ((checkPayment == checkPayment))
333- then {
334- let actions = if ((paymentOption != unit))
335- then [ScriptTransfer(factoryAddressOrFail, paymentAmount, paymentAssetId)]
336- else nil
337- let factoryActions = [invoke(factoryAddressOrFail, "integerEntry", [keyPowerManagerBonus(currentPeriodOrFail), pwrManagersBonusAmount], nil), invoke(factoryAddressOrFail, "integerEntry", [keyCurrentPeriod(), newPeriod], nil), invoke(factoryAddressOrFail, "integerEntry", [keyPriceForPeriod(newPeriod), newPrice], nil), invoke(factoryAddressOrFail, "integerEntry", [keyStartHeight(newPeriod), (periodEndHeight + 1)], nil), invoke(factoryAddressOrFail, "burn", [lpAssetAmountToBurn], nil), invoke(factoryAddressOrFail, "integerEntry", [keyWithdrawal(), 0], nil), invoke(factoryAddressOrFail, "integerEntry", [keyInvested(unit), (investedWavesAmountNew - paymentAmountMin)], nil), invoke(factoryAddressOrFail, "integerEntry", [keyDonated(unit), donatedWavesAmountNew], nil)]
338- $Tuple2(actions, factoryActions)
339- }
340- else throw("Strict value is not equal to itself.")
350+ let actions = if ((paymentOption != unit))
351+ then [ScriptTransfer(factoryAddressOrFail, paymentAmount, paymentAssetId)]
352+ else nil
353+ let factoryActions = [invoke(factoryAddressOrFail, "integerEntry", [keyPowerManagerBonus(currentPeriodOrFail), pwrManagersBonusInWaves], nil), invoke(factoryAddressOrFail, "integerEntry", [keyCurrentPeriod(), newPeriod], nil), invoke(factoryAddressOrFail, "integerEntry", [keyPriceForPeriod(newPeriod), newPrice], nil), invoke(factoryAddressOrFail, "integerEntry", [keyStartHeight(newPeriod), (periodEndHeight + 1)], nil), invoke(factoryAddressOrFail, "burn", [lpAssetAmountToBurn], nil), invoke(factoryAddressOrFail, "integerEntry", [keyWithdrawal(), 0], nil), invoke(factoryAddressOrFail, "integerEntry", [keyInvested(unit), finalInvestedWavesAmount], nil), invoke(factoryAddressOrFail, "integerEntry", [keyDonated(unit), donatedWavesAmountNew], nil)]
354+ $Tuple2(actions, factoryActions)
341355 }
342356 else throw("Strict value is not equal to itself.")
343357 }
344358 else throw("Strict value is not equal to itself.")
345359 }
360+ else throw("Strict value is not equal to itself.")
361+ }
362+
363+
364+
365+@Callable(i)
366+func finalizeREADONLY (newTreasuryVolumeInWaves,pwrManagersBonusInWaves,treasuryVolumeDiffAllocationCoef) = {
367+ let currentPeriodOrFail = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyCurrentPeriod()), wrapErr("invalid period"))
368+ let periodLength = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyPeriodLength()), wrapErr("invalid period length"))
369+ let currentStartHeight = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyStartHeight(currentPeriodOrFail)), wrapErr("invalid start height"))
370+ let currentPriceOrFail = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyPriceForPeriod(currentPeriodOrFail)), wrapErr("invalid price"))
371+ let nextBlockToProcess = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyNextBlockToProcess()), wrapErr("invalid next block to process"))
372+ let periodEndHeight = ((currentStartHeight + periodLength) - 1)
373+ let checks = [if ((nextBlockToProcess > periodEndHeight))
374+ then true
375+ else throwErr("unprocessed blocks"), if ((newTreasuryVolumeInWaves >= 0))
376+ then true
377+ else throwErr("invalid new treasury volume"), if ((pwrManagersBonusInWaves >= 0))
378+ then true
379+ else throwErr("invalid PWR managers bonus"), if (if ((treasuryVolumeDiffAllocationCoef >= -(SCALE8)))
380+ then (SCALE8 >= treasuryVolumeDiffAllocationCoef)
381+ else false)
382+ then true
383+ else throwErr("invalid treasury volume diff allocation coefficient")]
384+ if ((checks == checks))
385+ then $Tuple2(nil, finalizeINTERNAL(newTreasuryVolumeInWaves, pwrManagersBonusInWaves, treasuryVolumeDiffAllocationCoef))
346386 else throw("Strict value is not equal to itself.")
347387 }
348388
359399 let payment = if ((size(i.payments) == 1))
360400 then i.payments[0]
361401 else throwErr("invalid payments")
362- let $t01199712174 = if (if ((payment.assetId == unit))
402+ let $t01421814395 = if (if ((payment.assetId == unit))
363403 then (payment.amount > 0)
364404 else false)
365405 then $Tuple2(payment.amount, payment.assetId)
366406 else throwErr("invalid payment amount")
367- let paymentAmount = $t01199712174._1
368- let paymentAssetId = $t01199712174._2
407+ let paymentAmount = $t01421814395._1
408+ let paymentAssetId = $t01421814395._2
369409 let lpAssetAmount = if ((currentPriceOrFail > 0))
370410 then fraction(paymentAmount, SCALE8, currentPriceOrFail)
371411 else 0
415455 let userAddress = Address(userAddressBytes)
416456 let withdrawalRequestOption = valueOrErrorMessage(getString(factoryAddressOrFail, keyWithdrawalRequest(userAddress, txId)), wrapErr("invalid withdrawal request"))
417457 let currentPeriodOrFail = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyCurrentPeriod()), wrapErr("invalid period"))
418- let $t01458114694 = parseWithdrawalRequestValueOrFail(withdrawalRequestOption)
419- let status = $t01458114694._1
420- let lpAssetAmount = $t01458114694._2
421- let targetPeriod = $t01458114694._3
422- let claimTxId = $t01458114694._4
458+ let $t01680216915 = parseWithdrawalRequestValueOrFail(withdrawalRequestOption)
459+ let status = $t01680216915._1
460+ let lpAssetAmount = $t01680216915._2
461+ let targetPeriod = $t01680216915._3
462+ let claimTxId = $t01680216915._4
423463 let checks = [if ((status == PENDING))
424464 then true
425465 else throwErr("invalid withdrawal request status"), if ((targetPeriod > currentPeriodOrFail))
450490 let userAddress = Address(userAddressBytes)
451491 let currentPeriodOrFail = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyCurrentPeriod()), wrapErr("invalid period"))
452492 let withdrawalRequestOption = valueOrErrorMessage(getString(factoryAddressOrFail, keyWithdrawalRequest(userAddress, txId)), wrapErr("invalid withdrawal request"))
453- let $t01602616139 = parseWithdrawalRequestValueOrFail(withdrawalRequestOption)
454- let status = $t01602616139._1
455- let lpAssetAmount = $t01602616139._2
456- let targetPeriod = $t01602616139._3
457- let claimTxId = $t01602616139._4
493+ let $t01824718360 = parseWithdrawalRequestValueOrFail(withdrawalRequestOption)
494+ let status = $t01824718360._1
495+ let lpAssetAmount = $t01824718360._2
496+ let targetPeriod = $t01824718360._3
497+ let claimTxId = $t01824718360._4
458498 if ((status == FINISHED))
459499 then throwErr("invalid withdrawal request status")
460500 else if ((targetPeriod > currentPeriodOrFail))
515555 let factoryActionsSingle = [invoke(factoryAddressOrFail, "stringEntry", [keyBlockProcessed(targetBlockHeight), makeString([toBase58String(i.transactionId), toString(currentPeriodOrFail), toString(generator), toBase58String(userAddressBytes), toString(treasuryRewardOrFail), toString(callerReward), toString(lpAssetAmount)], SEP)], nil), invoke(factoryAddressOrFail, "integerEntry", [keyAvailable(generator), (available + lpAssetAmount)], nil)]
516556 if ((factoryActionsSingle == factoryActionsSingle))
517557 then {
518- let $t02037520408 = acc
519- let lpAssetAcc = $t02037520408._1
520- let rewardAcc = $t02037520408._2
558+ let $t02259622629 = acc
559+ let lpAssetAcc = $t02259622629._1
560+ let rewardAcc = $t02259622629._2
521561 $Tuple2((lpAssetAcc + lpAssetAmount), (rewardAcc + treasuryRewardOrFail))
522562 }
523563 else throw("Strict value is not equal to itself.")
524564 }
525565
526566 let list = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39]
527- let $t02067520751 = {
567+ let $t02289622972 = {
528568 let $l = list
529569 let $s = size($l)
530570 let $acc0 = $Tuple2(0, 0)
538578
539579 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40)
540580 }
541- if (($t02067520751 == $t02067520751))
581+ if (($t02289622972 == $t02289622972))
542582 then {
543- let rewardAmountTotal = $t02067520751._2
544- let lpAssetAmountTotal = $t02067520751._1
583+ let rewardAmountTotal = $t02289622972._2
584+ let lpAssetAmountTotal = $t02289622972._1
545585 let rewardToMainTreasuryAmount = (rewardAmountTotal - blockProcessingReward)
546586 let invested = valueOrElse(getInteger(factoryAddressOrFail, keyInvested(unit)), 0)
547587 let actions = [invoke(factoryAddressOrFail, "reissue", [lpAssetAmountTotal], nil), invoke(factoryAddressOrFail, "integerEntry", [keyNextBlockToProcess(), (nextBlockToProcess + blocksProcessingBatchSize)], nil), invoke(factoryAddressOrFail, "transferFromProxyTreasury", [mainTreasuryAddressOrFail.bytes, rewardToMainTreasuryAmount], nil), invoke(factoryAddressOrFail, "transferFromProxyTreasury", [userAddressBytes, blockProcessingReward], nil), invoke(factoryAddressOrFail, "integerEntry", [keyInvested(unit), (invested + rewardToMainTreasuryAmount)], nil)]
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 7 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let SEP = "__"
55
66 let CONTRACT_NAME = "calculator.ride"
77
88 let SCALE8 = 100000000
99
1010 let PENDING = "PENDING"
1111
1212 let FINISHED = "FINISHED"
1313
1414 let WAVES = "WAVES"
1515
1616 func wrapErr (s) = ((CONTRACT_NAME + ": ") + s)
1717
1818
1919 func throwErr (s) = throw(wrapErr(s))
2020
2121
2222 func assetIdToString (assetId) = match assetId {
2323 case b: ByteVector =>
2424 toBase58String(b)
2525 case _: Unit =>
2626 WAVES
2727 case _ =>
2828 throw("Match error")
2929 }
3030
3131
3232 func abs (n) = if ((0 > n))
3333 then -(n)
3434 else n
3535
3636
3737 func keyFactoryAddress () = makeString(["%s", "factory"], SEP)
3838
3939
4040 func keyManagerPublicKey () = makeString(["%s", "managerPublicKey"], SEP)
4141
4242
4343 func keyLpAssetId () = makeString(["%s", "lpAssetId"], SEP)
4444
4545
4646 func keyProxyTreasuryAddress () = makeString(["%s", "proxyTreasury"], SEP)
4747
4848
4949 func keyMainTreasuryAddress () = makeString(["%s", "mainTreasury"], SEP)
5050
5151
5252 func keyInvested (assetId) = makeString(["%s%s", "invested", assetIdToString(assetId)], SEP)
5353
5454
5555 func keyDonated (assetId) = makeString(["%s%s", "donated", assetIdToString(assetId)], SEP)
5656
5757
5858 func keyAvailable (userAddress) = makeString(["%s%s", "available", toString(userAddress)], SEP)
5959
6060
6161 func keyClaimed (userAddress) = makeString(["%s%s", "claimed", toString(userAddress)], SEP)
6262
6363
6464 func keyCurrentPeriod () = makeString(["%s", "currentPeriod"], SEP)
6565
6666
6767 func keyPriceForPeriod (period) = makeString(["%s%d", "price", toString(period)], SEP)
6868
6969
7070 func keyStartHeight (period) = makeString(["%s%d", "startHeight", toString(period)], SEP)
7171
7272
7373 func keyPowerManagerBonus (period) = makeString(["%s%d", "powerManagerBonus", toString(period)], SEP)
7474
7575
7676 func keyPeriodLength () = "%s__periodLength"
7777
7878
7979 func keyBlockProcessingReward () = "%s__blockProcessingReward"
8080
8181
8282 func keyNextBlockToProcess () = "%s__nextBlockToProcess"
8383
8484
8585 func keyBlockProcessed (height) = makeString(["%s%d", "blockProcessed", toString(height)], SEP)
8686
8787
8888 func keyWithdrawal () = "%s__withdrawal"
8989
9090
9191 func keyWithdrawalRequest (userAddress,txId) = makeString(["%s%s%s", "withdrawal", toString(userAddress), toBase58String(txId)], SEP)
9292
9393
9494 func valueWithdrawalRequest (status,lpAssetAmount,targetPeriod,claimTxId) = {
9595 let claimTxIdStr = match claimTxId {
9696 case b: ByteVector =>
9797 toBase58String(b)
9898 case _: Unit =>
9999 "SOON"
100100 case _ =>
101101 throw("Match error")
102102 }
103103 makeString(["%s%d%d%s", status, toString(lpAssetAmount), toString(targetPeriod), claimTxIdStr], SEP)
104104 }
105105
106106
107107 func parseWithdrawalRequestValueOrFail (s) = {
108108 let parts = split(s, SEP)
109109 if ((size(parts) == 5))
110110 then {
111111 let status = parts[1]
112112 let lpAssetAmount = valueOrErrorMessage(parseInt(parts[2]), wrapErr("invalid lpAssetAmount"))
113113 let targetPeriod = valueOrErrorMessage(parseInt(parts[3]), wrapErr("invalid targetPeriod"))
114114 let claimTxId = parts[4]
115115 $Tuple4(status, lpAssetAmount, targetPeriod, claimTxId)
116116 }
117117 else throwErr("invalid withdrawal request value")
118118 }
119119
120120
121121 let factoryAddressOption = match getString(this, keyFactoryAddress()) {
122122 case s: String =>
123123 addressFromString(s)
124124 case _: Unit =>
125125 unit
126126 case _ =>
127127 throw("Match error")
128128 }
129129
130130 let factoryAddressOrFail = valueOrErrorMessage(factoryAddressOption, wrapErr("invalid factory address"))
131131
132132 let lpAssetIdOption = match factoryAddressOption {
133133 case a: Address =>
134134 match getString(a, keyLpAssetId()) {
135135 case s: String =>
136136 fromBase58String(s)
137137 case _: Unit =>
138138 unit
139139 case _ =>
140140 throw("Match error")
141141 }
142142 case _: Unit =>
143143 unit
144144 case _ =>
145145 throw("Match error")
146146 }
147147
148148 let lpAssetIdOrFail = valueOrErrorMessage(lpAssetIdOption, wrapErr("invalid lpAssetId"))
149149
150150 let proxyTreasuryAddressOption = match factoryAddressOption {
151151 case a: Address =>
152152 match getString(a, keyProxyTreasuryAddress()) {
153153 case s: String =>
154154 addressFromString(s)
155155 case _: Unit =>
156156 unit
157157 case _ =>
158158 throw("Match error")
159159 }
160160 case _: Unit =>
161161 unit
162162 case _ =>
163163 throw("Match error")
164164 }
165165
166166 let proxyTreasuryAddressOrFail = valueOrErrorMessage(proxyTreasuryAddressOption, wrapErr("invalid proxy treasury address"))
167167
168168 let mainTreasuryAddressOption = match factoryAddressOption {
169169 case a: Address =>
170170 match getString(a, keyMainTreasuryAddress()) {
171171 case s: String =>
172172 addressFromString(s)
173173 case _: Unit =>
174174 unit
175175 case _ =>
176176 throw("Match error")
177177 }
178178 case _: Unit =>
179179 unit
180180 case _ =>
181181 throw("Match error")
182182 }
183183
184184 let mainTreasuryAddressOrFail = valueOrErrorMessage(mainTreasuryAddressOption, wrapErr("invalid main treasury address"))
185185
186186 func getManagerPublicKeyOrUnit () = match factoryAddressOption {
187187 case fa: Address =>
188188 match getString(fa, keyManagerPublicKey()) {
189189 case pub: String =>
190190 fromBase58String(pub)
191191 case _ =>
192192 unit
193193 }
194194 case _ =>
195195 unit
196196 }
197197
198198
199199 func onlyAddress (i,address) = if ((i.caller == address))
200200 then true
201201 else throwErr("permission denied")
202202
203203
204204 func onlyFactory (i) = onlyAddress(i, factoryAddressOrFail)
205205
206206
207207 func rewardForOption (rewards,target) = {
208208 let s = size(rewards)
209209 let $t047354760 = rewards[0]
210210 let a0 = $t047354760._1
211211 let r0 = $t047354760._2
212212 let $t047634788 = rewards[1]
213213 let a1 = $t047634788._1
214214 let r1 = $t047634788._2
215215 let $t047914816 = rewards[2]
216216 let a2 = $t047914816._1
217217 let r2 = $t047914816._2
218218 if (if ((s > 0))
219219 then (a0 == target)
220220 else false)
221221 then r0
222222 else if (if ((s > 1))
223223 then (a1 == target)
224224 else false)
225225 then r1
226226 else if (if ((s > 2))
227227 then (a2 == target)
228228 else false)
229229 then r2
230230 else unit
231231 }
232232
233233
234+func finalizeINTERNAL (newTreasuryVolumeInWaves,pwrManagersBonusInWaves,treasuryVolumeDiffAllocationCoef) = {
235+ let donatedWavesAmount = valueOrElse(getInteger(factoryAddressOrFail, keyDonated(unit)), 0)
236+ let investedWavesAmount = valueOrElse(getInteger(factoryAddressOrFail, keyInvested(unit)), 0)
237+ let currentTreasuryVolumeInWaves = (donatedWavesAmount + investedWavesAmount)
238+ let profitRaw = (newTreasuryVolumeInWaves - currentTreasuryVolumeInWaves)
239+ let pwrManagersBonusAmount = if (if ((profitRaw >= pwrManagersBonusInWaves))
240+ then true
241+ else (pwrManagersBonusInWaves == 0))
242+ then pwrManagersBonusInWaves
243+ else throwErr("power bonus is more than profit")
244+ let profit = (profitRaw - pwrManagersBonusAmount)
245+ let donationPart = if ((currentTreasuryVolumeInWaves > 0))
246+ then fraction(donatedWavesAmount, SCALE8, currentTreasuryVolumeInWaves)
247+ else 0
248+ let donationProfitPartRaw = fraction(profit, donationPart, SCALE8)
249+ let investmentProfitPartRaw = (profit - donationProfitPartRaw)
250+ let treasuryVolumeDiffAllocationCoefAbs = abs(treasuryVolumeDiffAllocationCoef)
251+ let amountToDonation = fraction(investmentProfitPartRaw, if ((0 > treasuryVolumeDiffAllocationCoef))
252+ then treasuryVolumeDiffAllocationCoefAbs
253+ else 0, SCALE8)
254+ let amountToInvestment = fraction(donationProfitPartRaw, if ((treasuryVolumeDiffAllocationCoef > 0))
255+ then treasuryVolumeDiffAllocationCoefAbs
256+ else 0, SCALE8)
257+ let donationProfitPart = ((donationProfitPartRaw - amountToInvestment) + amountToDonation)
258+ let investmentProfitPart = ((investmentProfitPartRaw - amountToDonation) + amountToInvestment)
259+ let donatedWavesAmountNewRaw = (donatedWavesAmount + donationProfitPart)
260+ let investedWavesAmountNewRaw = (investedWavesAmount + investmentProfitPart)
261+ let donatedPartDebt = min([0, donatedWavesAmountNewRaw])
262+ let investedPartDebt = min([0, investedWavesAmountNewRaw])
263+ let donatedWavesAmountNew = (max([0, donatedWavesAmountNewRaw]) + investedPartDebt)
264+ let investedWavesAmountNew = (max([0, investedWavesAmountNewRaw]) + donatedPartDebt)
265+ let lpAssetQuantity = valueOrErrorMessage(assetInfo(lpAssetIdOrFail), wrapErr("invalid lpAsset info")).quantity
266+ let newPrice = fraction(investedWavesAmountNew, SCALE8, lpAssetQuantity)
267+ let checkIfPriceNotZero = if ((newPrice != 0))
268+ then true
269+ else throwErr("LP price cannot be 0")
270+ if ((checkIfPriceNotZero == checkIfPriceNotZero))
271+ then {
272+ let lpAssetAmountToBurn = valueOrElse(getInteger(factoryAddressOrFail, keyWithdrawal()), 0)
273+ let paymentAmountMin = max([0, fraction(lpAssetAmountToBurn, newPrice, SCALE8)])
274+ let finalInvestedWavesAmount = (investedWavesAmountNew - paymentAmountMin)
275+ let lpAssetFinalQuantity = (lpAssetQuantity - lpAssetAmountToBurn)
276+ $Tuple6(paymentAmountMin, finalInvestedWavesAmount, donatedWavesAmountNew, newPrice, lpAssetAmountToBurn, lpAssetFinalQuantity)
277+ }
278+ else throw("Strict value is not equal to itself.")
279+ }
280+
281+
234282 @Callable(i)
235283 func claimLP (userAddressBytes) = {
236284 let checkCaller = onlyFactory(i)
237285 if ((checkCaller == checkCaller))
238286 then {
239287 let userAddress = Address(userAddressBytes)
240288 let available = valueOrElse(getInteger(factoryAddressOrFail, keyAvailable(userAddress)), 0)
241289 let claimed = valueOrElse(getInteger(factoryAddressOrFail, keyClaimed(userAddress)), 0)
242290 let factoryActions = if ((available > 0))
243291 then [invoke(factoryAddressOrFail, "transferAsset", [userAddressBytes, available, lpAssetIdOrFail], nil), invoke(factoryAddressOrFail, "integerEntry", [keyAvailable(userAddress), 0], nil), invoke(factoryAddressOrFail, "integerEntry", [keyClaimed(userAddress), (claimed + available)], nil)]
244292 else throwErr("nothing to claim")
245293 $Tuple2(nil, factoryActions)
246294 }
247295 else throw("Strict value is not equal to itself.")
248296 }
249297
250298
251299
252300 @Callable(i)
253301 func finalize (userAddressBytes,newTreasuryVolumeInWaves,pwrManagersBonusInWaves,treasuryVolumeDiffAllocationCoef) = {
254302 let checkCaller = onlyFactory(i)
255303 if ((checkCaller == checkCaller))
256304 then {
257305 let currentPeriodOrFail = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyCurrentPeriod()), wrapErr("invalid period"))
258306 let periodLength = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyPeriodLength()), wrapErr("invalid period length"))
259307 let currentStartHeight = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyStartHeight(currentPeriodOrFail)), wrapErr("invalid start height"))
260308 let currentPriceOrFail = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyPriceForPeriod(currentPeriodOrFail)), wrapErr("invalid price"))
261309 let nextBlockToProcess = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyNextBlockToProcess()), wrapErr("invalid next block to process"))
262310 let periodEndHeight = ((currentStartHeight + periodLength) - 1)
263311 let checks = [if ((i.originCaller == mainTreasuryAddressOrFail))
264312 then true
265313 else throwErr("permission denied"), if ((nextBlockToProcess > periodEndHeight))
266314 then true
267315 else throwErr("unprocessed blocks"), if ((newTreasuryVolumeInWaves >= 0))
268316 then true
269317 else throwErr("invalid new treasury volume"), if ((pwrManagersBonusInWaves >= 0))
270318 then true
271319 else throwErr("invalid PWR managers bonus"), if (if ((treasuryVolumeDiffAllocationCoef >= -(SCALE8)))
272320 then (SCALE8 >= treasuryVolumeDiffAllocationCoef)
273321 else false)
274322 then true
275323 else throwErr("invalid treasury volume diff allocation coefficient")]
276324 if ((checks == checks))
277325 then {
278- let donatedWavesAmount = valueOrElse(getInteger(factoryAddressOrFail, keyDonated(unit)), 0)
279- let investedWavesAmount = valueOrElse(getInteger(factoryAddressOrFail, keyInvested(unit)), 0)
280- let currentTreasuryVolumeInWaves = (donatedWavesAmount + investedWavesAmount)
281- let profitRaw = (newTreasuryVolumeInWaves - currentTreasuryVolumeInWaves)
282- let pwrManagersBonusAmount = if (if ((profitRaw > 0))
283- then (profitRaw >= pwrManagersBonusInWaves)
284- else false)
285- then pwrManagersBonusInWaves
286- else throwErr("power bonus is more than profit")
287- let profit = (profitRaw - pwrManagersBonusAmount)
288- let donationPart = if ((currentTreasuryVolumeInWaves > 0))
289- then fraction(donatedWavesAmount, SCALE8, currentTreasuryVolumeInWaves)
290- else 0
291- let donationProfitPartRaw = fraction(profit, donationPart, SCALE8)
292- let investmentProfitPartRaw = (profit - donationProfitPartRaw)
293- let treasuryVolumeDiffAllocationCoefAbs = abs(treasuryVolumeDiffAllocationCoef)
294- let amountToDonation = fraction(investmentProfitPartRaw, if ((0 > treasuryVolumeDiffAllocationCoef))
295- then treasuryVolumeDiffAllocationCoefAbs
296- else 0, SCALE8)
297- let amountToInvestment = fraction(donationProfitPartRaw, if ((treasuryVolumeDiffAllocationCoef > 0))
298- then treasuryVolumeDiffAllocationCoefAbs
299- else 0, SCALE8)
300- let donationProfitPart = ((donationProfitPartRaw - amountToInvestment) + amountToDonation)
301- let investmentProfitPart = ((investmentProfitPartRaw - amountToDonation) + amountToInvestment)
302- let donatedWavesAmountNewRaw = (donatedWavesAmount + donationProfitPart)
303- let investedWavesAmountNewRaw = (investedWavesAmount + investmentProfitPart)
304- let donatedPartDebt = min([0, donatedWavesAmountNewRaw])
305- let investedPartDebt = min([0, investedWavesAmountNewRaw])
306- let donatedWavesAmountNew = (max([0, donatedWavesAmountNewRaw]) + investedPartDebt)
307- let investedWavesAmountNew = (max([0, investedWavesAmountNewRaw]) + donatedPartDebt)
326+ let $t01028210543 = finalizeINTERNAL(newTreasuryVolumeInWaves, pwrManagersBonusInWaves, treasuryVolumeDiffAllocationCoef)
327+ let paymentAmountMin = $t01028210543._1
328+ let finalInvestedWavesAmount = $t01028210543._2
329+ let donatedWavesAmountNew = $t01028210543._3
330+ let newPrice = $t01028210543._4
331+ let lpAssetAmountToBurn = $t01028210543._5
332+ let lpAssetFinalQuantity = $t01028210543._6
308333 let newPeriod = (currentPeriodOrFail + 1)
309- let lpAssetQuantity = valueOrErrorMessage(assetInfo(lpAssetIdOrFail), wrapErr("invalid lpAsset info")).quantity
310- let newPrice = fraction(investedWavesAmountNew, SCALE8, lpAssetQuantity)
311- let checkIfPriceNotZero = if ((newPrice != 0))
334+ let paymentOption = if ((size(i.payments) > 0))
335+ then i.payments[0]
336+ else unit
337+ let paymentAmount = value(paymentOption).amount
338+ let paymentAssetId = value(paymentOption).assetId
339+ let checkPayment = if (if ((paymentAmountMin == 0))
312340 then true
313- else throwErr("LP price cannot be 0")
314- if ((checkIfPriceNotZero == checkIfPriceNotZero))
341+ else if (if ((paymentOption != unit))
342+ then (paymentAssetId == unit)
343+ else false)
344+ then (paymentAmount >= paymentAmountMin)
345+ else false)
346+ then true
347+ else throwErr(("invalid payments, payment amount min: " + toString(paymentAmountMin)))
348+ if ((checkPayment == checkPayment))
315349 then {
316- let lpAssetAmountToBurn = valueOrElse(getInteger(factoryAddressOrFail, keyWithdrawal()), 0)
317- let paymentAmountMin = max([0, fraction(lpAssetAmountToBurn, newPrice, SCALE8)])
318- let paymentOption = if ((size(i.payments) > 0))
319- then i.payments[0]
320- else unit
321- let paymentAmount = value(paymentOption).amount
322- let paymentAssetId = value(paymentOption).assetId
323- let checkPayment = if (if ((paymentAmountMin == 0))
324- then true
325- else if (if ((paymentOption != unit))
326- then (paymentAssetId == unit)
327- else false)
328- then (paymentAmount >= paymentAmountMin)
329- else false)
330- then true
331- else throwErr(("invalid payments, payment amount min: " + toString(paymentAmountMin)))
332- if ((checkPayment == checkPayment))
333- then {
334- let actions = if ((paymentOption != unit))
335- then [ScriptTransfer(factoryAddressOrFail, paymentAmount, paymentAssetId)]
336- else nil
337- let factoryActions = [invoke(factoryAddressOrFail, "integerEntry", [keyPowerManagerBonus(currentPeriodOrFail), pwrManagersBonusAmount], nil), invoke(factoryAddressOrFail, "integerEntry", [keyCurrentPeriod(), newPeriod], nil), invoke(factoryAddressOrFail, "integerEntry", [keyPriceForPeriod(newPeriod), newPrice], nil), invoke(factoryAddressOrFail, "integerEntry", [keyStartHeight(newPeriod), (periodEndHeight + 1)], nil), invoke(factoryAddressOrFail, "burn", [lpAssetAmountToBurn], nil), invoke(factoryAddressOrFail, "integerEntry", [keyWithdrawal(), 0], nil), invoke(factoryAddressOrFail, "integerEntry", [keyInvested(unit), (investedWavesAmountNew - paymentAmountMin)], nil), invoke(factoryAddressOrFail, "integerEntry", [keyDonated(unit), donatedWavesAmountNew], nil)]
338- $Tuple2(actions, factoryActions)
339- }
340- else throw("Strict value is not equal to itself.")
350+ let actions = if ((paymentOption != unit))
351+ then [ScriptTransfer(factoryAddressOrFail, paymentAmount, paymentAssetId)]
352+ else nil
353+ let factoryActions = [invoke(factoryAddressOrFail, "integerEntry", [keyPowerManagerBonus(currentPeriodOrFail), pwrManagersBonusInWaves], nil), invoke(factoryAddressOrFail, "integerEntry", [keyCurrentPeriod(), newPeriod], nil), invoke(factoryAddressOrFail, "integerEntry", [keyPriceForPeriod(newPeriod), newPrice], nil), invoke(factoryAddressOrFail, "integerEntry", [keyStartHeight(newPeriod), (periodEndHeight + 1)], nil), invoke(factoryAddressOrFail, "burn", [lpAssetAmountToBurn], nil), invoke(factoryAddressOrFail, "integerEntry", [keyWithdrawal(), 0], nil), invoke(factoryAddressOrFail, "integerEntry", [keyInvested(unit), finalInvestedWavesAmount], nil), invoke(factoryAddressOrFail, "integerEntry", [keyDonated(unit), donatedWavesAmountNew], nil)]
354+ $Tuple2(actions, factoryActions)
341355 }
342356 else throw("Strict value is not equal to itself.")
343357 }
344358 else throw("Strict value is not equal to itself.")
345359 }
360+ else throw("Strict value is not equal to itself.")
361+ }
362+
363+
364+
365+@Callable(i)
366+func finalizeREADONLY (newTreasuryVolumeInWaves,pwrManagersBonusInWaves,treasuryVolumeDiffAllocationCoef) = {
367+ let currentPeriodOrFail = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyCurrentPeriod()), wrapErr("invalid period"))
368+ let periodLength = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyPeriodLength()), wrapErr("invalid period length"))
369+ let currentStartHeight = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyStartHeight(currentPeriodOrFail)), wrapErr("invalid start height"))
370+ let currentPriceOrFail = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyPriceForPeriod(currentPeriodOrFail)), wrapErr("invalid price"))
371+ let nextBlockToProcess = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyNextBlockToProcess()), wrapErr("invalid next block to process"))
372+ let periodEndHeight = ((currentStartHeight + periodLength) - 1)
373+ let checks = [if ((nextBlockToProcess > periodEndHeight))
374+ then true
375+ else throwErr("unprocessed blocks"), if ((newTreasuryVolumeInWaves >= 0))
376+ then true
377+ else throwErr("invalid new treasury volume"), if ((pwrManagersBonusInWaves >= 0))
378+ then true
379+ else throwErr("invalid PWR managers bonus"), if (if ((treasuryVolumeDiffAllocationCoef >= -(SCALE8)))
380+ then (SCALE8 >= treasuryVolumeDiffAllocationCoef)
381+ else false)
382+ then true
383+ else throwErr("invalid treasury volume diff allocation coefficient")]
384+ if ((checks == checks))
385+ then $Tuple2(nil, finalizeINTERNAL(newTreasuryVolumeInWaves, pwrManagersBonusInWaves, treasuryVolumeDiffAllocationCoef))
346386 else throw("Strict value is not equal to itself.")
347387 }
348388
349389
350390
351391 @Callable(i)
352392 func invest (userAddressBytes) = {
353393 let checkCaller = onlyFactory(i)
354394 if ((checkCaller == checkCaller))
355395 then {
356396 let userAddress = Address(userAddressBytes)
357397 let currentPeriodOrFail = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyCurrentPeriod()), wrapErr("invalid period"))
358398 let currentPriceOrFail = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyPriceForPeriod(currentPeriodOrFail)), wrapErr("invalid price"))
359399 let payment = if ((size(i.payments) == 1))
360400 then i.payments[0]
361401 else throwErr("invalid payments")
362- let $t01199712174 = if (if ((payment.assetId == unit))
402+ let $t01421814395 = if (if ((payment.assetId == unit))
363403 then (payment.amount > 0)
364404 else false)
365405 then $Tuple2(payment.amount, payment.assetId)
366406 else throwErr("invalid payment amount")
367- let paymentAmount = $t01199712174._1
368- let paymentAssetId = $t01199712174._2
407+ let paymentAmount = $t01421814395._1
408+ let paymentAssetId = $t01421814395._2
369409 let lpAssetAmount = if ((currentPriceOrFail > 0))
370410 then fraction(paymentAmount, SCALE8, currentPriceOrFail)
371411 else 0
372412 let invested = valueOrElse(getInteger(factoryAddressOrFail, keyInvested(unit)), 0)
373413 let actions = [ScriptTransfer(mainTreasuryAddressOrFail, paymentAmount, paymentAssetId)]
374414 let factoryActions = [invoke(factoryAddressOrFail, "integerEntry", [keyInvested(unit), (invested + paymentAmount)], nil), invoke(factoryAddressOrFail, "reissue", [lpAssetAmount], nil), invoke(factoryAddressOrFail, "transferAsset", [userAddressBytes, lpAssetAmount, lpAssetIdOrFail], nil)]
375415 $Tuple2(actions, factoryActions)
376416 }
377417 else throw("Strict value is not equal to itself.")
378418 }
379419
380420
381421
382422 @Callable(i)
383423 func withdraw (userAddressBytes) = {
384424 let checkCaller = onlyFactory(i)
385425 if ((checkCaller == checkCaller))
386426 then {
387427 let userAddress = Address(userAddressBytes)
388428 let currentPeriodOrFail = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyCurrentPeriod()), wrapErr("invalid period"))
389429 let payment = if ((size(i.payments) == 1))
390430 then i.payments[0]
391431 else throwErr(wrapErr("invalid payments"))
392432 let paymentAssetId = if ((payment.assetId == lpAssetIdOrFail))
393433 then lpAssetIdOrFail
394434 else throwErr("invalid payment asset")
395435 let paymentAmount = if ((payment.amount > 0))
396436 then payment.amount
397437 else throwErr("invalid payment amount")
398438 let withdrawal = valueOrElse(getInteger(factoryAddressOrFail, keyWithdrawal()), 0)
399439 let actions = [ScriptTransfer(factoryAddressOrFail, paymentAmount, paymentAssetId)]
400440 let factoryActions = [invoke(factoryAddressOrFail, "integerEntry", [keyWithdrawal(), (withdrawal + paymentAmount)], nil), invoke(factoryAddressOrFail, "stringEntry", [keyWithdrawalRequest(userAddress, i.transactionId), valueWithdrawalRequest(PENDING, paymentAmount, (currentPeriodOrFail + 1), unit)], nil)]
401441 if ((factoryActions == factoryActions))
402442 then $Tuple2(actions, factoryActions)
403443 else throw("Strict value is not equal to itself.")
404444 }
405445 else throw("Strict value is not equal to itself.")
406446 }
407447
408448
409449
410450 @Callable(i)
411451 func cancelWithdraw (userAddressBytes,txId) = {
412452 let checkCaller = onlyFactory(i)
413453 if ((checkCaller == checkCaller))
414454 then {
415455 let userAddress = Address(userAddressBytes)
416456 let withdrawalRequestOption = valueOrErrorMessage(getString(factoryAddressOrFail, keyWithdrawalRequest(userAddress, txId)), wrapErr("invalid withdrawal request"))
417457 let currentPeriodOrFail = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyCurrentPeriod()), wrapErr("invalid period"))
418- let $t01458114694 = parseWithdrawalRequestValueOrFail(withdrawalRequestOption)
419- let status = $t01458114694._1
420- let lpAssetAmount = $t01458114694._2
421- let targetPeriod = $t01458114694._3
422- let claimTxId = $t01458114694._4
458+ let $t01680216915 = parseWithdrawalRequestValueOrFail(withdrawalRequestOption)
459+ let status = $t01680216915._1
460+ let lpAssetAmount = $t01680216915._2
461+ let targetPeriod = $t01680216915._3
462+ let claimTxId = $t01680216915._4
423463 let checks = [if ((status == PENDING))
424464 then true
425465 else throwErr("invalid withdrawal request status"), if ((targetPeriod > currentPeriodOrFail))
426466 then true
427467 else throwErr("invalid withdrawal request period")]
428468 if ((checks == checks))
429469 then {
430470 let withdrawal = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyWithdrawal()), wrapErr("invalid total withdrawal amount"))
431471 let factoryActions = [invoke(factoryAddressOrFail, "integerEntry", [keyWithdrawal(), if ((withdrawal >= lpAssetAmount))
432472 then (withdrawal - lpAssetAmount)
433473 else throwErr("invalid withdrawal amount")], nil), invoke(factoryAddressOrFail, "deleteEntry", [keyWithdrawalRequest(userAddress, txId)], nil), invoke(factoryAddressOrFail, "transferAsset", [userAddressBytes, lpAssetAmount, lpAssetIdOrFail], nil)]
434474 if ((factoryActions == factoryActions))
435475 then $Tuple2(nil, factoryActions)
436476 else throw("Strict value is not equal to itself.")
437477 }
438478 else throw("Strict value is not equal to itself.")
439479 }
440480 else throw("Strict value is not equal to itself.")
441481 }
442482
443483
444484
445485 @Callable(i)
446486 func claimWaves (userAddressBytes,txId) = {
447487 let checkCaller = onlyFactory(i)
448488 if ((checkCaller == checkCaller))
449489 then {
450490 let userAddress = Address(userAddressBytes)
451491 let currentPeriodOrFail = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyCurrentPeriod()), wrapErr("invalid period"))
452492 let withdrawalRequestOption = valueOrErrorMessage(getString(factoryAddressOrFail, keyWithdrawalRequest(userAddress, txId)), wrapErr("invalid withdrawal request"))
453- let $t01602616139 = parseWithdrawalRequestValueOrFail(withdrawalRequestOption)
454- let status = $t01602616139._1
455- let lpAssetAmount = $t01602616139._2
456- let targetPeriod = $t01602616139._3
457- let claimTxId = $t01602616139._4
493+ let $t01824718360 = parseWithdrawalRequestValueOrFail(withdrawalRequestOption)
494+ let status = $t01824718360._1
495+ let lpAssetAmount = $t01824718360._2
496+ let targetPeriod = $t01824718360._3
497+ let claimTxId = $t01824718360._4
458498 if ((status == FINISHED))
459499 then throwErr("invalid withdrawal request status")
460500 else if ((targetPeriod > currentPeriodOrFail))
461501 then throwErr("invalid withdrawal request period")
462502 else {
463503 let priceOrFail = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyPriceForPeriod(targetPeriod)), wrapErr("invalid price"))
464504 let amount = if ((priceOrFail > 0))
465505 then fraction(lpAssetAmount, priceOrFail, SCALE8)
466506 else 0
467507 let factoryActions = [invoke(factoryAddressOrFail, "stringEntry", [keyWithdrawalRequest(userAddress, txId), valueWithdrawalRequest(FINISHED, lpAssetAmount, targetPeriod, i.transactionId)], nil), invoke(factoryAddressOrFail, "transferWaves", [userAddressBytes, amount], nil)]
468508 $Tuple2(nil, factoryActions)
469509 }
470510 }
471511 else throw("Strict value is not equal to itself.")
472512 }
473513
474514
475515
476516 @Callable(i)
477517 func processBlocks (userAddressBytes) = {
478518 let checkCaller = onlyFactory(i)
479519 if ((checkCaller == checkCaller))
480520 then {
481521 let userAddress = Address(userAddressBytes)
482522 let currentPeriodOrFail = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyCurrentPeriod()), wrapErr("invalid period"))
483523 let periodLength = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyPeriodLength()), wrapErr("invalid period length"))
484524 let currentStartHeight = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyStartHeight(currentPeriodOrFail)), wrapErr("invalid start height"))
485525 let currentPriceOrFail = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyPriceForPeriod(currentPeriodOrFail)), wrapErr("invalid price"))
486526 let nextBlockToProcess = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyNextBlockToProcess()), wrapErr("invalid next block to process"))
487527 let periodEndHeight = ((currentStartHeight + periodLength) - 1)
488528 let blocksProcessingBatchSizeMax = 40
489529 let blocksProcessingBatchSize = if (if (if ((height >= nextBlockToProcess))
490530 then if ((nextBlockToProcess >= currentStartHeight))
491531 then true
492532 else (currentPeriodOrFail == 0)
493533 else false)
494534 then (periodEndHeight >= nextBlockToProcess)
495535 else false)
496536 then min([((periodEndHeight - nextBlockToProcess) + 1), blocksProcessingBatchSizeMax])
497537 else throwErr(wrapErr("invalid target block"))
498538 let blockProcessingReward = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyBlockProcessingReward()), wrapErr("invalid block processing reward"))
499539 let blockProcessingRewardByGenerator = (blockProcessingReward / blocksProcessingBatchSize)
500540 let blockProcessingRewardByGeneratorRemainder = (blockProcessingReward - (blockProcessingRewardByGenerator * blocksProcessingBatchSize))
501541 func map (acc,inc) = if ((inc >= blocksProcessingBatchSize))
502542 then acc
503543 else {
504544 let targetBlockHeight = (nextBlockToProcess + inc)
505545 let targetBlockInfo = valueOrErrorMessage(blockInfoByHeight(targetBlockHeight), wrapErr("invalid block info"))
506546 let treasuryRewardOrFail = valueOrErrorMessage(rewardForOption(targetBlockInfo.rewards, proxyTreasuryAddressOrFail), wrapErr(("invalid treasury reward for height " + toString(targetBlockHeight))))
507547 let generator = targetBlockInfo.generator
508548 let available = valueOrElse(getInteger(factoryAddressOrFail, keyAvailable(generator)), 0)
509549 let callerReward = if ((inc == (blocksProcessingBatchSize - 1)))
510550 then (blockProcessingRewardByGenerator + blockProcessingRewardByGeneratorRemainder)
511551 else blockProcessingRewardByGenerator
512552 let lpAssetAmount = if ((currentPriceOrFail > 0))
513553 then fraction((treasuryRewardOrFail - callerReward), SCALE8, currentPriceOrFail)
514554 else 0
515555 let factoryActionsSingle = [invoke(factoryAddressOrFail, "stringEntry", [keyBlockProcessed(targetBlockHeight), makeString([toBase58String(i.transactionId), toString(currentPeriodOrFail), toString(generator), toBase58String(userAddressBytes), toString(treasuryRewardOrFail), toString(callerReward), toString(lpAssetAmount)], SEP)], nil), invoke(factoryAddressOrFail, "integerEntry", [keyAvailable(generator), (available + lpAssetAmount)], nil)]
516556 if ((factoryActionsSingle == factoryActionsSingle))
517557 then {
518- let $t02037520408 = acc
519- let lpAssetAcc = $t02037520408._1
520- let rewardAcc = $t02037520408._2
558+ let $t02259622629 = acc
559+ let lpAssetAcc = $t02259622629._1
560+ let rewardAcc = $t02259622629._2
521561 $Tuple2((lpAssetAcc + lpAssetAmount), (rewardAcc + treasuryRewardOrFail))
522562 }
523563 else throw("Strict value is not equal to itself.")
524564 }
525565
526566 let list = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39]
527- let $t02067520751 = {
567+ let $t02289622972 = {
528568 let $l = list
529569 let $s = size($l)
530570 let $acc0 = $Tuple2(0, 0)
531571 func $f0_1 ($a,$i) = if (($i >= $s))
532572 then $a
533573 else map($a, $l[$i])
534574
535575 func $f0_2 ($a,$i) = if (($i >= $s))
536576 then $a
537577 else throw("List size exceeds 40")
538578
539579 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40)
540580 }
541- if (($t02067520751 == $t02067520751))
581+ if (($t02289622972 == $t02289622972))
542582 then {
543- let rewardAmountTotal = $t02067520751._2
544- let lpAssetAmountTotal = $t02067520751._1
583+ let rewardAmountTotal = $t02289622972._2
584+ let lpAssetAmountTotal = $t02289622972._1
545585 let rewardToMainTreasuryAmount = (rewardAmountTotal - blockProcessingReward)
546586 let invested = valueOrElse(getInteger(factoryAddressOrFail, keyInvested(unit)), 0)
547587 let actions = [invoke(factoryAddressOrFail, "reissue", [lpAssetAmountTotal], nil), invoke(factoryAddressOrFail, "integerEntry", [keyNextBlockToProcess(), (nextBlockToProcess + blocksProcessingBatchSize)], nil), invoke(factoryAddressOrFail, "transferFromProxyTreasury", [mainTreasuryAddressOrFail.bytes, rewardToMainTreasuryAmount], nil), invoke(factoryAddressOrFail, "transferFromProxyTreasury", [userAddressBytes, blockProcessingReward], nil), invoke(factoryAddressOrFail, "integerEntry", [keyInvested(unit), (invested + rewardToMainTreasuryAmount)], nil)]
548588 if ((actions == actions))
549589 then $Tuple2(nil, unit)
550590 else throw("Strict value is not equal to itself.")
551591 }
552592 else throw("Strict value is not equal to itself.")
553593 }
554594 else throw("Strict value is not equal to itself.")
555595 }
556596
557597
558598 @Verifier(tx)
559599 func verify () = {
560600 let publicKey = match getManagerPublicKeyOrUnit() {
561601 case pub: ByteVector =>
562602 pub
563603 case _ =>
564604 tx.senderPublicKey
565605 }
566606 sigVerify(tx.bodyBytes, tx.proofs[0], publicKey)
567607 }
568608

github/deemru/w8io/169f3d6 
87.89 ms