Contracts

LendingPool

The USDG supply/borrow market. Tracks utilisation, accrues interest, and exposes the borrow and repay entry points used by depositors of any whitelisted collateral.

solidity
interface ILendingPool {
    function supply(uint256 amount) external;
    function withdraw(uint256 amount) external returns (uint256);

    function borrow(uint256 amount) external;
    function repay(uint256 amount) external returns (uint256);

    function borrowIndex() external view returns (uint256);
    function supplyIndex() external view returns (uint256);

    function utilization() external view returns (uint256);
    function borrowRate() external view returns (uint256);
    function supplyRate() external view returns (uint256);
}