https://github.com/volumefi/limit-order-bot-cosmwasm
Cosmwasm Limit Order Bot Execution for Paloma
https://github.com/volumefi/limit-order-bot-cosmwasm
Last synced: 7 months ago
JSON representation
Cosmwasm Limit Order Bot Execution for Paloma
- Host: GitHub
- URL: https://github.com/volumefi/limit-order-bot-cosmwasm
- Owner: VolumeFi
- License: apache-2.0
- Created: 2023-03-29T18:52:21.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-09-30T20:09:53.000Z (almost 4 years ago)
- Last Synced: 2025-01-29T10:29:36.117Z (over 1 year ago)
- Size: 230 KB
- Stars: 0
- Watchers: 1
- 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 Paloma
This is a CosmWasm smart contract to manage limit-orders on Ethereum limit-order-bot smart contract in Vyper.
Users can deposit Eth into Vyper smart contract on Ethereum.
The smart contract will add liquidity to expected price between current price.
This deposit requires Eth only.
When Eth price gets the expected price, the liquidity is withdrawn to the user.
So the users can get desired amount of USDC and additional some USDC and Eth from liquidity fee.
## ExecuteMsg
### GetDeposit
Get deposit information from Vyper contract.
| Key | Type | Description |
|----------------|---------|-------------------------------------|
| token_id | u128 | Uniswap V3 NFLP token_id |
| sqrt_price_x96 | Uint256 | sqrtpricex96 value of the liquidity |
| deadline | u64 | deadline of limit-order |
### PutWithdraw
Run withdraw transaction for orders that reaches to the expected price to Vyper contract via pigeons.
| Key | Type | Description |
|-----|------|-------------|
| - | - | - |
### PutCancel
Run cancel transaction for orders that reaches to the deadline to Vyper contract via pigeons.
| Key | Type | Description |
|-----|------|-------------|
| - | - | - |
### GetWithdraw
Get withdraw / cancel information from Vyper contract.
| Key | Type | Description |
|-----------|-----------|-------------------------------------|
| token_ids | Vec | withdrawn or canceled token id list |
## QueryMsg
### DepositList
Get deposited token_id list.
| Key | Type | Description |
|-----|------|-------------|
| - | - | - |
#### Response
| Key | Type | Description |
|---------------|-----------|-------------------------------|
| list | Vec | Uniswap V3 NFLP token_id list |
### WithdrawableList
Get token_id list that reach to expected price.
| Key | Type | Description |
|-----|------|-------------|
| - | - | - |
#### Response
| Key | Type | Description |
|---------------|-----------|-------------------------------|
| list | Vec | Uniswap V3 NFLP token_id list |
### CancelableList
Get token_id list that reach to deadline.
| Key | Type | Description |
|-----|------|-------------|
| - | - | - |
#### Response
| Key | Type | Description |
|---------------|-----------|-------------------------------|
| list | Vec | Uniswap V3 NFLP token_id list |