Skip to content

Commit

Permalink
Merge pull request #69 from RealToken-Community/feat-fully-rented-apr…
Browse files Browse the repository at this point in the history
…-vefa

feat: fullyRentedAPR: manage VEFA properties
  • Loading branch information
AlexRLT authored Aug 26, 2024
2 parents 34f6157 + 3a833bf commit ddedfb8
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/hooks/useFullyRentedAPR.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,21 @@ import {
} from 'src/types/RentCalculation'

const fullyRentedAPREstimation = (token: UserRealtoken) => {
// Case of fully rented property
// VEFA properties
if (token.shortName === 'Playa Caracol Cottage 10' && !token.hasTenants)
return 10.77
else if (token.shortName === 'Playa Caracol 303300' && !token.hasTenants)
return 10.69
else if (token.shortName === 'Playa Caracol 303200' && !token.hasTenants)
return 10.8
else if (token.shortName === 'PH Pinoalto A002' && !token.hasTenants)
return 10.11
else if (token.shortName === 'PH Pinoalto A003' && !token.hasTenants)
return 10.11
else if (token.shortName === 'Vervana T1 ' && !token.hasTenants) return 11.33

if (token.rentedUnits === token.totalUnits) {
// Case of fully rented property
return token.annualPercentageYield
}

Expand Down

0 comments on commit ddedfb8

Please sign in to comment.