Aztec fees

Aztec fees were previously listed in the l2-fees collection, but removed when Aztec’s API changed.

jaosef of the Aztec team sent me some details about the correct way to fetch data:

https://api.aztec.network/falafel-mainnet/status

enum AssetId {
ETH,
DAI,
renBTC
};

enum TxType {
DEPOSIT,
TRANSFER,
WITHDRAW_TO_WALLET,
WITHDAW_TO_CONTRACT,
ACCOUNT
};
// eth
const ethDepositFee =response.txFees[AssetId.ETH].feeConstants[TxTypes.DEPOSIT];
const ethTransferFee =response.txFees[AssetId.ETH].feeConstants[TxTypes.TRANSFER];
const ethWithdrawFee =response.txFees[AssetId.ETH].feeConstants[TxTypes.WITHDRAW_TO_WALLET];
// tokens
const tokenDepositFee =response.txFees[AssetId.DAI].feeConstants[TxTypes.DEPOSIT];
const tokenTransferFee =response.txFees[AssetId.DAI].feeConstants[TxTypes.TRANSFER];
const tokenWithdrawFee =response.txFees[AssetId.DAI].feeConstants[TxTypes.WITHDRAW_TO_WALLET];

This data just needs to be pulled and implemented in an adapter.

Just did it here:
https://cryptostats.community/discover/adapter/QmU9Dswk35NMdLHTm8ULf3t3M7jLwjqMLwNzxxHkMfFpz4

As for the swap, it is not possible to swap on Aztec at the moment.

Verified, thanks for adding this!