matt-scientist

Results 5 comments of matt-scientist

Has anyone been able to solve this? Have tried all discussed solutions in other threads with no luck.

I was able to get everything working using the CDN script links in my `index.html`: ``` ``` I then waited for window.p5 to be defined: ``` useEffect(() => { //...

any update on this? I'm experiencing this as well

Looks like this only goes through 1 market - for a transitive swap (A -> B + B -> C) wouldn't you have to sum price impact against both markets?

I think this is actually an issue with the `useOwnedTokenAccount` hook. The account is updated properly in the `_OWNED_TOKEN_ACCOUNTS_CACHE` by using `provider.connection.onAccountChange`, but this value isn't propagated to the returned...