{"repo":"gammaswap/v1-core","free":true,"listed":false,"github":"https://github.com/gammaswap/v1-core","clone":"git clone https://github.com/gammaswap/v1-core.git","description":"Core smart contracts for the GammaSwap V1 protocol","language":"Solidity","stars":10,"topics":["defi","gammaswap","trading","volatility"],"license":null,"category":"blockchain-web3","readme_excerpt":"V1-Core Description This is the repository for the core smart contracts of the GammaSwap V1 protocol. This repository does not contain implementations of GammaPools but rather abstract contracts that can be used to implement GammaPools for different types of CFMMs The only implemented contract in this repository is the GammaPoolFactory which instantiates new GammaPools to enable the borrowing of liquidity from CFMMs, the PoolViewer which views storage data from GammaPools, and storage contracts to track loans and store price information. The storage contracts to track loans and store price information are not necessary if a subgraph exists to do the same. Steps to Run GammaSwap Tests Locally 1. Run yarn to install GammaSwap dependencies 2. Run yarn test to run hardhat tests 3. Run yarn fuzz to run foundry tests (Need foundry binaries installed locally) To deploy contracts to local live network use v1-deployment repository Note To install foundry locally go to getfoundry.sh Solidity Versions Code is built with solidity version 0.8.21. But the evm in hardhat is set to Paris for Arbitrum deployment. Concrete contracts support only solidity version 0.8.21. Abstract contracts support solidity version 0.8.4 and up. Interfaces support solidity version 0.8.0 and up. GammaPool.sol, GammaPoolERC4626, and GammaSwapLibrary.sol support solidity version 0.8.13 and up due to abi.encodecall bug. We used solidity version 0.8.21 so that the code is ready to deploy to ethereum mainnet but set t","default_branch":null,"files":null,"tree":[],"storefront":"/r/gammaswap","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/gammaswap/v1-core/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}