dydxprotocol / v4-web

Other
74 stars 61 forks source link

fix: place order tx should use marketInfo and currentHeight from abacus payload #948

Closed aforaleka closed 3 weeks ago

aforaleka commented 3 weeks ago

this should skip 2 round trip calls for getting market info and block height. abacus already has that info from fetched market info (*for active market) and polled/estimated block height

before:

image

testing:

vercel[bot] commented 3 weeks ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
v4-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 23, 2024 7:31pm
v4-testnet ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 23, 2024 7:31pm
aforaleka commented 3 weeks ago

i think abacus has had those fields for quite a while, we just missed them when migrating / when they were added @tyleroooo t_t