![GammaSwap-logo](/_next/image/?url=https%3A%2F%2Fimages.ctfassets.net%2Ft3wqy70tc3bv%2F139C1UQUOpAxZQpCgPNSbP%2F8b72b96955637df0c288dea8cb2e7602%2FGammaSwap_logo.png&w=128&q=75)
GammaSwap
GammaSwap is a decentralized exchange enabling anyone to borrow liquidity from any AMM pool, oracle free. This contract is for UniV2 style AMMs but GammaSwap will support Balancer weighted pools in the future.There are two participants in the GammaSwap ecosystem: Liquidity Providers and Borrowers.
Arbitrum
Defi
AMM
DEX
Derivatives
Lending
Options
Perpetuals
Solidity
Maximum Bounty
$40,000Live Since
29 September 2023Last Updated
02 September 2024PoC required
Resources & Documentation
All code of GammaSwap can be found at https://github.com/gammaswap. Documentation for the assets provided in the table can be found at https://sneaky-nigella-b2d.notion.site/GammaSwap-Architecture-Overview-5c0eb0f7c92d41009cca81c995b8cb8e
Other helpful links include:
- Attack Vectors & Countermeasures - https://sneaky-nigella-b2d.notion.site/Attack-Vectors-Countermeasures-6e651c8e15484c539909a56d1ea41dba
- Flash Loan CFMM Fee Liquidation Attack - https://sneaky-nigella-b2d.notion.site/Flash-Loan-CFMM-Fee-Liquidation-Attack-7001d6004f7c452d884d6ae17fd311d7
- Rebalance Formulas - https://sneaky-nigella-b2d.notion.site/Rebalance-Formulas-20096ccac7684315b8c88a26337c891a
- Interest Rate Formula - https://sneaky-nigella-b2d.notion.site/Interest-Rate-d2c06c248f454dd4856c43079f257fb7?pvs=4
- Loan to Value Ratio (How debt collateralization is calculated) - https://sneaky-nigella-b2d.notion.site/LTV-Ratio-2e5f873eb4eb4d8cbf1439c640dd3ffc
- Dynamic Origination Fee Logic - https://sneaky-nigella-b2d.notion.site/Dynamic-Origination-Fee-1b0e7c98b5144ac4b9ee76dde18402c7
- Transfer Fees Attack Discovered on October 2023 - https://medium.com/gammaswap-labs/immunefi-bug-report-analysis-contract-re-deployment-283cbdfa0beb
- General Protocol Description - https://medium.com/gammaswap-labs/gammaswap-protocol-6a4430e4b0ad
- Staking Contracts Documentation - https://docs.google.com/presentation/d/1uUCY6km1kriJ7r6x88FiZnz9RjSxZaeBt29cdwySSb4/edit#slide=id.p