CurrencySettler
Title: CurrencySettler
Production copy of v4-core's test-only CurrencySettler, using safe transfers so tokens
that return no data from transfer / transferFrom (e.g. USDT) settle correctly.
Functions
settle
Settle (pay) a currency to the PoolManager.
function settle(Currency currency, IPoolManager manager, address payer, uint256 amount, bool burn) internal;Parameters
| Name | Type | Description |
|---|---|---|
| currency | Currency | |
| manager | IPoolManager | |
| payer | address | |
| amount | uint256 | |
| burn | bool | If true, burn the payer's ERC-6909 claims instead of transferring tokens. |
take
Take (receive) a currency from the PoolManager.
function take(Currency currency, IPoolManager manager, address recipient, uint256 amount, bool claims) internal;Parameters
| Name | Type | Description |
|---|---|---|
| currency | Currency | |
| manager | IPoolManager | |
| recipient | address | |
| amount | uint256 | |
| claims | bool | If true, mint ERC-6909 claims instead of transferring tokens. |