Build
Architecture
contracts
contracts
evm
tools
ZetaTokenConsumerTrident.strategy.sol
Contract.zetatokenconsumertrident

Git Source (opens in a new tab)

Inherits: ZetaTokenConsumer, ZetaTokenConsumerTridentErrors

Trident strategy for ZetaTokenConsumer

MAX_DEADLINE

uint256 internal constant MAX_DEADLINE = 200;

WETH9Address

address internal immutable WETH9Address;

zetaToken

address public immutable zetaToken;

tridentRouter

IPoolRouter public immutable tridentRouter;

poolFactory

ConcentratedLiquidityPoolFactory public immutable poolFactory;

_locked

bool internal _locked;

constructor

constructor(address zetaToken_, address uniswapV3Router_, address WETH9Address_, address poolFactory_);

nonReentrant

modifier nonReentrant();

receive

receive() external payable;

getPair

function getPair(address token0, address token1) internal pure returns (address, address);

getZetaFromEth

function getZetaFromEth(address destinationAddress, uint256 minAmountOut) external payable override returns (uint256);

getZetaFromToken

function getZetaFromToken(
    address destinationAddress,
    uint256 minAmountOut,
    address inputToken,
    uint256 inputTokenAmount
) external override returns (uint256);

getEthFromZeta

function getEthFromZeta(address destinationAddress, uint256 minAmountOut, uint256 zetaTokenAmount)
    external
    override
    returns (uint256);

getTokenFromZeta

function getTokenFromZeta(
    address destinationAddress,
    uint256 minAmountOut,
    address outputToken,
    uint256 zetaTokenAmount
) external override nonReentrant returns (uint256);

hasZetaLiquidity

function hasZetaLiquidity() external view override returns (bool);