{"id":18263826,"url":"https://github.com/yearn/itoken","last_synced_at":"2025-07-23T00:04:25.088Z","repository":{"id":42183081,"uuid":"236240051","full_name":"yearn/itoken","owner":"yearn","description":"yToken wrappers for automated investment strategy tokenization","archived":false,"fork":false,"pushed_at":"2023-05-07T20:41:49.000Z","size":45215,"stargazers_count":72,"open_issues_count":2,"forks_count":98,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-04-04T20:36:40.431Z","etag":null,"topics":["defi","erc20","solidity"],"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-25T22:44:32.000Z","updated_at":"2024-05-30T14:05:34.000Z","dependencies_parsed_at":"2025-04-04T20:41:42.256Z","dependency_job_id":null,"html_url":"https://github.com/yearn/itoken","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yearn/itoken","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yearn%2Fitoken","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yearn%2Fitoken/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yearn%2Fitoken/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yearn%2Fitoken/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yearn","download_url":"https://codeload.github.com/yearn/itoken/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yearn%2Fitoken/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266592179,"owners_count":23953109,"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","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["defi","erc20","solidity"],"created_at":"2024-11-05T11:12:49.197Z","updated_at":"2025-07-23T00:04:25.060Z","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| iEther | [JSON](https://github.com/iearn-finance/itoken/blob/master/build/contracts/IEther.json) | [0x9Dde7cdd09dbed542fC422d18d89A589fA9fD4C0](https://etherscan.io/address/0x9dde7cdd09dbed542fc422d18d89a589fa9fd4c0#code) |\n\n## iToken Interface\n\n{% tabs %}\n{% tab title=\"IIEther.sol\" %}\n```javascript\n// Solidity Interface\n\ninterface IIEther {\n  // Invest ETH\n  function invest() external payable;\n  function calcPoolValueInETH() external view returns (uint);\n  function getPricePerFullShare() external view returns (uint);\n  // Redeem any invested tokens from the pool\n  function redeem(uint256 _shares) external;\n}\n```\n{% endtab %}\n{% endtabs %}\n\n## ERC20 Token Interface\n\n{% tabs %}\n{% tab title=\"TokenInterface.sol\" %}\n```javascript\n// https://theethereum.wiki/w/index.php/ERC20_Token_Standard\ncontract ERC20Interface {\n    function totalSupply() public view returns (uint);\n    function balanceOf(address tokenOwner) public view returns (uint balance);\n    function allowance(address tokenOwner, address spender) public view returns (uint remaining);\n    function transfer(address to, uint tokens) public returns (bool success);\n    function approve(address spender, uint tokens) public returns (bool success);\n    function transferFrom(address from, address to, uint tokens) public returns (bool success);\n    // optional\n    function name() external view returns (string);\n    function symbol() external view returns (string);\n    function decimals() external view returns (string);\n\n    event Transfer(address indexed from, address indexed to, uint tokens);\n    event Approval(address indexed tokenOwner, address indexed spender, uint tokens);\n}\n```\n{% endtab %}\n\n{% endtabs %}\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyearn%2Fitoken","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyearn%2Fitoken","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyearn%2Fitoken/lists"}