diff --git a/package.json b/package.json index 0e4fb512..9175e1e8 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "analyze": "ANALYZE=true yarn build" }, "dependencies": { - "@blockworks-foundation/mango-client": "^3.5.5", + "@blockworks-foundation/mango-client": "^3.6.1", "@headlessui/react": "^0.0.0-insiders.2dbc38c", "@heroicons/react": "^1.0.0", "@jup-ag/react-hook": "^1.0.0-beta.22", diff --git a/stores/useMangoStore.tsx b/stores/useMangoStore.tsx index d0a7cd19..79791971 100644 --- a/stores/useMangoStore.tsx +++ b/stores/useMangoStore.tsx @@ -89,7 +89,7 @@ export const serumProgramId = new PublicKey( const mangoGroupPk = new PublicKey(defaultMangoGroupIds!.publicKey) export const SECONDS = 1000 -export const CLIENT_TX_TIMEOUT = 70000 +export const CLIENT_TX_TIMEOUT = 90000 // Used to retry loading the MangoGroup and MangoAccount if an rpc node error occurs let mangoGroupRetryAttempt = 0 @@ -308,6 +308,7 @@ const useMangoStore = create< const connection = new Connection(rpcUrl, 'processed' as Commitment) const client = new MangoClient(connection, programId, { timeout: CLIENT_TX_TIMEOUT, + prioritizationFee: 2, postSendTxCallback: ({ txid }: { txid: string }) => { notify({ title: 'Transaction sent', diff --git a/yarn.lock b/yarn.lock index c503cb65..de198cb0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1008,10 +1008,10 @@ "@babel/helper-validator-identifier" "^7.16.7" to-fast-properties "^2.0.0" -"@blockworks-foundation/mango-client@^3.5.5": - version "3.5.5" - resolved "https://registry.yarnpkg.com/@blockworks-foundation/mango-client/-/mango-client-3.5.5.tgz#de71141571e97acae5165b8d94d1149b67f00e4f" - integrity sha512-FSGSo8rqWthfa1ClLmbFrZr6J7iEpw+/rrI04x3a4pPZwpQfiIRaBlwc5SCrD7+q+DR1MD+9vFDRxBpU9hKwfw== +"@blockworks-foundation/mango-client@^3.6.1": + version "3.6.1" + resolved "https://registry.yarnpkg.com/@blockworks-foundation/mango-client/-/mango-client-3.6.1.tgz#236b63cabc4c25d9e489a964c62891e89f8d0920" + integrity sha512-t/g0dfS3FE1JZygOlnP0xCkNYFSjDAGy+WNCfZT1wfvGG94qq6ozuI5R4Vw0JOBZtXWKg8ks0Z3/nv/UokKGjA== dependencies: "@project-serum/anchor" "^0.21.0" "@project-serum/serum" "0.13.55"