Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/volumefi/curve-limit-order-bot-cw
https://github.com/volumefi/curve-limit-order-bot-cw
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/volumefi/curve-limit-order-bot-cw
- Owner: VolumeFi
- License: apache-2.0
- Created: 2023-07-06T14:33:10.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-06-06T16:55:45.000Z (7 months ago)
- Last Synced: 2024-06-06T18:50:19.754Z (7 months ago)
- Language: Rust
- Size: 191 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Limit-Order-Bot CosmWasm smart contract for Curve 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 |