Skip to content

Commit

Permalink
fix(deposit): add no reward duration to the calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
aeddaqqa committed Jul 3, 2024
1 parent 05b6917 commit 2ad6af0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/wallet/earn/ModalDepositFunds.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 2ad6af0

Please sign in to comment.