{"id":22111156,"url":"https://github.com/volumefi/crv3cryptocellar","last_synced_at":"2025-03-24T04:28:44.533Z","repository":{"id":119721229,"uuid":"417582146","full_name":"VolumeFi/crv3cryptocellar","owner":"VolumeFi","description":null,"archived":false,"fork":false,"pushed_at":"2021-10-25T13:11:26.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-29T10:29:36.649Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/VolumeFi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-10-15T17:26:01.000Z","updated_at":"2021-10-25T13:11:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"5a7b9c7a-22ee-4583-95ac-1ef990d8ded1","html_url":"https://github.com/VolumeFi/crv3cryptocellar","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VolumeFi%2Fcrv3cryptocellar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VolumeFi%2Fcrv3cryptocellar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VolumeFi%2Fcrv3cryptocellar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VolumeFi%2Fcrv3cryptocellar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VolumeFi","download_url":"https://codeload.github.com/VolumeFi/crv3cryptocellar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245209200,"owners_count":20578000,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-01T10:34:58.674Z","updated_at":"2025-03-24T04:28:44.512Z","avatar_url":"https://github.com/VolumeFi.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CRV3CRYPTO(Curve LP) Cellar\n\n## Testing and Development on testnet\n\n### Dependencies\n* [nodejs](https://nodejs.org/en/download/) - \u003e=v8, tested with version v14.15.4\n* [python3](https://www.python.org/downloads/release/python-368/) from version 3.6 to 3.8, python3-dev\n* [brownie](https://github.com/iamdefinitelyahuman/brownie) - tested with version [1.14.6](https://github.com/eth-brownie/brownie/releases/tag/v1.14.6)\n* ganache-cli\n\nRun Ganache-cli mainnet-fork environment\n\n```bash\nganache-cli --fork https://mainnet.infura.io/v3/#{YOUR_INFURA_KEY} -p 7545\n```\n\nAdd local network setting to brownie\n\n```bash\nbrownie networks add Development local host=http://127.0.0.1 accounts=10 evm_version=istanbul fork=mainnet port=7545 mnemonic=brownie cmd=ganache-cli timeout=300\n```\n\nDeploy on local ganache-cli network\n\n```bash\nbrownie run scripts/deploy.py --network local\n```\n\nDeploy on mainnet\n\n```bash\nbrownie run scripts/deploy.py --network mainnet\n```\n\n### Running the Tests\n```bash\nbrownie test --network local\n```\n\n\n\nContracts\n\n- crv3cryptocellar - Main contract\n- swap - Periphery contract to swap CRV reward into ETH\n\n\n\n## External functions\n\n| Function Name | Parameters | Note | Description |\n| --- | --- | --- | --- |\n|transfer|address recipient, uint256 amount|||\n|approve|address spender, uint256 amount|||\n|transferFrom|address sender,address recipient,uint256 amount|||\n|increaseAllowance|addresss spender, uint256 value||Increase allowance|\n|decreaseAllowance|address spender, uint256 value||Decrease allowance|\n|deposit|uint256 amount||Deposit crv3crypto curveLP token|\n|deposit_underlying|uint256[3] amounts|payable|Deposit USDT/WBTC/WETH, msg.value is for ETH|\n|withdraw|uint256 amount||Withdraw crv3crypto curveLP token|\n|withdraw_underlying|uint256 tokenIndex, uint256 amount||Withdraw underlying token\u003cbr /\u003etokenIndexes 0-USDT, 1-WBTC, 2-WETH, 3-ETH|\n|reinvest| | | Collect CRV, swap into curveLP, and reinvest |\n|setSwap| address _swap | | new swap logic contract |\n|setValidator|address _validator, bool value|||\n|transferOwnership|address, newOwner|||\n|owner||view||\n|name||view||\n|symbol||view||\n|decimals||pure||\n|totalSupply||view||\n|balanceOf|address account|view||\n|allowance|address owner_, address spender|view||\n|swap||view|Address of the swap contract that swaps CRV into ETH|\n|lp_balance||view|crv3crypto LP balance|\n|validators|address|view|Validator check (bool)|\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvolumefi%2Fcrv3cryptocellar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvolumefi%2Fcrv3cryptocellar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvolumefi%2Fcrv3cryptocellar/lists"}