project screenshot 1
project screenshot 2
project screenshot 3
project screenshot 4
project screenshot 5

FlareX Streams

🚀 Introducing FtsoV2FeedConsumer on Flare Network! Our dApp integrates LayerZero for cross-chain price feeds, leveraging decentralized oracles to deliver accurate and timely data. Secure, scalable, and cost-effective. Perfect for DeFi and beyond!

FlareX Streams

Created At

ETHGlobal Brussels

Winner of

Blockscout - Best use of Blockscout Block Explorer

Prize Pool

Project Description

Project Overview The FtsoV2FeedConsumer is a decentralized application (dApp) built on the Flare Network, designed to consume and utilize price feeds from the Flare Time Series Oracle (FTSOv2) in a cross-chain environment. By integrating LayerZero, our project enables seamless and secure communication of these price feeds across different blockchain networks, unlocking new possibilities for decentralized finance (DeFi) applications.

Key Features Decentralized Price Feeds:

Utilizes FTSOv2 to fetch real-time price feeds for various assets such as FLR/USD, BTC/USD, and ETH/USD. Provides accurate and timely price data by leveraging decentralized oracles built into the Flare Network. Cross-Chain Integration with LayerZero:

Integrates LayerZero’s omnichain interoperability protocol to send and receive messages across different blockchain networks. Enables the transmission of price feed data to other chains, facilitating cross-chain DeFi applications.

How it's Made

The FtsoV2FeedConsumer project is a sophisticated blend of blockchain technologies, smart contracts, and front-end development, designed to harness decentralized data and enable cross-chain interoperability. This project leverages the Flare Network, LayerZero, Solidity, Foundry, React, and ethers.js to create a seamless and secure DeFi solution. Here are the nitty-gritty details on how it was built:

Smart Contract Development Solidity for Smart Contracts:

The core logic of the project is implemented in Solidity, a programming language designed specifically for developing smart contracts on Ethereum and EVM-compatible blockchains. The main contract, FtsoV2FeedConsumer, is designed to interact with the Flare Time Series Oracle (FTSOv2) to fetch real-time price data and communicate with LayerZero for cross-chain messaging. Flare Network Integration:

Utilized Flare’s decentralized oracles (FTSOv2) to access accurate and timely price feeds for various assets. The contract uses IFlareContractRegistry and IFastUpdater interfaces from the flare-foundry-periphery-package to interact with the FTSOv2 contracts. LayerZero Integration:

Integrated LayerZero’s endpoint and receiver interfaces to enable cross-chain communication. The contract implements the ILayerZeroReceiver interface and uses ILayerZeroEndpoint for sending and receiving messages across different blockchain networks. Functions like sendMessage and lzReceive handle the cross-chain data transfer, making the contract truly omnichain.

background image mobile

Join the mailing list

Get the latest news and updates