Rent Payments
Last updated
Last updated
Payment confirmed:
1. Rent split calculated (equity + treasury)
2. EQTBLT minted (7-12% of rent)
3. EQTBLT sent to your wallet
4. Remaining rent to treasury
5. Payment recorded on-chainfunction payRent(uint256 leaseId) external nonReentrant1. payRent(leaseId) called
2. Contract checks lease active
3. Calculates: baseRent + lateFee (if any)
4. Transfers USDC from renter
5. Calculates: equityPortion = rent Γ rate / 10000
6. Mints EQTBLT to renter
7. Transfers remaining to treasury
8. Emits RentPaid eventevent RentPaid(
uint256 indexed leaseId,
address indexed renter,
uint256 amount,
uint256 equityPortion,
uint256 eqtbltMinted
);
event LateFeeApplied(
uint256 indexed leaseId,
uint256 feeAmount
);const { baseRent, lateFee, total, isLate } =
await rentalContract.getRentDue(leaseId);
console.log(`Due: $${total / 1e6}`);
console.log(`Late: ${isLate}`);