mirror of
https://github.com/alexgo-io/alex-v1.git
synced 2026-01-12 06:23:41 +08:00
license and readme added
This commit is contained in:
21
LICENSE
Normal file
21
LICENSE
Normal file
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2021 alexgo-io
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
40
README.md
Normal file
40
README.md
Normal file
@@ -0,0 +1,40 @@
|
||||
### ALEX is an open-source DeFi development company built on Stacks Blockchain modelled on the world’s financial markets.
|
||||
|
||||
At ALEX, you can
|
||||
- Lend your BTC and earn
|
||||
- Borrow BTC
|
||||
- Mitigate risk with BTC short positions
|
||||
- Maximize upside with BTC leveraged long positions
|
||||
|
||||
<img src="https://user-images.githubusercontent.com/443225/120918450-15c66280-c6e7-11eb-9950-5ccab7f2c0d5.png" width="300"/>
|
||||
|
||||
### Think of us as [Compound](https://compound.finance) / [AAVE](https://aave.om) with underlying technology like [Balancer](https://balancer.finance), but user experience of [Robinhood](https://www.robinhood.com).
|
||||
|
||||
Our initial focus (v1) is
|
||||
|
||||
- Build DeFi primitives targeting developers looking to build ecosystem on Stacks, and
|
||||
- Simplify the user experience going from(to) CeFi to(from) DeFi to attract non-developers, broadening the Stacks user base.
|
||||
|
||||
alex-v1 implements a number of Clarity smart contracts on the core concept of Yield Tokens ("ayTokens"). Yield Tokens allow term lending with fixed APY.
|
||||
|
||||
<img src="https://user-images.githubusercontent.com/443225/121769437-2028a680-cb96-11eb-8289-ea87fb49491d.png" width="600">
|
||||
|
||||
### Lending at fixed yield for a fixed term
|
||||
|
||||
- Buying of ayToken (against Token) equates to lending of Token at the rate implied by the price of ayToken until T.
|
||||
- Holding ayToken until T allows the holder to accrue, with certainty, at a fixed rate (as implied by the price at which holder bought ayToken).
|
||||
- Selling of ayToken before T could result in a profit or loss, depending on the prevailing price of ayToken.
|
||||
|
||||
<img src="https://user-images.githubusercontent.com/443225/120918675-27f4d080-c6e8-11eb-99a7-7a2b9b398123.png" width="300">
|
||||
|
||||
### Borrowing at fixed yield for a fixed term
|
||||
|
||||
- Minting of ayToken against collateral assets and selling of ayToken against Token equates to the borrowing of Token at the rate implied by the price at which ayToken was sold.
|
||||
- Loan-to-Value (“LTV”) is the ratio of the value of the tokens borrowed and the value of the collateral assets.
|
||||
- Liquidation occurs if the LTV of a loan reaches the Maximum Loan-to-Value (“Max LTV”).
|
||||
|
||||
<img src="https://user-images.githubusercontent.com/443225/120918869-4ad3b480-c6e9-11eb-9d29-6b946489becf.png" width="800">
|
||||
|
||||
### Automated Market Making designed for lending / borrowing protocols
|
||||
|
||||
The borrow rates embedded in ayTokens are determined using an automated market making formula, for example using the constant power sum formula between the balance of the Yield Tokens and that of collateral asset, following [Yield Space](https://yield.is/YieldSpace.pdf), suitably modified to allow for capital efficiency following [Uniswap v3](https://uniswap.org/whitepaper-v3.pdf).
|
||||
Reference in New Issue
Block a user