Maple
Search…
⌃K

Liquidity Locker

LiquidityLocker holds custody of Liquidity Asset tokens for a given Pool.

Constructor

constructor(
address _liquidityAsset,
address _pool
);

Parameters:

Index
Name
Type
Internal Type
Description
0
_liquidityAsset
address
address
1
_pool
address
address

Functions

fundLoan

Funds a Loan using available assets in this LiquidityLocker. Only the Pool can call this function.
function fundLoan(
address loan,
address debtLocker,
uint256 amount
)
nonpayable;

Parameters:

Index
Name
Type
Internal Type
Description
0
loan
address
address
The Loan to fund.
1
debtLocker
address
address
The DebtLocker that will escrow debt tokens.
2
amount
uint256
uint256
The amount of Liquidity Asset to fund the Loan for.

liquidityAsset [state variable]

The Liquidity Asset which this LiquidityLocker will escrow.
function liquidityAsset()
view
returns (
address
);

Return Values:

Index
Name
Type
Internal Type
Description
0
address
address

pool [state variable]

The Pool contract address that owns this LiquidityLocker.
function pool()
view
returns (
address
);

Return Values:

Index
Name
Type
Internal Type
Description
0
address
address

transfer

Transfers amount of Liquidity Asset to a destination account. Only the Pool can call this function.
function transfer(
address dst,
uint256 amt
)
nonpayable;

Parameters:

Index
Name
Type
Internal Type
Description
0
dst
address
address
The destination to transfer Liquidity Asset to.
1
amt
uint256
uint256
The amount of Liquidity Asset to transfer.