Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/volumefi/momentum-bot-uni-v2-cosmwasm
https://github.com/volumefi/momentum-bot-uni-v2-cosmwasm
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/volumefi/momentum-bot-uni-v2-cosmwasm
- Owner: VolumeFi
- License: apache-2.0
- Created: 2023-06-20T17:24:31.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-06T04:26:32.000Z (over 1 year ago)
- Last Synced: 2024-04-16T01:42:25.523Z (9 months ago)
- Language: Rust
- Size: 241 KB
- Stars: 0
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Limit-Order-Bot CosmWasm smart contract for Uniswap V2 on Paloma
This is a CosmWasm smart contract to manage limit-orders on a limit-order-bot smart contract on EVM chain written in Vyper.
Users can deposit their token or coin into a Vyper smart contract on EVM chain.
There is a view function in the smart contract that returns deposit_id list that can be swapped on Uniswap V2 or a DEX that works just like it.
A scheduler or script fetch the list from the Vyper smart contract and run `multiple_withdraw` function with the list via Compass-EVM.
And then, the Vyper smart contract will swap the assets and sent them to the depositors.
## ExecuteMsg
### PutWithdraw
Run `withdraw` function on Vyper smart contract.
| Key | Type | Description |
|----------------------------|-------------|-----------------------------------------------------------------------|
| deposit_ids | Vec\ | Deposit ids that can swap on a Vyper smart contract |
| profit_taking_or_stop_loss | Vec\ | Vector of boolean that True for profit taking and False for stop loss |## QueryMsg
### GetJobId
Get `job_id` of Paloma message to run `multiple_withdraw` function on a Vyper smart contract.
| Key | Type | Description |
|-----|------|-------------|
| - | - | - |#### Response
| Key | Type | Description |
|--------|--------|------------------|
| job_id | String | Job Id on Paloma |