ILPWhitelist
This is an optional component. If present it controls which Liquidity Providers can deposit or transfer their eTokens.
Each eToken has a whitelist
parameter that if not null, points to a contract following this interface. Several eTokens can share the same whitelist contract or they can different ones.
External Methods
acceptsDeposit
Indicates whether or not a liquidity provider can do a deposit in an eToken.
etoken
contract IEToken
The eToken (see {EToken}) where the provider wants to deposit money.
provider
address
The address of the liquidity provider (user) that wants to deposit
amount
uint256
The amount of the deposit
[0]
bool
true if provider
deposit is accepted, false if not
acceptsTransfer
Indicates whether or not the eTokens can be transferred from providerFrom
to providerTo
etoken
contract IEToken
The eToken (see {EToken}) that the LPs have the intention to transfer.
providerFrom
address
The current owner of the tokens
providerTo
address
The destination of the tokens if the transfer is accepted
amount
uint256
The amount of tokens to be transferred
[0]
bool
true if the transfer operation is accepted, false if not.
Last updated