Skip to main content
This page covers everything you need to get IFÁ Labs wired into your smart contract project. By the end, you’ll have the interface installed, the correct contract address configured for your target network, and a working oracle reference ready to use.

Install the Interface Package

The official IFÁ Labs interface package gives you the complete IIfaPriceFeed Solidity interface, all struct and event definitions, and the latest ABI — fully typed and ready to import.
Once installed, import the interface in your Solidity contracts:
If you’re using Remix IDE, you can copy the interface directly from the GitHub repository and paste it into a separate file in your project.

Contract Addresses

Use the address that matches your target network. All deployments expose an identical interface — no code changes required when moving between networks.
Always verify contract addresses against the Contract Addresses reference page and the verified source on Basescan before deploying to production. Never hardcode an address from an unofficial source.

Configure Your Contract

Declare the oracle as an immutable constant. This is the most gas-efficient pattern and prevents the address from being changed after deployment.
Declaring asset IDs as bytes32 constant eliminates runtime keccak256 computation on every call. For a contract that reads prices frequently, this adds up to meaningful gas savings over time.

Interface Overview

Here’s what the IIfaPriceFeed interface exposes:
All functions are view — read-only, no gas cost when called externally, and safe to call from any context without side effects.

Environment-Based Address Management

If you’re working across multiple networks, manage addresses cleanly rather than manually swapping constants:

Checklist Before Moving On

Before proceeding to reading prices, confirm the following:
1

Interface installed

ifapricefeed-interface is in your package.json dependencies or Foundry libs.
2

Correct network address

You’re using the right contract address for your target network — mainnet or testnet.
3

Asset IDs declared as constants

All asset IDs you need are declared as bytes32 constant in your contract.
4

Import confirmed

import "ifapricefeed-interface/IIfaPriceFeed.sol" resolves without errors in your compiler.

Next Steps

Read Latest Price

Start reading live stablecoin prices from your contract.

Contract Addresses

Full reference for all deployed addresses across every supported network.