{"id":22111126,"url":"https://github.com/volumefi/twap-bot-cosmwasm","last_synced_at":"2025-03-24T04:28:40.212Z","repository":{"id":156786610,"uuid":"633035509","full_name":"VolumeFi/twap-bot-cosmwasm","owner":"VolumeFi","description":null,"archived":false,"fork":false,"pushed_at":"2024-09-02T19:34:35.000Z","size":291,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-29T10:29:37.406Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","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":"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":"2023-04-26T16:33:56.000Z","updated_at":"2024-09-02T19:34:36.000Z","dependencies_parsed_at":"2024-12-01T10:36:35.719Z","dependency_job_id":null,"html_url":"https://github.com/VolumeFi/twap-bot-cosmwasm","commit_stats":null,"previous_names":["volumefi/dca-bot-cosmwasm"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VolumeFi%2Ftwap-bot-cosmwasm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VolumeFi%2Ftwap-bot-cosmwasm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VolumeFi%2Ftwap-bot-cosmwasm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VolumeFi%2Ftwap-bot-cosmwasm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VolumeFi","download_url":"https://codeload.github.com/VolumeFi/twap-bot-cosmwasm/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245209170,"owners_count":20577995,"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:13.046Z","updated_at":"2025-03-24T04:28:40.189Z","avatar_url":"https://github.com/VolumeFi.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Uniswap V2 TWAP-Bot CosmWasm smart contract on Paloma\n\nThis is a CosmWasm smart contract to send messages to a TWAP-bot smart contract on EVM chain written in Vyper.\n\nUsers can deposit their token or coin into a Vyper smart contract on EVM chain.\n\nThere is a view function in the smart contract that returns swappable id, minimal out amount, and remaining trade counts that can be swapped on Uniswap V2.\n\nA scheduler or script fetch the swappable id from the Vyper smart contract and run `multiple_swap` function with the id and minimal out amount.\n\nAnd then, the Vyper smart contract will swap the assets and sent them to the depositors.\n\n## ExecuteMsg\n\n### PutSwap\n\nRun `multiple_swap` function on Vyper smart contract.\n\n| Key            | Type         | Description                        |\n|----------------|--------------|------------------------------------|\n| deposits       | Vec\u003cDeposit\u003e | Deposit information vector to Swap |\n\n### SetPaloma\n\nRun `set_paloma` function on Vyper smart contract to set CW address in `bytes32`.\n\n| Key | Type | Description |\n|-----|------|-------------|\n| -   | -    | -           |\n\n### UpdateCompass\n\nRun `update_compass` function on Vyper smart contract to update compass-evm contract address.\n\n| Key         | Type   | Description                      |\n|-------------|--------|----------------------------------|\n| new_compass | String | New compass-evm contract address |\n\n### UpdateRefundWallet\n\nRun `update_refund_wallet` function on Vyper smart contract to update refund wallet address that receives gas fee.\n\n| Key               | Type   | Description               |\n|-------------------|--------|---------------------------|\n| new_refund_wallet | String | New refund wallet address |\n\n### UpdateFee\n\nRun `update_fee` function on Vyper smart contract to update gas fee to pay for users.\n\n| Key | Type    | Description    |\n|-----|---------|----------------|\n| fee | Uint256 | New fee amount |\n\n### UpdateServiceFeeCollector\n\nRun `update_service_fee_collector` function on Vyper smart contract to update service fee collector address that receives service fee.\n\n| Key                       | Type   | Description                       |\n|---------------------------|--------|-----------------------------------|\n| new_service_fee_collector | String | New service fee collector address |\n\n### UpdateServiceFee\n\nRun `update_service_fee` function on Vyper smart contract to update service fee.\n\n| Key             | Type    | Description            |\n|-----------------|---------|------------------------|\n| new_service_fee | Uint256 | New service fee amount |\n\n## Struct\n\n### Deposit\n\n| Key             | Type    | Description                                  |\n|-----------------|---------|----------------------------------------------|\n| deposit_id      | u32     | Deposit id to swap on a Vyper smart contract |\n| remaining_count | u32     | Current remaining count of the TWAP bot      |\n| out_amount_min  | Uint256 | Minimal amount to prevent front running      |\n\n## QueryMsg\n\n### GetJobId\n\nGet `job_id` of Paloma message to run `multiple_withdraw` function on a Vyper smart contract.\n\n| Key | Type | Description |\n|-----|------|-------------|\n| -   | -    | -           |\n\n#### Response\n\n| Key    | Type   | Description      |\n|--------|--------|------------------|\n| job_id | String | Job Id on Paloma |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvolumefi%2Ftwap-bot-cosmwasm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvolumefi%2Ftwap-bot-cosmwasm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvolumefi%2Ftwap-bot-cosmwasm/lists"}