{"id":18681881,"url":"https://github.com/gravityblast/idle-batched-mint","last_synced_at":"2025-11-07T16:30:30.251Z","repository":{"id":66386661,"uuid":"323453486","full_name":"gravityblast/idle-batched-mint","owner":"gravityblast","description":null,"archived":false,"fork":false,"pushed_at":"2021-01-07T22:25:13.000Z","size":538,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-05T22:40:53.554Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gravityblast.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-12-21T21:37:49.000Z","updated_at":"2022-10-14T11:55:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"cf5fc5b3-5144-479b-b82a-5bcb937f5e79","html_url":"https://github.com/gravityblast/idle-batched-mint","commit_stats":{"total_commits":36,"total_committers":1,"mean_commits":36.0,"dds":0.0,"last_synced_commit":"129d2b426786805a2e1affc5e73fb9e2a75ffb09"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gravityblast%2Fidle-batched-mint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gravityblast%2Fidle-batched-mint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gravityblast%2Fidle-batched-mint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gravityblast%2Fidle-batched-mint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gravityblast","download_url":"https://codeload.github.com/gravityblast/idle-batched-mint/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239533064,"owners_count":19654617,"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-07T10:10:03.223Z","updated_at":"2025-11-07T16:30:30.190Z","avatar_url":"https://github.com/gravityblast.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IdleBatchedMint\n\nThe `IdleBatchedMint` contract allows to queue multiple deposits of underlying tokens and\nsend them to its `IdleToken` contract to mint Idle tokens in batches, allowing multiple users to\navoid paying high gas fees for the final `mintIdleToken` transaction.\n\n## Example:\n\n* User A calls `IdleBatchedMint.deposit(uint256 amount)`\n* User B calls `IdleBatchedMint.deposit(uint256 amount)`\n* User C calls `IdleBatchedMint.deposit(uint256 amount)`\n* Any user can call `IdleBatchedMint.executeBatch(bool _skipRebalance)`\n\nAfter the last step, the `IdleBatchedMint` contract is the owner of the Idle tokens, but at any point in time,\nusers A, B, and C can call `IdleBatchedMint.withdraw(uint256 batchId)` to withdraw their own Idle tokens.\n\n## Setup\n\n`yarn install`\n\n\n## Tests\n\n`npx hardhat test`\n\n## Integration test with network fork\n\nStart a mainnet fork:\n\n```\nexport IDLE_INFURA_KEY=YOUR_INFURA_KEY\n./fork.sh mainnet # or ./fork.sh kovan\n```\n\nRun the integration test:\n\n```\nnpx hardhat run scripts/integration_test.js --network local\n```\n\n\n### Deploy\n\n```\nexport MAINNET_PRIVATE_KEY=YOUR_MAINNET_KEY # without 0x prefix\nnpx hardhat run scripts/deploy.js --network YOUR_CONFIGURED_NETWORK\n```\n\n## Batches stats\n\n```\nnpx hardhat stats --network kovan --address 0xB9f068bDAe0D7C4796A04f59d0DEF33Ac784AfB4\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgravityblast%2Fidle-batched-mint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgravityblast%2Fidle-batched-mint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgravityblast%2Fidle-batched-mint/lists"}