skip-mev / skip-go-cosmwasm-contracts

CosmWasm Contracts for Skip Go
Apache License 2.0
27 stars 25 forks source link

Deploy Contracts for Recover Entrypoint #73

Closed NotJeremyLiu closed 1 year ago

NotJeremyLiu commented 1 year ago

This PR

Interface Change

There is now a new entry point message, which has all the same params as the SwapAndAction but with an additional recovery_addr field, which is where info.funds() will be sent to if any error that we can catch occurs in the SwapAndAction call (out of gas is an example error we cannot catch):

    SwapAndActionWithRecover {
        user_swap: Swap,
        min_coin: Coin,
        timeout_timestamp: u64,
        post_swap_action: Action,
        affiliates: Vec<Affiliate>,
        recovery_addr: Addr,
    }