Code Monkey home page Code Monkey logo

bwise's Introduction

B.Wise

Introduction

Having non-correlated source of risk, so the movement at least do not correspond one-to-one, is better than having just one source of risk. - ETHGlobalOnline 2023.

Why does banks exist ? It’s because they offer multiple financial services. They keep money for savers but also can be lenders. What is BWise providing is similar to banking.

BWise is in the same time, making sure that your money is not going out of range of uniswap pools and thus, you are not been victim of impermanent loss but it is also using that extra amount of tokens that is recalibrated and not used anymore as a lending share, thus enabling you to earn yield thanks to SPARK technology with a stable coin.

Solution

Description

To reduce fragmentation of Liquidity we have chosen to use SPARK technology by choosing DAI as a bridge currency. Every trade in our Auto-Rebalancing mechanism will include DAI/ABC pair. DAI is stable coin and participates naturally into reducing Impermanent loss.

Research on Impermanent Loss

"We have verified the formulas to calculate impermanent loss based on the latest ETH price history using the concentrated liquidity formula adopted in Uniswap v3".

Tehcnical Architecture

diagram

rebalance

Contracts are deployed on Scroll using Foundry :

Example of verification :

// Verify SavingsDai forge verify-contract

  --num-of-optimizations 10 /
  --watch /
  --constructor-args $(cast abi-encode "constructor(address, address)" 0x9BfCdf238d9Ad87e526d166020990F1a22c9708F 0x3F9696ADb8cB545a8D58015550E9E4190b4665F6) /
  --verifier etherscan / 
  --verifier-url https://api-sepolia.scrollscan.dev/api / 
  --etherscan-api-key D62920783A4311EE9D6600155D570C742E / 
  --compiler-version v0.8.20 / 
  0xD46073c9118890eeaAF804Ff0EA9615fe4701b7d / 
  SavingsDai /

Technology used

TableLand

 {"name":"bwise_11155111_200","externalUrl":"https://testnets.tableland.network/api/v1/tables/11155111/200","animationUrl":"https://tables.testnets.tableland.xyz/11155111/200.html","image":"https://tables.testnets.tableland.xyz/11155111/200.svg","schema":{"columns":[{"name":"TokenA","type":"text"},{"name":"TokenB","type":"text"},{"name":"Platform","type":"text"},{"name":"Value","type":"integer"},{"name":"AutoRebalance","type":"integer"}]},"attributes":[{"displayType":"date","traitType":"created","value":1697641468}]}

Scroll :

Chainlink

Spark implementation :

- we have modified savingsDai contract to have a getLiquidityPosition that allows us to monitor DAI position in the monitor contract. 
- Spark contract are also deployed to Scroll (see #Scroll section) 

Contract addresses

https://sepolia.scrollscan.com/address/0xE35025Fa465E2777740D1331c8D3FCdCe86F42aa

bwise's People

Stargazers

Sunday Ibrahim Ijai avatar

Watchers

 avatar  avatar  avatar

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.