Skip to content

Intentionally-limited adaptations of defi protocols, dapps, and concepts

Notifications You must be signed in to change notification settings

ga-reth/lil-defi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lil-defi

lil-defi is a repro that deconstructs popular defi protocols and dapps to their core, inspired by lil-web3 from m1guel. Developed and tested with DappTools as an exploration into this library as an alternative to hardhat.

lil-uniswap

A very simple and limited adaptation of uniswap, built to deconstruct the protcol to it's barebones to understand how it functions

V3 maxis will note I ignored tick spacing/concentrated liquidity, but given the nature of this project, I excluded them for simplicity. The two contracts are intended to divide the logic appropriately, LilUniswap acts as the central contract (UniswapFactoryV3Factory), allowing the creation and deployment of token pools. LilUniswapPool represents the liquidity pools for each token pair and contains the logic for interacting with them.

Contract SourceContract Tests

lil-smart-wallet

A super simple smart contract wallet

lil smart wallet is a simple demonstration of how a smart contract can be used as a wallet. The observation here is that we can quite simply check owners of contracts + validate callers of functions.

Contract SourceContract Tests

lil-mev-arbitrage

A very limited MEV contract to explore how smart contracts can be used to capitalise on arbitrage oppurtunities between exchanges

soonTm

lil-dex

soonTm

About

Intentionally-limited adaptations of defi protocols, dapps, and concepts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages