Utils

Smart contract utils utilities and implementations

import "@openzeppelin/src/utils/CurrencySettler.sol";

Library used to interact with the PoolManager to settle any open deltas. To settle a positive delta (a credit to the user), a user may take or mint. To settle a negative delta (a debt on the user), a user may transfer or burn to pay off a debt.

Based on the Uniswap v4 test utils implementation.

NOTE: Deltas are synced before any ERC-20 transfers in CurrencySettler.settle function.

settle(Currency currency, contract IPoolManager poolManager, address payer, uint256 amount, bool burn)

internal

#

take(Currency currency, contract IPoolManager poolManager, address recipient, uint256 amount, bool claims)

internal

#

On this page