GithubHelp home page GithubHelp logo

alex-v1's Introduction

ALEX builds finance on Bitcoin. Create best-in-class financial apps on Bitcoin with ALEX!

See you at https://docs.alexgo.io if you want to find out more.

Before you run, we use a custom dependency management tool, so please run the following.

> cd <project root>/clarity
> sh ./scripts/clarinet_manager.sh update alex_dao main
> sh ./scripts/clarinet_manager.sh install alex_dao

The list of dependencies (not all are required) is available here: https://github.com/alexgo-io/alex-v1/blob/main/clarity/Clarinet.json

alex-v1's People

Contributors

alant avatar bestmike007 avatar bolasblack avatar caoer avatar fiftyeightandeight avatar hecool108 avatar hyossid avatar jbotwina avatar lnow avatar marvinjanssen avatar minahil-imtiaz avatar naila24 avatar noumanahmads avatar rachelyingyi avatar rolfaris avatar rredlion avatar saadtahirtintash avatar sargrass avatar yilongalex avatar zhigang1992 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

alex-v1's Issues

Real-time margined loans with minimal counterparty risk

Stablecoins are typically implemented as an overcollateralised loan (say 50% LTV) with a liquidation trigger (say 66% Max LTV).
No periodic margining is implemented (as far as I know), which could be expensive to implement on ETH.
On Stacks, with faster transaction speed and lower transaction fee, can we implement a real-time margined loans with minimal counterparty risk?

invariant function

In the yieldspace paper https://yield.is/YieldSpace.pdf, there are 4 invariant function

  1. equation (16) assuming no fee
  2. equation (20) assuming buying fyDai with an indirect fee factor of g
  3. extension of equation (20) assuming selling fyDai with an indirect fee factor of g
  4. equation (21), a non-decreasing invariant, seemingly addressing the problem of negative interest rate. However, it value would be different from the above 3 equations. As it has additional power, as well as scaled by s

Does it mean the invariant function changes with different scenario?

ayToken / Collateral Equation

Can we extend the AMM logic to implement collateralised lending?
Post collateral to mint ayToken == sell collateral to buy ayToken?

[DEV] Vault Implementation

Vault implementation using trait-vault

  1. alex-vault
  • get-balance
  • get-balances
  • transfer-to-vault
  • transfer-from-vault
  • flash-loan

Monte Carlo simulation engine to stress test lending params

CRP dynamically rebalances collateral to ensure the ayToken minted (i.e. the loan) remain solvent especially in an adverse market environment (i.e. the value of the loan does not exceed the value of collateral). This dynamic rebalancing, together with a careful choice of the key parameters (including LTV and volatilty assumption) allows ALEX to eliminate the needs for liquidation. Any residual gap risk (which CRP cannot address entirely) is addressed through maintaining a strong reserve fund.

Monte Carlo engine to stress test the choice of key params and determine appropriate reserve size.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.