A PalLoan is created by a PalPool for every user’s Borrow. This contract holds the amount of tokens to borrow, and delegates the voting power to the borrower.
This contract is a clone of a given Delegator, giving it access to the delegation logic adapted to the token it holds.
The methods of the PalLoan are only available for the PalPool that created it.
Some storage values can be fetched :
underlying() -> underlying ERC20 held by the contract
amount() -> amount of underlying token borrowed (& held in the contract)
borrower() -> address of the borrower to delegate power to.
motherPool() -> address of the PalPool that created the contract
feesAmount() -> amount of fees paid by the borrower (& held in the contract)