Skip to main content

Angstrom Adapter

Contract Address: 0xb535aEB27335B91e1B5bcCbd64888bA7574eFBF8 Github: https://github.com/SorellaLabs/angstrom/blob/main/contracts/src/periphery/AngstromAdapter.sol

Usage

/// Angstrom Adapter swap()
function swap(
PoolKey calldata key,
bool zeroForOne,
uint128 amountIn,
uint128 minAmountOut,
Attestation[] calldata bundle,
address recipient,
uint256 deadline
) external returns (uint256 amountOut);

Using Multiple Bundle/Unlock Attestations

The Angstrom Adapter has the capability to receive multiple attestations for multiple blocks. The _selectAttestation() is used in the contract to select the one corresponding to the valid block. The usage stems from the multiple unlock attestations that can be received from the Attestations API. This will help guarantee multi-block validity.