Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
seonggwonyoon committed Jul 9, 2021
0 parents commit c323194
Show file tree
Hide file tree
Showing 50 changed files with 3,623 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# http://editorconfig.org
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
max_line_length = 80
insert_final_newline = true
29 changes: 29 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
BSD 3-Clause License

Copyright (c) 2021, BIFROST
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
68 changes: 68 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@

# BiFi-X

# ๐Ÿ“ Description

**BiFi-X** is an extension of the BiFi service. Users can manage assets more efficiently with the ``BiFi lending`` and ``BiFi flash loan``. **BiFi-X** enables the following actions with the BiFi flash loan.

- **Yield Farming** : maximizes the profit from reward tokens _(i.e., BiFi)_ by leverages loans.
- **Long position** : expecting bullish markets, leverages the crypto-asset deposit holdings _(with borrowing stable coins)_.
- **Short position** : preparing the price drop of crypto assets, leverages the crypto-asset loan _(by depositing stable coins and borrwing crypto assets)_.

![https://github.com/bifrost-platform/BiFi-X/blob/main/assets/strategy_overview.png](https://github.com/bifrost-platform/BiFi-X/blob/main/assets/strategy_overview.png)

To make the positions before BiFi-X, users have had to pay high transaction fees while reapeating multiple transactions of ``deposit โ†’ borrow``, ``repay โ†’ withdraw`` actions. **BiFi-X** dramatically reduces the fees and simplifies the actions as a single transaction.

The ownership of each position is managed by a unique [NFT (Non-Fungible Token)](https://en.wikipedia.org/wiki/Non-fungible_token). An NFT position can be traded in NFT market places. In near future, **BiFi-X** will add more strategies and interesting financial products.

![https://github.com/bifrost-platform/BiFi-X/blob/main/assets/bifix_overview.png](https://github.com/bifrost-platform/BiFi-X/blob/main/assets/bifix_overview.png)

<br>

# ๐Ÿ“ Directory

| Folder Name | Description |
|---|---|
| [`contracts`](https://github.com/bifrost-platform/BiFi-X/tree/main/contracts) | Smart contracts of **BiFi-X** in Solidity|
| [`docs`](https://github.com/bifrost-platform/BiFi-X/tree/main/docs) | **BiFi-X** documents for design and security audits |

<br>

# ๐Ÿ“œ License
This software is licensed under the [BSD 3-Clause](https://github.com/bifrost-platform/BiFi-X/blob/main/LICENSE), ยฉ 2021 BIFROST


<br>
<br>
<br>

# BiFi-X

# ๐Ÿ“ Description
**BiFi-X**๋Š” ``BiFi Lending`` ์„œ๋น„์Šค์™€ ``BiFi flashloan``์„ ํ™œ์šฉํ•˜์—ฌ ์‚ฌ์šฉ์ž์˜ ์ž์‚ฐ์„ ํšจ์œจ์ ์œผ๋กœ ์šด์šฉํ•  ์ˆ˜ ์žˆ๋„๋ก ํ•˜๋Š” ๋ธ”๋ก์ฒด์ธ ์„œ๋น„์Šค์ž…๋‹ˆ๋‹ค. BiFi์˜ flash loan์„ ์ด์šฉํ•˜์—ฌ ๋‚ฎ์€ ์ˆ˜์ˆ˜๋ฃŒ(gas๋น„)๋กœ BiFi์˜ ์ˆ˜์ต์„ ๊ทน๋Œ€ํ™” ํ•  ์ˆ˜ ์žˆ๋Š” ์ „๋žต์„ ์ง€์›ํ•ฉ๋‹ˆ๋‹ค.

- **Yield Farming** : ๋ฆฌ์›Œ๋“œ ํ† ํฐ ์ˆ˜์ต์„ ๊ทน๋Œ€ํ™”ํ•˜๊ธฐ ์œ„ํ•˜์—ฌ ๋™์ผ ๊ฐ€์ƒ์ž์‚ฐ์˜ ๋Œ€์ถœ๊ณผ ์˜ˆ๊ธˆ์„ ์ฆํญํ•ฉ๋‹ˆ๋‹ค.
- **Long position** : ๊ฐ€๊ฒฉ ์ƒ์Šน์ด ์˜ˆ์ธก๋  ๋•Œ, BiFi์˜ flashloan์„ ๋ ˆ๋ฒ„๋ฆฌ์ง€๋กœ ์ด์šฉํ•˜์—ฌ ๊ฐ€์ƒ์ž์‚ฐ์˜ ๋ณด์œ ๋Ÿ‰์„ ๋†’์ด๊ณ  stable coin์„ ๋Œ€์ถœํ•œ๋‹ค.
- **Short position** : ๊ฐ€๊ฒฉ ํ•˜๋ฝ์ด ์˜ˆ์ธก๋  ๋•Œ, BiFi์˜ flashloan์„ ๋ ˆ๋ฒ„๋ฆฌ์ง€๋กœ ์ด์šฉํ•˜์—ฌ stable coin์˜ ๋ณด์œ ๋Ÿ‰์„ ๋†’์ด๊ณ  ๊ฐ€์ƒ ์ž์‚ฐ์„ ๋Œ€์ถœํ•œ๋‹ค.

![https://github.com/bifrost-platform/BiFi-X/blob/main/assets/strategy_overview.png](https://github.com/bifrost-platform/BiFi-X/blob/main/assets/strategy_overview.png)

flashloan ์—†์ด ์œ„ ์„ธ๊ฐ€์ง€ ์ „๋žต์„ ์ˆ˜ํ–‰ํ•œ๋‹ค๋ฉด ์‚ฌ์šฉ์ž๋Š” ``์˜ˆ๊ธˆ โ†’ ๋Œ€์ถœ``, ``์ƒํ™˜ โ†’ ์ถœ๊ธˆ``์˜ ํŠธ๋žœ์žญ์…˜์„ ๋ฐ˜๋ณต์ ์œผ๋กœ ๋ฐœ์ƒ์‹œ์ผœ์•ผ ํ•˜๋ฏ€๋กœ ๋†’์€ ์ˆ˜์ˆ˜๋ฃŒ๋ฅผ ๋ถ€๋‹ดํ•ด์•ผ ํ•œ๋‹ค. **BiFi-X**๋Š” ``BiFi flashloan``์„ ์ด์šฉํ•˜๋Š” ๋‹จ์ผ ํŠธ๋žœ์žญ์…˜์œผ๋กœ ์‚ฌ์šฉ์ž๊ฐ€ ์›ํ•˜๋Š” ํฌ์ง€์…˜์„ ๋งŒ๋“ค ์ˆ˜ ์žˆ๋„๋ก ํ•œ๋‹ค.

๊ฐ ๊ธˆ์œต ํฌ์ง€์…˜์˜ ๊ถŒ๋ฆฌ๋Š” [NFT](https://ko.wikipedia.org/wiki/%EB%8C%80%EC%B2%B4_%EB%B6%88%EA%B0%80%EB%8A%A5_%ED%86%A0%ED%81%B0)๋กœ ์ •์˜๋˜์–ด, NFT ๋งˆ์ผ“ ํ”Œ๋ ˆ์ด์Šค๋ฅผ ํ†ตํ•ด ์‚ฌ์šฉ์ž๊ฐ„์˜ ํฌ์ง€์…˜ ๋‹จ์œ„์˜ ๊ฑฐ๋ž˜๊ฐ€ ๊ฐ€๋Šฅํ•˜๋‹ค. ์•ž์œผ๋กœ **BiFi-X**๋Š” ๋‹ค์–‘ํ•œ ํˆฌ์ž ์ „๋žต๋“ค์„ ๊ตฌ์‚ฌํ•˜๋Š” ๊ธˆ์œต ํฌ์ง€์…˜์„ ์ง€์›ํ•  ์˜ˆ์ •์ด๋‹ค.

![https://github.com/bifrost-platform/BiFi-X/blob/main/assets/bifix_overview.png](https://github.com/bifrost-platform/BiFi-X/blob/main/assets/bifix_overview.png)

<br>

# ๐Ÿ“ Directory

| ํด๋” ์ด๋ฆ„ | ์„ค๋ช… |
|---|---|
| [`contracts`](https://github.com/bifrost-platform/BiFi-X/tree/main/contracts) | Solidity๋กœ ์ž‘์„ฑ๋œ **BiFi-X**์˜ smart contracts |
| [`docs`](https://github.com/bifrost-platform/BiFi-X/tree/main/docs) | **BiFi-X**์˜ ์„ค๊ณ„ ๋ฐ ๋ณด์•ˆ ๊ฐ์‚ฌ ๋ฌธ์„œ๋“ค |

<br>

# ๐Ÿ“œ License
This software is licensed under the [BSD 3-Clause](https://github.com/bifrost-platform/BiFi-X/blob/main/LICENSE), ยฉ 2021 BIFROST
Binary file added assets/bifix_overview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/strategy_overview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
43 changes: 43 additions & 0 deletions contracts/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Contracts

# ๐Ÿ“ Description
> BiFi-X smart contracts in Solidity
### ๐Ÿ“ [front](https://github.com/bifrost-platform/BiFi-X/tree/main/contracts/front)
Information feed

### ๐Ÿ“ [interfaces](https://github.com/bifrost-platform/BiFi-X/tree/main/contracts/interfaces)
Interfaces for interacting with BiFi-X contracts and external contracts

### ๐Ÿ“ [position](https://github.com/bifrost-platform/BiFi-X/tree/main/contracts/position)
Smart contracts for the Positions of BiFi-X

### ๐Ÿ“ [utils](https://github.com/bifrost-platform/BiFi-X/tree/main/contracts/utils)
Library smart contracts for BiFi-X contracts

### ๐Ÿ“ [xFactory](https://github.com/bifrost-platform/BiFi-X/tree/main/contracts/xFactory)
Factory contracts that manages the Positions.

<br>
<br>
<br>

# Contracts

# ๐Ÿ“ Description
> Solidity๋กœ ์ž‘์„ฑ๋œ BiFi-X smart contracts
### ๐Ÿ“ [front](https://github.com/bifrost-platform/BiFi-X/tree/main/contracts/front)
์™ธ๋ถ€์— ์ •๋ณด๋ฅผ ์ œ๊ณตํ•˜๊ธฐ ์œ„ํ•œ contracts

### ๐Ÿ“ [interfaces](https://github.com/bifrost-platform/BiFi-X/tree/main/contracts/interfaces)
BiFi-X contracts ๋ฐ ์™ธ๋ถ€ contracts์™€ ์ƒํ˜ธ ์ž‘์šฉํ•˜๊ธฐ ์œ„ํ•œ interfaces

### ๐Ÿ“ [position](https://github.com/bifrost-platform/BiFi-X/tree/main/contracts/position)
์‚ฌ์šฉ์ž๊ฐ€ BiFi-X๋ฅผ ์‚ฌ์šฉํ•  ๋•Œ ์ƒ์„ฑ๋˜๋Š” Position์— ๊ด€๋ จ๋œ contracts

### ๐Ÿ“ [utils](https://github.com/bifrost-platform/BiFi-X/tree/main/contracts/utils)
BiFi-X contracts์—์„œ ์‚ฌ์šฉ๋˜๋Š” library

### ๐Ÿ“ [xFactory](https://github.com/bifrost-platform/BiFi-X/tree/main/contracts/xFactory)
Position์„ ์ƒ์„ฑ ๋ฐ ๊ด€๋ฆฌํ•˜๋Š” contracts
Loading

0 comments on commit c323194

Please sign in to comment.