{"id":22111121,"url":"https://github.com/volumefi/vote-distribution-bot-vyper","last_synced_at":"2026-03-19T21:46:49.184Z","repository":{"id":177705686,"uuid":"645976240","full_name":"VolumeFi/vote-distribution-bot-vyper","owner":"VolumeFi","description":"Volume Vote Distribution Bot for StakeDAO","archived":false,"fork":false,"pushed_at":"2023-08-03T20:50:42.000Z","size":19,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"draft","last_synced_at":"2025-01-29T10:29:33.296Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://volume.finance","language":"Vyper","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":"2023-05-26T22:54:04.000Z","updated_at":"2023-06-13T08:43:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"07d0fd9e-96b2-4d1a-87c8-9a30c747db8f","html_url":"https://github.com/VolumeFi/vote-distribution-bot-vyper","commit_stats":null,"previous_names":["volumefi/vote-distribution-bot-vyper"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VolumeFi%2Fvote-distribution-bot-vyper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VolumeFi%2Fvote-distribution-bot-vyper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VolumeFi%2Fvote-distribution-bot-vyper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VolumeFi%2Fvote-distribution-bot-vyper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VolumeFi","download_url":"https://codeload.github.com/VolumeFi/vote-distribution-bot-vyper/tar.gz/refs/heads/draft","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245209161,"owners_count":20577994,"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:10.959Z","updated_at":"2026-01-05T21:07:25.207Z","avatar_url":"https://github.com/VolumeFi.png","language":"Vyper","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vote Distribution Bot\n\n## Dependencies\n\n[Brownie](https://github.com/eth-brownie/brownie)\n\n[Ganache](https://github.com/trufflesuite/ganache)\n\n## vote_distribution_bot.vy\n\n### Read-Only functions\n\n### FACTORY\n\n| Key        | Type    | Description                      |\n| ---------- | ------- | -------------------------------- |\n| **Return** | address | Returns factory contract address |\n\n\n### compass\n\n| Key        | Type    | Description                                |\n| ---------- | ------- | ------------------------------------------ |\n| **Return** | address | Returns compass-evm smart contract address |\n\n### locked_amount\n\n| Key        | Type    | Description               |\n| ---------- | ------- | ------------------------- |\n| **Return** | uint256 | Returns locked SDT amount |\n\n### unlock_time\n\n| Key        | Type    | Description                       |\n| ---------- | ------- | --------------------------------- |\n| **Return** | uint256 | Returns unlock timestamp in veSDT |\n\n## State-Changing functions\n\n### swap_lock\n\nDeposit a token with swap path to SDT in Uniswap and amount. This is run by users.\n\n| Key         | Type      | Description                                 |\n| ----------- | --------- | ------------------------------------------- |\n| path        | address[] | Initial token swap path via Uniswap V2      |\n| amount0     | uint256   | Deposit token amount                        |\n| min_amount1 | uint256   | Expected token amount from the initial swap |\n| unlock_time | uint256   | Unlock time for veSDT                       |\n\n### vote\n\nVote to the gauge. This is run by Compass-EVM only.\n\n| Key          | Type    | Description               |\n| ------------ | ------- | ------------------------- |\n| _gauge_addr  | address | Gauge address of StakeDAO |\n| _user_weight | uint256 | User weight for the gauge |\n\n### claim\n\nClaim reward, swap and send the token to the depositor. This is run by users.\n\n| Key         | Type    | Description                                                    |\n| ----------- | ------- | -------------------------------------------------------------- |\n| path        | uint256 | token swap path from USDC to the expected token via Uniswap V2 |\n| _min_amount | uint256 | Mininum amount of original token to receive on withdraw        |\n| ----------  | ------- | ------------------------                                       |\n| **Return**  | uint256 | Claimed token amount                                           |\n\n### withdraw\n\nWithdraw SDT, swap and send the token to the depositor. This is run by users.\n\n| Key         | Type    | Description                                                   |\n| ----------- | ------- | ------------------------------------------------------------- |\n| path        | uint256 | token swap path from SDT to the expected token via Uniswap V2 |\n| _min_amount | uint256 | Mininum amount of original token to receive on withdraw       |\n| ----------  | ------- | ------------------------                                      |\n| **Return**  | uint256 | Withdrawn token amount                                        |\n\n### update_compass\n\nUpdate Compass-EVM address.  This is run by Compass-EVM only.\n\n| Key         | Type    | Description             |\n| ----------- | ------- | ----------------------- |\n| new_compass | address | New compass-evm address |\n\n## factory.vy\n\n### Read-Only functions\n\n### blueprint\n\n| Key        | Type    | Description                        |\n| ---------- | ------- | ---------------------------------- |\n| **Return** | address | Returns blueprint contract address |\n\n\n### compass\n\n| Key        | Type    | Description                                |\n| ---------- | ------- | ------------------------------------------ |\n| **Return** | address | Returns compass-evm smart contract address |\n\n### bot_to_owner\n\n| Key        | Type    | Description               |\n| ---------- | ------- | ------------------------- |\n| arg0       | uint256 | Returns locked SDT amount |\n| **Return** | uint256 | Returns locked SDT amount |\n\n### unlock_time\n\n| Key        | Type    | Description                       |\n| ---------- | ------- | --------------------------------- |\n| **Return** | uint256 | Returns unlock timestamp in veSDT |\n\n## State-Changing functions\n\n### deploy_vote_distribution_bot\n\nDeploy a vote distribution bot for users. This is run by users.\n\n| Key    | Type    | Description               |\n| ------ | ------- | ------------------------- |\n| router | address | Uniswap V2 Router address |\n\n### deposited\n\nEmit event for deposit. This is run by bot smart contracts.\n\n| Key          | Type    | Description               |\n| ------------ | ------- | ------------------------- |\n| _gauge_addr  | address | Gauge address of StakeDAO |\n| _user_weight | uint256 | User weight for the gauge |\n\n### claimed\n\nEmit event for claim. This is run by bot smart contracts.\n\n| Key       | Type    | Description                   |\n| --------- | ------- | ----------------------------- |\n| out_token | address | Receiving token from claiming |\n| amount0   | uint256 | Received amount               |\n\n### withdraw\n\nEmit event for withdraw. This is run by bot smart contracts.\n\n| Key        | Type    | Description                      |\n| ---------- | ------- | -------------------------------- |\n| sdt_amount | uint256 | Unlocked SDT token amount        |\n| out_token  | address | Receiving token from withdrawing |\n| amount0    | uint256 | Received amount                  |\n\n### update_compass\n\nUpdate Compass-EVM address.  This is run by Compass-EVM only.\n\n| Key         | Type    | Description             |\n| ----------- | ------- | ----------------------- |\n| new_compass | address | New compass-evm address |\n\n### update_blueprint\n\nUpdate blueprint address.  This is run by Compass-EVM only.\n\n| Key           | Type    | Description           |\n| ------------- | ------- | --------------------- |\n| new_blueprint | address | New blueprint address |","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvolumefi%2Fvote-distribution-bot-vyper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvolumefi%2Fvote-distribution-bot-vyper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvolumefi%2Fvote-distribution-bot-vyper/lists"}