Giter VIP home page Giter VIP logo

ilm's Introduction

Integrated Liquidity Market (ILM)

The ILMs are a set of contracts which increase capital efficiency chiefly by reducing friction of capital deployment and costs of position management. The ILM repo hosts all contracts, tests and deployment scripts necessary for build, test, deploy and configure the ILM strategies.

Architecture

The ILMs are accessible to users by interaction with the Strategy contracts. The functioning of these strategies is supported by the Swapper contract suite, which serves the purpose of managing integrations, thus swaps, with several DEXs.

The Strategy contracts leverage several external libraries for borrowing/repaying loans with the Seamless lending pools, conversions and rebalancing.

The Swapper contract is essentially a routing contract, and simply routes swaps through SwapAdapter contracts, which handle the DEX-specific swapping logic.

All contracts follow the unstructured storage pattern, where a hash is used to define the storage slot for the part of the state of the contract.

Documentation

The first of these contracts is the Looping Strategy, which swaps borrowed funds to for collateral funds to achieve a higher exposure to the collateral token.

A summary of the Looping Strategy interfaces and contracts is provided in the repo as well.

The ILM repo is subject to the Styling Guide.

The ILMs integrate directly with the Seamless Protocol which fulfills the role of the lender.

Deployment Addresses

Base Mainnet

Contract Proxy address Implementation address
wstETH/ETH 3x Loop Strategy 0x258730e23cF2f25887Cb962d32Bd10b878ea8a4e 0xC82A728429F112e85C827c7c8734c9210C3cF8eA
Seamless ILM Reserved wstETH 0xc9ae3B5673341859D3aC55941D27C8Be4698C9e4
Seamless ILM Reserved WETH 0x3e8707557D4aD25d6042f590bCF8A06071Da2c5F
Swapper 0xE314ae9D279919a00d4773cCe37946A98fADDaBc 0x08561d280654790861591fFAf68ed193AdDC479D
WrappedTokenAdapter 0xc3e17CDac7C6ED317f0D9845d47df1a281B5f79E
AerodromeAdapter 0x6Cfc78c96f87e522EBfDF86995609414cFB1DcB2

Audits

TBA

Usage

Installation

forge install

Build

make build

Test

make test

Deployment

make deploy-wrappedwstETH-fork

# update the address of the wrappedToken in the LoopStrategyWstETHoverETHConfig

make deploy-loopStrategyWstETHoverETH-fork

ilm's People

Contributors

noudaimon avatar duxxud avatar fredwes 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.