IAllowanceHolder
Author: Ultrasound Labs
Interface for AllowanceHolder contracts which can pull tokens from an owner according to an
allowance granted off-chain (e.g. via ERC-20 permit).
Functions
pull
Transfers amount of token() from the owner() directly to subaccount.
Can only be called by allowanceManager().
function pull(address subaccount, uint256 amount) external;
Parameters
| Name | Type | Description |
|---|---|---|
subaccount | address | The recipient Safe (subaccount). |
amount | uint256 | Amount of tokens to transfer. |
owner
Returns the token owner whose funds can be pulled.
function owner() external view returns (address ownerAddr);
Returns
| Name | Type | Description |
|---|---|---|
ownerAddr | address | The owner address. |
token
Returns the ERC-20 token managed by this holder.
function token() external view returns (address tokenAddr);
Returns
| Name | Type | Description |
|---|---|---|
tokenAddr | address | The ERC-20 token address. |
allowanceManager
Returns the AllowanceManager that is authorised to call pull.
function allowanceManager() external view returns (address manager);
Returns
| Name | Type | Description |
|---|---|---|
manager | address | The manager address. |