Interfaces

Complete reference of all Fira Protocol Solidity interfaces, grouped by module, with key function signatures and type definitions.

All interfaces live in src/interfaces/. They are the canonical reference for integrators.

FW (Fira Wrapped)

IFiraWrappedStandardized

The yield-bearing wrapper token (e.g. USDCFW wrapping USDC into a SisuVault).

function deposit(address receiver, address tokenIn, uint256 amountTokenToDeposit, uint256 minSharesOut)
    external payable returns (uint256 amountSharesOut);

function redeem(address receiver, uint256 amountSharesToRedeem, address tokenOut, uint256 minTokenOut, bool burnFromInternalBalance)
    external returns (uint256 amountTokenOut);

function exchangeRate() external view returns (uint256);
function previewDeposit(address tokenIn, uint256 amountTokenToDeposit) external view returns (uint256);
function previewRedeem(address tokenOut, uint256 amountSharesToRedeem) external view returns (uint256);
function claimRewards(address user) external returns (uint256[] memory);
function accruedRewards(address user) external view returns (uint256[] memory);
function getTokensIn() external view returns (address[] memory);
function getTokensOut() external view returns (address[] memory);
function assetInfo() external view returns (AssetType, address, uint8);

Market

IPMarket

The BT/FW AMM pool. Also an ERC-20 (LP token).

IPMarketFactoryV3

IPMarketSwapCallback

Implement this if calling FiraMarket swap functions directly (not via Router).

Yield contracts

IBondToken

Fixed-rate principal token. ERC-20 with restricted mint/burn.

IBCToken (CouponToken)

Floating-yield token with interest accrual. Inherits IPInterestManagerCT.

IBCContractFactory

Router facets

IPActionSwapBTV3

IPActionSwapCTV3

IPActionAddRemoveLiqV3

IPActionMiscV3

IPActionBorrow

IPActionSimple

On-chain approximation variants that avoid the need for off-chain ApproxParams computation.

Shared types (IPAllActionTypeV3)

Utility interfaces

IRehypothecationModule

ILiquidityInjector

IOracle

Last updated