-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit c323194
Showing
50 changed files
with
3,623 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.