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

APIv5 txOrigin option and estimateGas issues #99

Open
mfw78 opened this issue Jan 18, 2022 · 0 comments
Open

APIv5 txOrigin option and estimateGas issues #99

mfw78 opened this issue Jan 18, 2022 · 0 comments

Comments

@mfw78
Copy link

mfw78 commented Jan 18, 2022

SDK does not provide support for the txOrigin option to be passed in the API for the event whereby a smart contract interacts with the Augustus Swapper, and not an EOA. This is documented in the developer docs (with room for much expansion on documentation), however Swagger also doesn't have a txOrigin option.

  1. Is the txOrigin actually required? If not, could all the documentation actually be updated?
  2. The gas checking parameters create issues when simulating the transaction, as a smart contract interacting with Paraswap may have no ETH balance, and therefore the simulation fails.

The specific use case that I have is:

  1. Keeper EOA that holds ETH. All transacitions originate from this EOA.
  2. A smart contract with logic deployed on chain that integrates multiple liquidity sources (including paraswap). This smart contract is the one that calls paraswap, and it has no ETH balance.

So - how do I use Paraswap to achieve the above? I have managed to simulate some transactions however as a forked network for testing diverges from mainnet, it's difficult to know if the transactions that I've simulated correctly have succeeded out of chance, or out of correct logic.

bogdoslavik pushed a commit to dystopia-exchange/paraswap-sdk that referenced this issue May 14, 2022
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

No branches or pull requests

1 participant