Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy Contracts for Recover Entrypoint #73

Merged
merged 6 commits into from
Oct 17, 2023

Conversation

NotJeremyLiu
Copy link
Member

@NotJeremyLiu NotJeremyLiu commented Oct 17, 2023

This PR

  • Deploys testnet and mainnet contracts to Osmosis and Neutron for the new always recover logic.

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,
    }
  • Note: SwapAndAction entry point still exists for when we want to still fail a tx upon error.

@NotJeremyLiu NotJeremyLiu merged commit ea2f9f3 into main Oct 17, 2023
5 checks passed
@NotJeremyLiu NotJeremyLiu deleted the jl/deploy-recover-entrypoint branch October 17, 2023 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants