From 2ad6af079fb51881c43c44131ee9a34062322c41 Mon Sep 17 00:00:00 2001 From: aeddaqqa Date: Wed, 3 Jul 2024 11:13:31 +0100 Subject: [PATCH] fix(deposit): add no reward duration to the calculation --- src/components/wallet/earn/ModalDepositFunds.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/wallet/earn/ModalDepositFunds.vue b/src/components/wallet/earn/ModalDepositFunds.vue index 160661b5e..c67fde958 100644 --- a/src/components/wallet/earn/ModalDepositFunds.vue +++ b/src/components/wallet/earn/ModalDepositFunds.vue @@ -369,7 +369,8 @@ export default class ModalDepositFunds extends Vue { } let rest = this.offer.totalMaxRewardAmount.sub(this.offer.rewardedAmount) let amountLeftToDeposit = new BN( - (rest.toNumber() / (this.rewardPercent / 100)) * (this.interestRateBase / this.duration) + (rest.toNumber() / (this.rewardPercent / 100)) * + (this.interestRateBase / (this.duration - this.offer.noRewardsPeriodDuration)) ) return amountLeftToDeposit }