{"id":18263810,"url":"https://github.com/yearn/uniswap-roi","last_synced_at":"2025-04-04T20:31:24.131Z","repository":{"id":102995760,"uuid":"236290597","full_name":"yearn/uniswap-roi","owner":"yearn","description":"On-chain uniswap ROI pool calculations","archived":false,"fork":false,"pushed_at":"2020-02-06T05:19:50.000Z","size":2950,"stargazers_count":23,"open_issues_count":1,"forks_count":41,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-20T19:07:30.746Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://docs.iearn.finance","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yearn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2020-01-26T09:22:41.000Z","updated_at":"2023-05-12T14:11:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"bd1ec9a5-e06a-4574-9715-022b6bbbd317","html_url":"https://github.com/yearn/uniswap-roi","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/yearn%2Funiswap-roi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yearn%2Funiswap-roi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yearn%2Funiswap-roi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yearn%2Funiswap-roi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yearn","download_url":"https://codeload.github.com/yearn/uniswap-roi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247246385,"owners_count":20907785,"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-11-05T11:12:46.882Z","updated_at":"2025-04-04T20:31:24.125Z","avatar_url":"https://github.com/yearn.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Documentation\n\n[iearn.finance](https://docs.iearn.finance)\n\n# Smart Contract Interface\n\n| Contract | ABI | Address |\n| -- | -- | -- |\n| UniswapROI | [JSON](https://github.com/iearn-finance/uniswap-roi/blob/master/build/contracts/UniswapAPR.json) | [uniapr.iearn.eth](https://etherscan.io/address/0xd04ca0ae1cd8085438fdd8c22a76246f315c2687#readContract) |\n| UniswapAPR | [JSON](https://github.com/iearn-finance/uniswap-roi/blob/master/build/contracts/UniswapAPR.json) | [uniapr.iearn.eth](https://etherscan.io/address/0x4c70D89A4681b2151F56Dc2c3FD751aBb9CE3D95#readContract) |\n\n\n## UniswapROI Interface\n\n{% tabs %}\n{% tab title=\"UniswapROI.sol\" %}\n```javascript\n// Solidity Interface\n\ninterface IUniswapROI {\n\n    function getCDAIUniROI() public view returns (uint256, uint256);\n    function getCBATUniROI() public view returns (uint256, uint256);\n    function getCETHUniROI() public view returns (uint256, uint256);\n    function getCREPUniROI() public view returns (uint256, uint256);\n    function getCSAIUniROI() public view returns (uint256, uint256);\n    function getCUSDCUniROI() public view returns (uint256, uint256);\n    function getCWBTCUniROI() public view returns (uint256, uint256);\n    function getCZRXUniROI() public view returns (uint256, uint256);\n\n\n    function getIZRXUniROI() public view returns (uint256, uint256);\n    function getIREPUniROI() public view returns (uint256, uint256);\n    function getIKNCUniROI() public view returns (uint256, uint256);\n    function getIWBTCUniROI() public view returns (uint256, uint256);\n    function getIUSDCUniROI() public view returns (uint256, uint256);\n    function getIETHUniROI() public view returns (uint256, uint256);\n    function getISAIUniROI() public view returns (uint256, uint256);\n    function getIDAIUniROI() public view returns (uint256, uint256);\n    function getILINKUniROI() public view returns (uint256, uint256);\n    function getISUSDUniROI() public view returns (uint256, uint256);\n\n    function getADAIUniROI() public view returns (uint256, uint256);\n    function getATUSDUniROI() public view returns (uint256, uint256);\n    function getAUSDCUniROI() public view returns (uint256, uint256);\n    function getAUSDTUniROI() public view returns (uint256, uint256);\n    function getASUSDUniROI() public view returns (uint256, uint256);\n    function getALENDUniROI() public view returns (uint256, uint256);\n    function getABATUniROI() public view returns (uint256, uint256);\n    function getAETHUniROI() public view returns (uint256, uint256);\n    function getALINKUniROI() public view returns (uint256, uint256);\n    function getAKNCUniROI() public view returns (uint256, uint256);\n    function getAREPUniROI() public view returns (uint256, uint256);\n    function getAMKRUniROI() public view returns (uint256, uint256);\n    function getAMANAUniROI() public view returns (uint256, uint256);\n    function getAZRXUniROI() public view returns (uint256, uint256);\n    function getASNXUniROI() public view returns (uint256, uint256);\n    function getAWBTCUniROI() public view returns (uint256, uint256);\n\n    function getDAIUniROI() public view returns (uint256, uint256);\n    function getTUSDUniROI() public view returns (uint256, uint256);\n    function getUSDCUniROI() public view returns (uint256, uint256);\n    function getUSDTUniROI() public view returns (uint256, uint256);\n    function getSUSDUniROI() public view returns (uint256, uint256);\n    function getLENDUniROI() public view returns (uint256, uint256);\n    function getBATUniROI() public view returns (uint256, uint256);\n    function getETHUniROI() public view returns (uint256, uint256);\n    function getLINKUniROI() public view returns (uint256, uint256);\n    function getKNCUniROI() public view returns (uint256, uint256);\n    function getREPUniROI() public view returns (uint256, uint256);\n    function getMKRUniROI() public view returns (uint256, uint256);\n    function getMANAUniROI() public view returns (uint256, uint256);\n    function getZRXUniROI() public view returns (uint256, uint256);\n    function getSNXUniROI() public view returns (uint256, uint256);\n    function getWBTCUniROI() public view returns (uint256, uint256);\n\n    function calcUniswapROI(address token) public view returns (uint256, uint256);\n}\n```\n{% endtab %}\n{% endtabs %}\n\n## UniswapAPR Interface\n\n{% tabs %}\n{% tab title=\"IUniswapAPR.sol\" %}\n```javascript\n// Solidity Interface\n\ncontract IUniswapAPR {\n\n    function getBlocksPerYear() external view returns (uint256);\n\n    function calcUniswapAPRADAI() external view returns (uint256, uint256);\n    function calcUniswapAPRCDAI() external view returns (uint256, uint256);\n    function calcUniswapAPRCETH() external view returns (uint256, uint256);\n    function calcUniswapAPRCSAI() external view returns (uint256, uint256);\n    function calcUniswapAPRCUSDC() external view returns (uint256, uint256);\n    function calcUniswapAPRDAI() external view returns (uint256, uint256);\n    function calcUniswapAPRIDAI() external view returns (uint256, uint256);\n    function calcUniswapAPRISAI() external view returns (uint256, uint256);\n    function calcUniswapAPRSUSD() external view returns (uint256, uint256);\n    function calcUniswapAPRTUSD() external view returns (uint256, uint256);\n    function calcUniswapAPRUSDC() external view returns (uint256, uint256);\n    function calcUniswapAPRCHAI() external view returns (uint256, uint256);\n\n    function calcUniswapAPRFromROI(uint256 roi, uint256 createdAt) external view returns (uint256);\n\n    function calcUniswapAPR(address token, uint256 createdAt) external view returns (uint256);\n}\n\n```\n{% endtab %}\n{% endtabs %}\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyearn%2Funiswap-roi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyearn%2Funiswap-roi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyearn%2Funiswap-roi/lists"}