bifrost-platform
BIFI
Solidity

BiFi is a DeFi project by the BIFROST team.

Last updated Jun 27, 2025
27
Stars
14
Forks
2
Issues
0
Stars/day
Attention Score
21
Language breakdown
Solidity 94.3%
JavaScript 5.2%
Shell 0.4%
Dockerfile 0.1%
โ–ธ Files click to expand
README

BIFI

Description

BiFi is a decentralized finance (DeFi) project that offers a financial service, which enables users to deposit various digital assets and borrow other digital assets against the deposits as collateral. BiFi consists of Solidity smart contracts, which operates on top of EVM-compatible blockchains.

Each supported digital asset on BiFi has a dedicated Market Handler Contract ("Market Handler"). All Market Handlers are intermediated by Market Manager Contract ("Market Manager").

Service Incentive Handler ("SI Handler") manages the reward program that rewards participants (service users and operators) that contributed in the growth and operation of BiFi with Service Incentive Tokens ("SI Tokens"). Liquidation Manager Contract ("Liquidation Manager") manages the liquidation process for users whose Loan-To-Value (LTV) Ratio has exceeded a set threshold.

The BiFi components interact with each other. For example, a user may borrow up to 75% of the value of previously deposited assets, and the value of any digital asset can be expressed as the product of its amount and current price. For this user (borrowing) operation, each Market Handler provides the user balance and the Oracle contract provides the current prices of each Token. Market Manager then validates and executes the action. The user also gets a service incentive for this action; The SI Handler will provide SI Tokens when the user claims. When a price of the user token significantly decreases, the user's debt can be liquidated by anyone via the Liquidation Manager contract.

The logic contracts (Market Handler, SI Handler and Market Manager) are designed so that they can be updated without changing the data storage. Each logic contract has its own data storage contracts to store the data.

Overview

alt text

actions

  • Solidity CI

contracts

  • Solidity contracts for BiFi

migrations

  • Truffle script for testing

Description

BiFi ์„œ๋น„์Šค๋Š” ๊ฐ€์ƒํ™”ํ๋ฅผ ์˜ˆ์น˜ํ•˜์—ฌ ์ด์ž๋ฅผ ์–ป๊ฑฐ๋‚˜, ์˜ˆ์น˜๊ธˆ์„ ๋‹ด๋ณด๋กœ ๊ฐ€์ƒํ™”ํ๋ฅผ ๋Œ€์ถœํ•  ์ˆ˜ ์žˆ๋Š” DeFi ๊ธˆ์œต์„œ๋น„์Šค์ด๋‹ค. BiFi ์„œ๋น„์Šค๋Š” Solidity๋กœ ์ž‘์„ฑ๋œ Smart Contract๋กœ ๊ตฌ์„ฑ๋˜์–ด ์žˆ์œผ๋ฉฐ EVM ํ˜ธํ™˜ ๋ธ”๋ก์ฒด์ธ์—์„œ ๋™์ž‘ํ•œ๋‹ค.

BiFi๊ฐ€ ์ง€์›ํ•˜๋Š” ์—ฌ๋Ÿฌ ๊ฐ€์ƒํ™”ํ๋Š” ๊ณ ์œ ์˜ Market Handler Contract(Market Handler)๋ฅผ ๊ฐ€์ง€๊ณ  ์žˆ์œผ๋ฉฐ, ๋ชจ๋“  Market Handler Contract๋Š” Market Manager Contract(Market Manager)์— ์—ฐ๊ฒฐ๋˜์–ด Handler ๊ฐ„ ์—ฐ๊ณ„ ์ž‘์—…์ด ๊ฐ€๋Šฅํ•˜๋‹ค.

Service Incentive Handler(SI Handler)๋Š” BiFi ์„œ๋น„์Šค ์œ ์ง€์— ๊ณตํ—Œํ•œ ์ฐธ์—ฌ์ž์—๊ฒŒ BiFi Token์„ ๋ณด์ƒ์œผ๋กœ ์ง€๊ธ‰ํ•˜๊ณ , Liquidation Manager Contract(Liquidation Manager)๋Š” ์ด ์˜ˆ์น˜ ์ž์‚ฐ ๋Œ€๋น„ ์ด ๋Œ€์ถœ ์ž์‚ฐ์˜ ๋น„์œจ(LTV, Loan-To-Value)์ด ์ •ํ•ด์ง„ ์ˆ˜์ค€์„ ๋„˜๊ธด ์‚ฌ์šฉ์ž์˜ ์ž์‚ฐ์„ ์ฒญ์‚ฐํ•˜๋Š” ๊ธฐ๋Šฅ์„ ์ œ๊ณตํ•œ๋‹ค.

BiFi ์˜ ์ปดํฌ๋„ŒํŠธ๋Š” ๊ฐ๊ฐ์˜ ๊ธฐ๋Šฅ์ด ์„œ๋กœ ์ƒํ˜ธ์ž‘์šฉ ํ•œ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด ์‚ฌ์šฉ์ž๋Š” ์ด์ „์— ์˜ˆ์น˜ํ•œ ๋ชจ๋“  ๊ฐ€์ƒํ™”ํ ๊ฐ€์น˜์˜ 75%๋งŒํผ ๋Œ€์ถœ์„ ์‹คํ–‰ํ•  ์ˆ˜ ์žˆ๋Š”๋ฐ, Market Manager๋Š” Oracle Contract์—์„œ ์ œ๊ณตํ•˜๋Š” ๊ฐ ๊ฐ€์ƒํ™”ํ์˜ ๊ฐ€๊ฒฉ์ •๋ณด๋ฅผ ์ด์šฉํ•˜์—ฌ ์‚ฌ์šฉ์ž๊ฐ€ ์˜ˆ์น˜ํ•œ ๊ฐ€์ƒํ™”ํ ๊ฐ€์น˜์˜ ํ•ฉ๊ณ„๋ฅผ ๋„์ถœํ•œ๋‹ค. ์‚ฌ์šฉ์ž์˜ ์š”์ฒญ("๋Œ€์ถœ")์ด ๋ฐœ์ƒํ•˜๋ฉด, ๊ฐ๊ฐ์˜ Market Handler๋Š” ์‚ฌ์šฉ์ž์˜ ์ž”์•ก์„ ์ œ๊ณตํ•˜๊ณ  Oracle ์ปจํŠธ๋ž™ํŠธ๋Š” ๊ฐ ํ† ํฐ์˜ ๊ฐ€๊ฒฉ์„ ์ œ๊ณตํ•œ๋‹ค.

ํ•œํŽธ, BiFi ์„œ๋น„์Šค์˜ ๋กœ์ง Contract(Market Handler, SI Handler, Market Manager)๋“ค์€ Data๋ฅผ ์œ ์ง€ํ•œ ์ƒํƒœ๋กœ ์—…๋ฐ์ดํŠธ ํ•  ์ˆ˜ ์žˆ๋„๋ก ์„ค๊ณ„ ๋˜์–ด ์žˆ๋‹ค. ๋กœ์ง Contract๋“ค์€ ๋ฐ์ดํ„ฐ๋ฅผ ์ €์žฅํ•˜๋Š” ๊ฐ๊ฐ์˜ Data Storage Contract๋ฅผ ๋ณด์œ ํ•˜๋ฉฐ, Handler Proxy๋ฅผ ์ด์šฉํ•˜์—ฌ ํšจ๊ณผ์ ์œผ๋กœ ๋กœ์ง Contract๋Š” ๊ต์ฒด๋  ์ˆ˜ ์žˆ๋‹ค.

Overview

alt text

actions

  • Solidity CI

contracts

  • BiFi๋ฅผ ๊ตฌ์„ฑํ•˜๋Š” solidity๋กœ ์งœ์—ฌ์ง„ contracts

migrations

  • Test์šฉ truffle script
๐Ÿ”— More in this category

ยฉ 2026 GitRepoTrend ยท bifrost-platform/BIFI ยท Updated daily from GitHub