Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/volumefi/curve-squeeze-leverage-bot-cw
https://github.com/volumefi/curve-squeeze-leverage-bot-cw
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/volumefi/curve-squeeze-leverage-bot-cw
- Owner: VolumeFi
- License: apache-2.0
- Created: 2024-01-19T13:15:05.000Z (12 months ago)
- Default Branch: master
- Last Pushed: 2024-06-21T18:46:46.000Z (7 months ago)
- Last Synced: 2024-06-22T10:49:25.481Z (7 months ago)
- Language: Rust
- Size: 29.3 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Curve Degen Leverage Bot CosmWasm smart contract
This is a CosmWasm smart contract to manage Curve Leverage Lending Bot smart contract on EVM chain written in Vyper.
Users can create a crvUSD loan by deposit their token into a Vyper smart contract with leverage option on EVM chain.
A scheduler or script fetch events from the Vyper smart contract and run `repay_bot` function with the parameters via Compass-EVM on high risk or expiration.
And then, the Vyper smart contract will repay the bot.
## ExecuteMsg
### RepayBot
Run `repay_bot` function on Vyper smart contract.
| Key | Type | Description |
|----------------------------|----------------|---------------------------------|
| bot_info | Vec\ | Array of data to add collateral |### SetPaloma
Run `set_paloma` function on Vyper smart contract to register this contract address data in the Vyper contract.
| Key | Type | Description |
|-----|------|-------------|
| - | - | - |UpdateCompass { new_compass: String },
### Update*
Run `update_*` function on Vyper smart contract to register this contract address data in the Vyper contract.
| Key | Type | Description |
|-----|------|-------------|
| - | - | - |## 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 |## Structs
### BotInfo
| Key | Type | Description |
|---------------|----------------|---------------------------------------|
| bot | String | Bot address |
| callbacker | String | Callbacker contract address |
| callback_args | Vec\ | Callback args for callbacker contract |