Skip to content

Commit

Permalink
Merge pull request #84 from RealToken-Community/vefa-current-time-not…
Browse files Browse the repository at this point in the history
…-started

fix: APY fully rented for proterties before start rent day
  • Loading branch information
AlexRLT authored Sep 1, 2024
2 parents 183bbcd + 7eff0d3 commit 873c56f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useFullyRentedAPR.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export const useFullyRentedAPR = (token: UserRealtoken) => {

const fullyRentedAPR = useMemo(() => {
const isDisabled = APRDisabled(rentCalculation, token)
if (isDisabled && !isVEFA(token)) return 0
if (isDisabled) return 0
return fullyRentedAPREstimation(token, rentCalculation)
}, [token, rentCalculation])

Expand Down

0 comments on commit 873c56f

Please sign in to comment.