Giter Site home page Giter Site logo

curve-twap-bot-cw's Introduction

Curve TWAP-Bot CosmWasm smart contract on Paloma

This is a CosmWasm smart contract to send messages to a TWAP-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 swappable id, minimal out amount, and remaining trade counts that can be swapped on Curve.

A scheduler or script fetch the swappable id from the Vyper smart contract and run multiple_swap function with the id and minimal out amount.

And then, the Vyper smart contract will swap the assets and sent them to the depositors.

ExecuteMsg

PutSwap

Run multiple_swap function on Vyper smart contract.

Key Type Description
deposits Vec Deposit information vector to Swap

SetPaloma

Run set_paloma function on Vyper smart contract to set CW address in bytes32.

Key Type Description
- - -

UpdateCompass

Run update_compass function on Vyper smart contract to update compass-evm contract address.

Key Type Description
new_compass String New compass-evm contract address

UpdateRefundWallet

Run update_refund_wallet function on Vyper smart contract to update refund wallet address that receives gas fee.

Key Type Description
new_refund_wallet String New refund wallet address

UpdateFee

Run update_fee function on Vyper smart contract to update gas fee to pay for users.

Key Type Description
fee Uint256 New fee amount

Struct

Deposit

Key Type Description
deposit_id u32 Deposit id to swap on a Vyper smart contract
remaining_count u32 Current remaining count of the TWAP bot
out_amount_min Uint256 Minimal amount to prevent front running

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

curve-twap-bot-cw's People

Contributors

webelf101 avatar taariq avatar dependabot[bot] avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.