IRCLBorrowers
Last updated
Last updated
Borrow funds from the pool against the order book. The to address has to have a borrowed role. It is not possible to borrow after the current loan maturity has passed
TickBorrowed event is declared in BorrowerLogic library
Parameters
Name | Type | Description |
---|---|---|
Repay borrowed funds with interest to the pool emits a {Repaid} event and one {TickRepaid} event per repayed tick
TickRepaid event is declared in BorrowerLogic library
Emitted during a borow
Parameters
Emitted during a repayment
Parameters
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
to
address
Receiving address of the borrowed funds
amount
uint256
Amount of funds to borrow Emits a {Borrowed} event and one {TickBorrowed} event per borrowed tick
borrowedAmount
uint256
Amount of funds borrowed against the order book
fees
uint256
Total fees taken
to
address
Receiving address of the borrowed funds
repaidAmount
uint256
Total amount repaid by the borrower
fees
uint256
Total fees taken