Closed dib542 closed 5 months ago
Preview URL: https://3b061a61-65c5466a--duality-xyz-testnet.netlify.app Logs: https://app.netlify.com/sites/duality-xyz-testnet/deploys/65f25b040171f35e7a92b00f
Preview URL: https://3b061a61-65c5466a--duality-xyz-beta.netlify.app Logs: https://app.netlify.com/sites/duality-xyz-beta/deploys/65f25b517ef5a95e6041fb42
Preview URL: https://dd6abeb9-6e262a88--duality-xyz-testnet.netlify.app Logs: https://app.netlify.com/sites/duality-xyz-testnet/deploys/65f2ec7e0171f3c88092b12e
Preview URL: https://dd6abeb9-6e262a88--duality-xyz-beta.netlify.app Logs: https://app.netlify.com/sites/duality-xyz-beta/deploys/65f2ecc8c40002c824a10519
Preview URL: https://492306cf-cf7601d6--duality-xyz-testnet.netlify.app Logs: https://app.netlify.com/sites/duality-xyz-testnet/deploys/65f3121979bf5de7a34778f3
Preview URL: https://492306cf-cf7601d6--duality-xyz-beta.netlify.app Logs: https://app.netlify.com/sites/duality-xyz-beta/deploys/65f312635c5215e36ba4c591
Preview URL: https://39b86d56-39c18c85--duality-xyz-testnet.netlify.app Logs: https://app.netlify.com/sites/duality-xyz-testnet/deploys/660d48023fc241dd71481644
Preview URL: https://39b86d56-39c18c85--duality-xyz-beta.netlify.app Logs: https://app.netlify.com/sites/duality-xyz-beta/deploys/660d484fa926d3dc4b9a8032
Closing this issue to instead be the first part of the overall issue PR: #539
This PR adds new hooks:
useTxSimulationClient
: for a client specifically for tx simulation calls and returning txResults and msgResponsesuseSimulatedLimitOrderResult
: for handling specifically limit order simulations and resultsand also:
SWRCommon
synchronization state typesWith these new changes, the frontend approximation of swap behavior is replaced with simulated limit order msg calls to available chain nodes. This will help align the limit order logic to exactly the chain's behavior now and in the future should more improvements be made on the chain.