Skip to content

Commit

Permalink
Merge branch 'suite' into fix/checksum-addresses-wallet-ui
Browse files Browse the repository at this point in the history
  • Loading branch information
aeddaqqa authored Jul 5, 2024
2 parents 552b9a5 + a6d744c commit 3349c8e
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 3349c8e

Please sign in to comment.