mango-v4/ts/client/index.html

14 lines
110 KiB
HTML

<!DOCTYPE html><html class="default"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>@blockworks-foundation/mango-v4</title><meta name="description" content="Documentation for @blockworks-foundation/mango-v4"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="assets/style.css"/><link rel="stylesheet" href="assets/highlight.css"/><script async src="assets/search.js" id="search-script"></script></head><body><script>document.body.classList.add(localStorage.getItem("tsd-theme") || "os")</script><header><div class="tsd-page-toolbar"><div class="container"><div class="table-wrap"><div class="table-cell" id="tsd-search" data-base="."><div class="field"><label for="tsd-search-field" class="tsd-widget search no-caption">Search</label><input type="text" id="tsd-search-field"/></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="index.html" class="title">@blockworks-foundation/mango-v4</a></div><div class="table-cell" id="tsd-widgets"><div id="tsd-filter"><a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a><div class="tsd-filter-group"><div class="tsd-select" id="tsd-filter-visibility"><span class="tsd-select-label">All</span><ul class="tsd-select-list"><li data-value="public">Public</li><li data-value="protected">Public/Protected</li><li data-value="private" class="selected">All</li></ul></div> <input type="checkbox" id="tsd-filter-inherited" checked/><label class="tsd-widget" for="tsd-filter-inherited">Inherited</label><input type="checkbox" id="tsd-filter-externals" checked/><label class="tsd-widget" for="tsd-filter-externals">Externals</label></div></div><a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a></div></div></div></div><div class="tsd-page-title"><div class="container"><h1>@blockworks-foundation/mango-v4</h1></div></div></header><div class="container container-main"><div class="row"><div class="col-8 col-content"><section class="tsd-panel-group tsd-index-group"><h2>Index</h2><section class="tsd-panel tsd-index-panel"><div class="tsd-index-content"><section class="tsd-index-section "><h3>Enumerations</h3><ul class="tsd-index-list"><li class="tsd-kind-enum"><a href="enums/OracleProvider.html" class="tsd-kind-icon">Oracle<wbr/>Provider</a></li><li class="tsd-kind-enum"><a href="enums/SwapMode.html" class="tsd-kind-icon">Swap<wbr/>Mode</a></li></ul></section><section class="tsd-index-section "><h3>Classes</h3><ul class="tsd-index-list"><li class="tsd-kind-class tsd-has-type-parameter"><a href="classes/As.html" class="tsd-kind-icon">As</a></li><li class="tsd-kind-class"><a href="classes/Bank.html" class="tsd-kind-icon">Bank</a></li><li class="tsd-kind-class"><a href="classes/BookSide.html" class="tsd-kind-icon">Book<wbr/>Side</a></li><li class="tsd-kind-class"><a href="classes/BookSideType.html" class="tsd-kind-icon">Book<wbr/>Side<wbr/>Type</a></li><li class="tsd-kind-class"><a href="classes/FlashLoanType.html" class="tsd-kind-icon">Flash<wbr/>Loan<wbr/>Type</a></li><li class="tsd-kind-class"><a href="classes/FlashLoanWithdraw.html" class="tsd-kind-icon">Flash<wbr/>Loan<wbr/>Withdraw</a></li><li class="tsd-kind-class"><a href="classes/Group.html" class="tsd-kind-icon">Group</a></li><li class="tsd-kind-class"><a href="classes/HealthType.html" class="tsd-kind-icon">Health<wbr/>Type</a></li><li class="tsd-kind-class"><a href="classes/I80F48.html" class="tsd-kind-icon">I80<wbr/>F48</a></li><li class="tsd-kind-class"><a href="classes/I80F48Dto.html" class="tsd-kind-icon">I80<wbr/>F48<wbr/>Dto</a></li><li class="tsd-kind-class"><a href="classes/InnerNode.html" class="tsd-kind-icon">Inner<wbr/>Node</a></li><li class="tsd-kind-class"><a href="classes/InterestRateParams.html" class="tsd-kind-icon">Interest<wbr/>Rate<wbr/>Params</a></li><li class="tsd-kind-class"><a href="classes/LeafNode.html" class="tsd-kind-icon">Leaf<wbr/>Node</a></li><li class="tsd-kind-class"><a href="classes/MangoAccount.html" class="tsd-kind-icon">Mango<wbr/>Account</a></li><li class="tsd-kind-class"><a href="classes/MangoClient.html" class="tsd-kind-icon">Mango<wbr/>Client</a></li><li class="tsd-kind-class"><a href="classes/MintInfo.html" class="tsd-kind-icon">Mint<wbr/>Info</a></li><li class="tsd-kind-class"><a href="classes/OracleConfigParams.html" class="tsd-kind-icon">Oracle<wbr/>Config<wbr/>Params</a></li><li class="tsd-kind-class"><a href="classes/PerpEventQueue.html" class="tsd-kind-icon">Perp<wbr/>Event<wbr/>Queue</a></li><li class="tsd-kind-class"><a href="classes/PerpMarket.html" class="tsd-kind-icon">Perp<wbr/>Market</a></li><li class="tsd-kind-class"><a href="classes/PerpOo.html" class="tsd-kind-icon">Perp<wbr/>Oo</a></li><li class="tsd-kind-class"><a href="classes/PerpOoDto.html" class="tsd-kind-icon">Perp<wbr/>Oo<wbr/>Dto</a></li><li class="tsd-kind-class"><a href="classes/PerpOrder.html" class="tsd-kind-icon">Perp<wbr/>Order</a></li><li class="tsd-kind-class"><a href="classes/PerpOrderSide.html" class="tsd-kind-icon">Perp<wbr/>Order<wbr/>Side</a></li><li class="tsd-kind-class"><a href="classes/PerpOrderType.html" class="tsd-kind-icon">Perp<wbr/>Order<wbr/>Type</a></li><li class="tsd-kind-class"><a href="classes/PerpPosition.html" class="tsd-kind-icon">Perp<wbr/>Position</a></li><li class="tsd-kind-class"><a href="classes/PerpPositionDto.html" class="tsd-kind-icon">Perp<wbr/>Position<wbr/>Dto</a></li><li class="tsd-kind-class"><a href="classes/Serum3Market.html" class="tsd-kind-icon">Serum3<wbr/>Market</a></li><li class="tsd-kind-class"><a href="classes/Serum3OrderType.html" class="tsd-kind-icon">Serum3<wbr/>Order<wbr/>Type</a></li><li class="tsd-kind-class"><a href="classes/Serum3Orders.html" class="tsd-kind-icon">Serum3<wbr/>Orders</a></li><li class="tsd-kind-class"><a href="classes/Serum3PositionDto.html" class="tsd-kind-icon">Serum3<wbr/>Position<wbr/>Dto</a></li><li class="tsd-kind-class"><a href="classes/Serum3SelfTradeBehavior.html" class="tsd-kind-icon">Serum3<wbr/>Self<wbr/>Trade<wbr/>Behavior</a></li><li class="tsd-kind-class"><a href="classes/Serum3Side.html" class="tsd-kind-icon">Serum3<wbr/>Side</a></li><li class="tsd-kind-class"><a href="classes/StubOracle.html" class="tsd-kind-icon">Stub<wbr/>Oracle</a></li><li class="tsd-kind-class"><a href="classes/TokenPosition.html" class="tsd-kind-icon">Token<wbr/>Position</a></li><li class="tsd-kind-class"><a href="classes/TokenPositionDto.html" class="tsd-kind-icon">Token<wbr/>Position<wbr/>Dto</a></li></ul></section><section class="tsd-index-section "><h3>Interfaces</h3><ul class="tsd-index-list"><li class="tsd-kind-interface"><a href="interfaces/BankForHealth.html" class="tsd-kind-icon">Bank<wbr/>For<wbr/>Health</a></li><li class="tsd-kind-interface"><a href="interfaces/Event.html" class="tsd-kind-icon">Event</a></li><li class="tsd-kind-interface"><a href="interfaces/ExactOutSwapParams.html" class="tsd-kind-icon">Exact<wbr/>Out<wbr/>Swap<wbr/>Params</a></li><li class="tsd-kind-interface"><a href="interfaces/Fee.html" class="tsd-kind-icon">Fee</a></li><li class="tsd-kind-interface"><a href="interfaces/FillEvent.html" class="tsd-kind-icon">Fill<wbr/>Event</a></li><li class="tsd-kind-interface"><a href="interfaces/LiquidateEvent.html" class="tsd-kind-icon">Liquidate<wbr/>Event</a></li><li class="tsd-kind-interface"><a href="interfaces/MarketInfo.html" class="tsd-kind-icon">Market<wbr/>Info</a></li><li class="tsd-kind-interface"><a href="interfaces/OutEvent.html" class="tsd-kind-icon">Out<wbr/>Event</a></li><li class="tsd-kind-interface"><a href="interfaces/Quote.html" class="tsd-kind-icon">Quote</a></li><li class="tsd-kind-interface"><a href="interfaces/QuoteParams.html" class="tsd-kind-icon">Quote<wbr/>Params</a></li><li class="tsd-kind-interface"><a href="interfaces/RouteInfo.html" class="tsd-kind-icon">Route<wbr/>Info</a></li><li class="tsd-kind-interface"><a href="interfaces/SwapParams.html" class="tsd-kind-icon">Swap<wbr/>Params</a></li><li class="tsd-kind-interface"><a href="interfaces/TransactionFeeInfo.html" class="tsd-kind-icon">Transaction<wbr/>Fee<wbr/>Info</a></li></ul></section><section class="tsd-index-section "><h3>Type aliases</h3><ul class="tsd-index-list"><li class="tsd-kind-type-alias"><a href="index.html#AccountInfoMap" class="tsd-kind-icon">Account<wbr/>Info<wbr/>Map</a></li><li class="tsd-kind-type-alias"><a href="index.html#AmmLabel" class="tsd-kind-icon">Amm<wbr/>Label</a></li><li class="tsd-kind-type-alias tsd-has-type-parameter"><a href="index.html#Modify" class="tsd-kind-icon">Modify</a></li><li class="tsd-kind-type-alias"><a href="index.html#OracleConfig" class="tsd-kind-icon">Oracle<wbr/>Config</a></li><li class="tsd-kind-type-alias"><a href="index.html#OracleConfigDto" class="tsd-kind-icon">Oracle<wbr/>Config<wbr/>Dto</a></li><li class="tsd-kind-type-alias"><a href="index.html#ParsedFillEvent" class="tsd-kind-icon">Parsed<wbr/>Fill<wbr/>Event</a></li><li class="tsd-kind-type-alias"><a href="index.html#PerpMarketIndex" class="tsd-kind-icon">Perp<wbr/>Market<wbr/>Index</a></li><li class="tsd-kind-type-alias"><a href="index.html#PlatformFee" class="tsd-kind-icon">Platform<wbr/>Fee</a></li><li class="tsd-kind-type-alias"><a href="index.html#QuoteMintToReferrer" class="tsd-kind-icon">Quote<wbr/>Mint<wbr/>To<wbr/>Referrer</a></li><li class="tsd-kind-type-alias"><a href="index.html#Routes" class="tsd-kind-icon">Routes</a></li><li class="tsd-kind-type-alias"><a href="index.html#StablePriceModel" class="tsd-kind-icon">Stable<wbr/>Price<wbr/>Model</a></li><li class="tsd-kind-type-alias"><a href="index.html#Token" class="tsd-kind-icon">Token</a></li><li class="tsd-kind-type-alias"><a href="index.html#TokenIndex" class="tsd-kind-icon">Token<wbr/>Index</a></li><li class="tsd-kind-type-alias"><a href="index.html#TokenMintAddress" class="tsd-kind-icon">Token<wbr/>Mint<wbr/>Address</a></li></ul></section><section class="tsd-index-section "><h3>Variables</h3><ul class="tsd-index-list"><li class="tsd-kind-variable"><a href="index.html#I64_MAX_BN" class="tsd-kind-icon">I64_<wbr/>MAX_<wbr/>BN</a></li><li class="tsd-kind-variable"><a href="index.html#MANGO_ROUTER_API_URL" class="tsd-kind-icon">MANGO_<wbr/>ROUTER_<wbr/>API_<wbr/>URL</a></li><li class="tsd-kind-variable"><a href="index.html#MANGO_V4_ID" class="tsd-kind-icon">MANGO_<wbr/>V4_<wbr/>ID</a></li><li class="tsd-kind-variable"><a href="index.html#NullPerpEditParams" class="tsd-kind-icon">Null<wbr/>Perp<wbr/>Edit<wbr/>Params</a></li><li class="tsd-kind-variable"><a href="index.html#NullTokenEditParams" class="tsd-kind-icon">Null<wbr/>Token<wbr/>Edit<wbr/>Params</a></li><li class="tsd-kind-variable"><a href="index.html#OPENBOOK_PROGRAM_ID" class="tsd-kind-icon">OPENBOOK_<wbr/>PROGRAM_<wbr/>ID</a></li><li class="tsd-kind-variable"><a href="index.html#QUOTE_DECIMALS" class="tsd-kind-icon">QUOTE_<wbr/>DECIMALS</a></li><li class="tsd-kind-variable"><a href="index.html#TrueIxGateParams" class="tsd-kind-icon">True<wbr/>Ix<wbr/>Gate<wbr/>Params</a></li><li class="tsd-kind-variable"><a href="index.html#U64_MAX_BN" class="tsd-kind-icon">U64_<wbr/>MAX_<wbr/>BN</a></li></ul></section><section class="tsd-index-section "><h3>Functions</h3><ul class="tsd-index-list"><li class="tsd-kind-function"><a href="index.html#HUNDRED_I80F48" class="tsd-kind-icon">HUNDRED_<wbr/>I80<wbr/>F48</a></li><li class="tsd-kind-function"><a href="index.html#MAX_I80F48" class="tsd-kind-icon">MAX_<wbr/>I80<wbr/>F48</a></li><li class="tsd-kind-function"><a href="index.html#ONE_I80F48" class="tsd-kind-icon">ONE_<wbr/>I80<wbr/>F48</a></li><li class="tsd-kind-function"><a href="index.html#RUST_I64_MAX" class="tsd-kind-icon">RUST_<wbr/>I64_<wbr/>MAX</a></li><li class="tsd-kind-function"><a href="index.html#RUST_I64_MIN" class="tsd-kind-icon">RUST_<wbr/>I64_<wbr/>MIN</a></li><li class="tsd-kind-function"><a href="index.html#RUST_U64_MAX" class="tsd-kind-icon">RUST_<wbr/>U64_<wbr/>MAX</a></li><li class="tsd-kind-function"><a href="index.html#ZERO_I80F48" class="tsd-kind-icon">ZERO_<wbr/>I80<wbr/>F48</a></li><li class="tsd-kind-function"><a href="index.html#bpsToDecimal" class="tsd-kind-icon">bps<wbr/>To<wbr/>Decimal</a></li><li class="tsd-kind-function"><a href="index.html#buildIxGate" class="tsd-kind-icon">build<wbr/>Ix<wbr/>Gate</a></li><li class="tsd-kind-function"><a href="index.html#buildVersionedTx" class="tsd-kind-icon">build<wbr/>Versioned<wbr/>Tx</a></li><li class="tsd-kind-function"><a href="index.html#createAssociatedTokenAccountIdempotentInstruction" class="tsd-kind-icon">create<wbr/>Associated<wbr/>Token<wbr/>Account<wbr/>Idempotent<wbr/>Instruction</a></li><li class="tsd-kind-function"><a href="index.html#fetchJupiterTransaction" class="tsd-kind-icon">fetch<wbr/>Jupiter<wbr/>Transaction</a></li><li class="tsd-kind-function"><a href="index.html#fetchRoutes" class="tsd-kind-icon">fetch<wbr/>Routes</a></li><li class="tsd-kind-function"><a href="index.html#getAssociatedTokenAddress" class="tsd-kind-icon">get<wbr/>Associated<wbr/>Token<wbr/>Address</a></li><li class="tsd-kind-function"><a href="index.html#percentageToDecimal" class="tsd-kind-icon">percentage<wbr/>To<wbr/>Decimal</a></li><li class="tsd-kind-function"><a href="index.html#prepareMangoRouterInstructions" class="tsd-kind-icon">prepare<wbr/>Mango<wbr/>Router<wbr/>Instructions</a></li><li class="tsd-kind-function"><a href="index.html#toNative" class="tsd-kind-icon">to<wbr/>Native</a></li><li class="tsd-kind-function"><a href="index.html#toNativeI80F48" class="tsd-kind-icon">to<wbr/>Native<wbr/>I80<wbr/>F48</a></li><li class="tsd-kind-function"><a href="index.html#toNativeI80F48ForQuote" class="tsd-kind-icon">to<wbr/>Native<wbr/>I80<wbr/>F48<wbr/>For<wbr/>Quote</a></li><li class="tsd-kind-function"><a href="index.html#toUiDecimals" class="tsd-kind-icon">to<wbr/>Ui<wbr/>Decimals</a></li><li class="tsd-kind-function"><a href="index.html#toUiDecimalsForQuote" class="tsd-kind-icon">to<wbr/>Ui<wbr/>Decimals<wbr/>For<wbr/>Quote</a></li><li class="tsd-kind-function"><a href="index.html#toUiI80F48" class="tsd-kind-icon">to<wbr/>Ui<wbr/>I80<wbr/>F48</a></li></ul></section></div></section></section><section class="tsd-panel-group tsd-member-group "><h2>Type aliases</h2><section class="tsd-panel tsd-member tsd-kind-type-alias"><a id="AccountInfoMap" class="tsd-anchor"></a><h3 class="tsd-anchor-link">Account<wbr/>Info<wbr/>Map<a href="#AccountInfoMap" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">Account<wbr/>Info<wbr/>Map<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Map</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">AccountInfo</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Buffer</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol">&gt;</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/13ac422/ts/client/src/router.ts#L58">router.ts:58</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-type-alias"><a id="AmmLabel" class="tsd-anchor"></a><h3 class="tsd-anchor-link">Amm<wbr/>Label<a href="#AmmLabel" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">Amm<wbr/>Label<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">&quot;Aldrin&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;Crema&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;Cropper&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;Cykura&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;DeltaFi&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;GooseFX&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;Invariant&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;Lifinity&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;Lifinity V2&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;Marinade&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;Mercurial&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;Meteora&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;Raydium&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;Raydium CLMM&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;Saber&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;Serum&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;Orca&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;Step&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;Penguin&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;Saros&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;Stepn&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;Orca (Whirlpools)&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;Sencha&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;Saber (Decimals)&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;Dradex&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;Balansol&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;Openbook&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;Unknown&quot;</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/13ac422/ts/client/src/router.ts#L60">router.ts:60</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-type-alias tsd-has-type-parameter"><a id="Modify" class="tsd-anchor"></a><h3 class="tsd-anchor-link">Modify<a href="#Modify" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">Modify<span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type" data-tsd-kind="Type parameter">R</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Omit</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-symbol">keyof </span><span class="tsd-signature-type" data-tsd-kind="Type parameter">R</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type" data-tsd-kind="Type parameter">R</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/13ac422/ts/client/src/types.ts#L3">types.ts:3</a></li></ul></aside><h4 class="tsd-type-parameters-title">Type parameters</h4><ul class="tsd-type-parameters"><li><h4>T</h4></li><li><h4>R</h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-type-alias"><a id="OracleConfig" class="tsd-anchor"></a><h3 class="tsd-anchor-link">Oracle<wbr/>Config<a href="#OracleConfig" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">Oracle<wbr/>Config<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>confFilter<span class="tsd-signature-symbol">: </span><a href="classes/I80F48.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48</a><span class="tsd-signature-symbol">; </span>maxStalenessSlots<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BN</span><span class="tsd-signature-symbol"> }</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/13ac422/ts/client/src/accounts/bank.ts#L15">accounts/bank.ts:15</a></li></ul></aside><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter"><h5>conf<wbr/>Filter<span class="tsd-signature-symbol">: </span><a href="classes/I80F48.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48</a></h5></li><li class="tsd-parameter"><h5>max<wbr/>Staleness<wbr/>Slots<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BN</span></h5></li></ul></div></section><section class="tsd-panel tsd-member tsd-kind-type-alias"><a id="OracleConfigDto" class="tsd-anchor"></a><h3 class="tsd-anchor-link">Oracle<wbr/>Config<wbr/>Dto<a href="#OracleConfigDto" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">Oracle<wbr/>Config<wbr/>Dto<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>confFilter<span class="tsd-signature-symbol">: </span><a href="classes/I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a><span class="tsd-signature-symbol">; </span>maxStalenessSlots<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BN</span><span class="tsd-signature-symbol"> }</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/13ac422/ts/client/src/accounts/bank.ts#L10">accounts/bank.ts:10</a></li></ul></aside><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter"><h5>conf<wbr/>Filter<span class="tsd-signature-symbol">: </span><a href="classes/I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a></h5></li><li class="tsd-parameter"><h5>max<wbr/>Staleness<wbr/>Slots<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BN</span></h5></li></ul></div></section><section class="tsd-panel tsd-member tsd-kind-type-alias"><a id="ParsedFillEvent" class="tsd-anchor"></a><h3 class="tsd-anchor-link">Parsed<wbr/>Fill<wbr/>Event<a href="#ParsedFillEvent" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">Parsed<wbr/>Fill<wbr/>Event<span class="tsd-signature-symbol">:</span> <a href="index.html#Modify" class="tsd-signature-type" data-tsd-kind="Type alias">Modify</a><span class="tsd-signature-symbol">&lt;</span><a href="interfaces/FillEvent.html" class="tsd-signature-type" data-tsd-kind="Interface">FillEvent</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-symbol">{ </span>price<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>quantity<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> }</span><span class="tsd-signature-symbol">&gt;</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/13ac422/ts/client/src/accounts/perp.ts#L28">accounts/perp.ts:28</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-type-alias"><a id="PerpMarketIndex" class="tsd-anchor"></a><h3 class="tsd-anchor-link">Perp<wbr/>Market<wbr/>Index<a href="#PerpMarketIndex" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">Perp<wbr/>Market<wbr/>Index<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> &amp; </span><a href="classes/As.html" class="tsd-signature-type" data-tsd-kind="Class">As</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">&quot;perp-market-index&quot;</span><span class="tsd-signature-symbol">&gt;</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/13ac422/ts/client/src/accounts/perp.ts#L26">accounts/perp.ts:26</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-type-alias"><a id="PlatformFee" class="tsd-anchor"></a><h3 class="tsd-anchor-link">Platform<wbr/>Fee<a href="#PlatformFee" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">Platform<wbr/>Fee<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>feeAccount<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>feeBps<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> }</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/13ac422/ts/client/src/router.ts#L48">router.ts:48</a></li></ul></aside><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter"><h5>fee<wbr/>Account<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5></li><li class="tsd-parameter"><h5>fee<wbr/>Bps<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5></li></ul></div></section><section class="tsd-panel tsd-member tsd-kind-type-alias"><a id="QuoteMintToReferrer" class="tsd-anchor"></a><h3 class="tsd-anchor-link">Quote<wbr/>Mint<wbr/>To<wbr/>Referrer<a href="#QuoteMintToReferrer" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">Quote<wbr/>Mint<wbr/>To<wbr/>Referrer<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Map</span><span class="tsd-signature-symbol">&lt;</span><a href="index.html#TokenMintAddress" class="tsd-signature-type" data-tsd-kind="Type alias">TokenMintAddress</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">&gt;</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/13ac422/ts/client/src/router.ts#L33">router.ts:33</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-type-alias"><a id="Routes" class="tsd-anchor"></a><h3 class="tsd-anchor-link">Routes<a href="#Routes" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">Routes<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>bestRoute<span class="tsd-signature-symbol">: </span><a href="interfaces/RouteInfo.html" class="tsd-signature-type" data-tsd-kind="Interface">RouteInfo</a><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol">; </span>routes<span class="tsd-signature-symbol">: </span><a href="interfaces/RouteInfo.html" class="tsd-signature-type" data-tsd-kind="Interface">RouteInfo</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol"> }</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/13ac422/ts/client/src/router.ts#L135">router.ts:135</a></li></ul></aside><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter"><h5>best<wbr/>Route<span class="tsd-signature-symbol">: </span><a href="interfaces/RouteInfo.html" class="tsd-signature-type" data-tsd-kind="Interface">RouteInfo</a><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">null</span></h5></li><li class="tsd-parameter"><h5>routes<span class="tsd-signature-symbol">: </span><a href="interfaces/RouteInfo.html" class="tsd-signature-type" data-tsd-kind="Interface">RouteInfo</a><span class="tsd-signature-symbol">[]</span></h5></li></ul></div></section><section class="tsd-panel tsd-member tsd-kind-type-alias"><a id="StablePriceModel" class="tsd-anchor"></a><h3 class="tsd-anchor-link">Stable<wbr/>Price<wbr/>Model<a href="#StablePriceModel" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">Stable<wbr/>Price<wbr/>Model<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>delayAccumulatorPrice<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>delayAccumulatorTime<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>delayGrowthLimit<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>delayIntervalSeconds<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>delayPrices<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">; </span>lastDelayIntervalIndex<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>lastUpdateTimestamp<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BN</span><span class="tsd-signature-symbol">; </span>stableGrowthLimit<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>stablePrice<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> }</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/13ac422/ts/client/src/accounts/bank.ts#L20">accounts/bank.ts:20</a></li></ul></aside><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter"><h5>delay<wbr/>Accumulator<wbr/>Price<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5></li><li class="tsd-parameter"><h5>delay<wbr/>Accumulator<wbr/>Time<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5></li><li class="tsd-parameter"><h5>delay<wbr/>Growth<wbr/>Limit<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5></li><li class="tsd-parameter"><h5>delay<wbr/>Interval<wbr/>Seconds<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5></li><li class="tsd-parameter"><h5>delay<wbr/>Prices<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span></h5></li><li class="tsd-parameter"><h5>last<wbr/>Delay<wbr/>Interval<wbr/>Index<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5></li><li class="tsd-parameter"><h5>last<wbr/>Update<wbr/>Timestamp<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BN</span></h5></li><li class="tsd-parameter"><h5>stable<wbr/>Growth<wbr/>Limit<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5></li><li class="tsd-parameter"><h5>stable<wbr/>Price<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5></li></ul></div></section><section class="tsd-panel tsd-member tsd-kind-type-alias"><a id="Token" class="tsd-anchor"></a><h3 class="tsd-anchor-link">Token<a href="#Token" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">Token<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>address<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>chainId<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>decimals<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>extensions<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{ </span>coingeckoId<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> }</span><span class="tsd-signature-symbol">; </span>logoURI<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>symbol<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>tags<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol"> }</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/13ac422/ts/client/src/router.ts#L140">router.ts:140</a></li></ul></aside><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter"><h5>address<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5></li><li class="tsd-parameter"><h5>chain<wbr/>Id<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5></li><li class="tsd-parameter"><h5>decimals<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5></li><li class="tsd-parameter"><h5>extensions<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{ </span>coingeckoId<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> }</span></h5><ul class="tsd-parameters"><li class="tsd-parameter"><h5><span class="tsd-flag ts-flagOptional">Optional</span> coingecko<wbr/>Id<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span></h5></li></ul></li><li class="tsd-parameter"><h5>logoURI<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5></li><li class="tsd-parameter"><h5>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5></li><li class="tsd-parameter"><h5>symbol<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5></li><li class="tsd-parameter"><h5>tags<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></h5></li></ul></div></section><section class="tsd-panel tsd-member tsd-kind-type-alias"><a id="TokenIndex" class="tsd-anchor"></a><h3 class="tsd-anchor-link">Token<wbr/>Index<a href="#TokenIndex" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">Token<wbr/>Index<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> &amp; </span><a href="classes/As.html" class="tsd-signature-type" data-tsd-kind="Class">As</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">&quot;token-index&quot;</span><span class="tsd-signature-symbol">&gt;</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/13ac422/ts/client/src/accounts/bank.ts#L8">accounts/bank.ts:8</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-type-alias"><a id="TokenMintAddress" class="tsd-anchor"></a><h3 class="tsd-anchor-link">Token<wbr/>Mint<wbr/>Address<a href="#TokenMintAddress" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">Token<wbr/>Mint<wbr/>Address<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/13ac422/ts/client/src/router.ts#L21">router.ts:21</a></li></ul></aside></section></section><section class="tsd-panel-group tsd-member-group "><h2>Variables</h2><section class="tsd-panel tsd-member tsd-kind-variable"><a id="I64_MAX_BN" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagConst">Const</span> I64_<wbr/>MAX_<wbr/>BN<a href="#I64_MAX_BN" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">I64_<wbr/>MAX_<wbr/>BN<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">BN</span><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/13ac422/ts/client/src/utils.ts#L19">utils.ts:19</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-variable"><a id="MANGO_ROUTER_API_URL" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagConst">Const</span> MANGO_<wbr/>ROUTER_<wbr/>API_<wbr/>URL<a href="#MANGO_ROUTER_API_URL" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">MANGO_<wbr/>ROUTER_<wbr/>API_<wbr/>URL<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">&quot;https://api.mngo.cloud/router/v1&quot;</span><span class="tsd-signature-symbol"> = &#39;https://api.mngo.cloud/router/v1&#39;</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/13ac422/ts/client/src/router.ts#L13">router.ts:13</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-variable"><a id="MANGO_V4_ID" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagConst">Const</span> MANGO_<wbr/>V4_<wbr/>ID<a href="#MANGO_V4_ID" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">MANGO_<wbr/>V4_<wbr/>ID<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>devnet<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">PublicKey</span><span class="tsd-signature-symbol">; </span>mainnet-beta<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">PublicKey</span><span class="tsd-signature-symbol">; </span>testnet<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">PublicKey</span><span class="tsd-signature-symbol"> }</span><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/13ac422/ts/client/src/constants/index.ts#L19">constants/index.ts:19</a></li></ul></aside><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter"><h5>devnet<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">PublicKey</span></h5></li><li class="tsd-parameter"><h5>mainnet-<wbr/>beta<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">PublicKey</span></h5></li><li class="tsd-parameter"><h5>testnet<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">PublicKey</span></h5></li></ul></div></section><section class="tsd-panel tsd-member tsd-kind-variable"><a id="NullPerpEditParams" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagConst">Const</span> Null<wbr/>Perp<wbr/>Edit<wbr/>Params<a href="#NullPerpEditParams" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">Null<wbr/>Perp<wbr/>Edit<wbr/>Params<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">PerpEditParams</span><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/13ac422/ts/client/src/clientIxParamBuilder.ts#L92">clientIxParamBuilder.ts:92</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-variable"><a id="NullTokenEditParams" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagConst">Const</span> Null<wbr/>Token<wbr/>Edit<wbr/>Params<a href="#NullTokenEditParams" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">Null<wbr/>Token<wbr/>Edit<wbr/>Params<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">TokenEditParams</span><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/13ac422/ts/client/src/clientIxParamBuilder.ts#L32">clientIxParamBuilder.ts:32</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-variable"><a id="OPENBOOK_PROGRAM_ID" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagConst">Const</span> OPENBOOK_<wbr/>PROGRAM_<wbr/>ID<a href="#OPENBOOK_PROGRAM_ID" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">OPENBOOK_<wbr/>PROGRAM_<wbr/>ID<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>devnet<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">PublicKey</span><span class="tsd-signature-symbol">; </span>mainnet-beta<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">PublicKey</span><span class="tsd-signature-symbol"> }</span><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/13ac422/ts/client/src/constants/index.ts#L14">constants/index.ts:14</a></li></ul></aside><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter"><h5>devnet<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">PublicKey</span></h5></li><li class="tsd-parameter"><h5>mainnet-<wbr/>beta<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">PublicKey</span></h5></li></ul></div></section><section class="tsd-panel tsd-member tsd-kind-variable"><a id="QUOTE_DECIMALS" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagConst">Const</span> QUOTE_<wbr/>DECIMALS<a href="#QUOTE_DECIMALS" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">QUOTE_<wbr/>DECIMALS<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">6</span><span class="tsd-signature-symbol"> = 6</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/13ac422/ts/client/src/utils.ts#L57">utils.ts:57</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-variable"><a id="TrueIxGateParams" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagConst">Const</span> True<wbr/>Ix<wbr/>Gate<wbr/>Params<a href="#TrueIxGateParams" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">True<wbr/>Ix<wbr/>Gate<wbr/>Params<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">IxGateParams</span><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/13ac422/ts/client/src/clientIxParamBuilder.ts#L185">clientIxParamBuilder.ts:185</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-variable"><a id="U64_MAX_BN" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagConst">Const</span> U64_<wbr/>MAX_<wbr/>BN<a href="#U64_MAX_BN" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">U64_<wbr/>MAX_<wbr/>BN<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">BN</span><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/13ac422/ts/client/src/utils.ts#L18">utils.ts:18</a></li></ul></aside></section></section><section class="tsd-panel-group tsd-member-group "><h2>Functions</h2><section class="tsd-panel tsd-member tsd-kind-function"><a id="HUNDRED_I80F48" class="tsd-anchor"></a><h3 class="tsd-anchor-link">HUNDRED_<wbr/>I80<wbr/>F48<a href="#HUNDRED_I80F48" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-function"><li class="tsd-signature tsd-kind-icon">HUNDRED_<wbr/>I80<wbr/>F48<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="classes/I80F48.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/13ac422/ts/client/src/numbers/I80F48.ts#L239">numbers/I80F48.ts:239</a></li></ul></aside><h4 class="tsd-returns-title">Returns <a href="classes/I80F48.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-function"><a id="MAX_I80F48" class="tsd-anchor"></a><h3 class="tsd-anchor-link">MAX_<wbr/>I80<wbr/>F48<a href="#MAX_I80F48" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-function"><li class="tsd-signature tsd-kind-icon">MAX_<wbr/>I80<wbr/>F48<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="classes/I80F48.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/13ac422/ts/client/src/numbers/I80F48.ts#L243">numbers/I80F48.ts:243</a></li></ul></aside><h4 class="tsd-returns-title">Returns <a href="classes/I80F48.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-function"><a id="ONE_I80F48" class="tsd-anchor"></a><h3 class="tsd-anchor-link">ONE_<wbr/>I80<wbr/>F48<a href="#ONE_I80F48" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-function"><li class="tsd-signature tsd-kind-icon">ONE_<wbr/>I80<wbr/>F48<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="classes/I80F48.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/13ac422/ts/client/src/numbers/I80F48.ts#L231">numbers/I80F48.ts:231</a></li></ul></aside><h4 class="tsd-returns-title">Returns <a href="classes/I80F48.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-function"><a id="RUST_I64_MAX" class="tsd-anchor"></a><h3 class="tsd-anchor-link">RUST_<wbr/>I64_<wbr/>MAX<a href="#RUST_I64_MAX" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-function"><li class="tsd-signature tsd-kind-icon">RUST_<wbr/>I64_<wbr/>MAX<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BN</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/13ac422/ts/client/src/constants/index.ts#L7">constants/index.ts:7</a></li></ul></aside><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">BN</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-function"><a id="RUST_I64_MIN" class="tsd-anchor"></a><h3 class="tsd-anchor-link">RUST_<wbr/>I64_<wbr/>MIN<a href="#RUST_I64_MIN" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-function"><li class="tsd-signature tsd-kind-icon">RUST_<wbr/>I64_<wbr/>MIN<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BN</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/13ac422/ts/client/src/constants/index.ts#L10">constants/index.ts:10</a></li></ul></aside><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">BN</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-function"><a id="RUST_U64_MAX" class="tsd-anchor"></a><h3 class="tsd-anchor-link">RUST_<wbr/>U64_<wbr/>MAX<a href="#RUST_U64_MAX" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-function"><li class="tsd-signature tsd-kind-icon">RUST_<wbr/>U64_<wbr/>MAX<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BN</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/13ac422/ts/client/src/constants/index.ts#L4">constants/index.ts:4</a></li></ul></aside><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">BN</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-function"><a id="ZERO_I80F48" class="tsd-anchor"></a><h3 class="tsd-anchor-link">ZERO_<wbr/>I80<wbr/>F48<a href="#ZERO_I80F48" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-function"><li class="tsd-signature tsd-kind-icon">ZERO_<wbr/>I80<wbr/>F48<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="classes/I80F48.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/13ac422/ts/client/src/numbers/I80F48.ts#L235">numbers/I80F48.ts:235</a></li></ul></aside><h4 class="tsd-returns-title">Returns <a href="classes/I80F48.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-function"><a id="bpsToDecimal" class="tsd-anchor"></a><h3 class="tsd-anchor-link">bps<wbr/>To<wbr/>Decimal<a href="#bpsToDecimal" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-function"><li class="tsd-signature tsd-kind-icon">bps<wbr/>To<wbr/>Decimal<span class="tsd-signature-symbol">(</span>bps<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/13ac422/ts/client/src/utils.ts#L21">utils.ts:21</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>bps: <span class="tsd-signature-type">number</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-function"><a id="buildIxGate" class="tsd-anchor"></a><h3 class="tsd-anchor-link">build<wbr/>Ix<wbr/>Gate<a href="#buildIxGate" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-function"><li class="tsd-signature tsd-kind-icon">build<wbr/>Ix<wbr/>Gate<span class="tsd-signature-symbol">(</span>p<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">IxGateParams</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BN</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/13ac422/ts/client/src/clientIxParamBuilder.ts#L244">clientIxParamBuilder.ts:244</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>p: <span class="tsd-signature-type">IxGateParams</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">BN</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-function"><a id="buildVersionedTx" class="tsd-anchor"></a><h3 class="tsd-anchor-link">build<wbr/>Versioned<wbr/>Tx<a href="#buildVersionedTx" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-function"><li class="tsd-signature tsd-kind-icon">build<wbr/>Versioned<wbr/>Tx<span class="tsd-signature-symbol">(</span>provider<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">AnchorProvider</span>, ix<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">TransactionInstruction</span><span class="tsd-signature-symbol">[]</span>, additionalSigners<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Signer</span><span class="tsd-signature-symbol">[]</span>, alts<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">AddressLookupTableAccount</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">VersionedTransaction</span><span class="tsd-signature-symbol">&gt;</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/13ac422/ts/client/src/utils.ts#L126">utils.ts:126</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>provider: <span class="tsd-signature-type">AnchorProvider</span></h5></li><li><h5>ix: <span class="tsd-signature-type">TransactionInstruction</span><span class="tsd-signature-symbol">[]</span></h5></li><li><h5>additionalSigners: <span class="tsd-signature-type">Signer</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol"> = []</span></h5></li><li><h5>alts: <span class="tsd-signature-type">AddressLookupTableAccount</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol"> = []</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">VersionedTransaction</span><span class="tsd-signature-symbol">&gt;</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-function"><a id="createAssociatedTokenAccountIdempotentInstruction" class="tsd-anchor"></a><h3 class="tsd-anchor-link">create<wbr/>Associated<wbr/>Token<wbr/>Account<wbr/>Idempotent<wbr/>Instruction<a href="#createAssociatedTokenAccountIdempotentInstruction" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-function"><li class="tsd-signature tsd-kind-icon">create<wbr/>Associated<wbr/>Token<wbr/>Account<wbr/>Idempotent<wbr/>Instruction<span class="tsd-signature-symbol">(</span>payer<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">PublicKey</span>, owner<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">PublicKey</span>, mint<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">PublicKey</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">TransactionInstruction</span><span class="tsd-signature-symbol">&gt;</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/13ac422/ts/client/src/utils.ts#L102">utils.ts:102</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>payer: <span class="tsd-signature-type">PublicKey</span></h5></li><li><h5>owner: <span class="tsd-signature-type">PublicKey</span></h5></li><li><h5>mint: <span class="tsd-signature-type">PublicKey</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">TransactionInstruction</span><span class="tsd-signature-symbol">&gt;</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-function"><a id="fetchJupiterTransaction" class="tsd-anchor"></a><h3 class="tsd-anchor-link">fetch<wbr/>Jupiter<wbr/>Transaction<a href="#fetchJupiterTransaction" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-function"><li class="tsd-signature tsd-kind-icon">fetch<wbr/>Jupiter<wbr/>Transaction<span class="tsd-signature-symbol">(</span>connection<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Connection</span>, selectedRoute<span class="tsd-signature-symbol">: </span><a href="interfaces/RouteInfo.html" class="tsd-signature-type" data-tsd-kind="Interface">RouteInfo</a>, userPublicKey<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">PublicKey</span>, slippage<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, inputMint<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">PublicKey</span>, outputMint<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">PublicKey</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">TransactionInstruction</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">AddressLookupTableAccount</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">&gt;</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/13ac422/ts/client/src/router.ts#L358">router.ts:358</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>connection: <span class="tsd-signature-type">Connection</span></h5></li><li><h5>selectedRoute: <a href="interfaces/RouteInfo.html" class="tsd-signature-type" data-tsd-kind="Interface">RouteInfo</a></h5></li><li><h5>userPublicKey: <span class="tsd-signature-type">PublicKey</span></h5></li><li><h5>slippage: <span class="tsd-signature-type">number</span></h5></li><li><h5>inputMint: <span class="tsd-signature-type">PublicKey</span></h5></li><li><h5>outputMint: <span class="tsd-signature-type">PublicKey</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">TransactionInstruction</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">AddressLookupTableAccount</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">&gt;</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-function"><a id="fetchRoutes" class="tsd-anchor"></a><h3 class="tsd-anchor-link">fetch<wbr/>Routes<a href="#fetchRoutes" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-function"><li class="tsd-signature tsd-kind-icon">fetch<wbr/>Routes<span class="tsd-signature-symbol">(</span>inputMint<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span>, outputMint<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span>, amount<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span>, slippage<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span>, swapMode<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span>, feeBps<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span>, wallet<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">PublicKey</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="index.html#Routes" class="tsd-signature-type" data-tsd-kind="Type alias">Routes</a><span class="tsd-signature-symbol">&gt;</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/13ac422/ts/client/src/router.ts#L244">router.ts:244</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>inputMint: <span class="tsd-signature-type">any</span></h5></li><li><h5>outputMint: <span class="tsd-signature-type">any</span></h5></li><li><h5>amount: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = &#39;0&#39;</span></h5></li><li><h5>slippage: <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 50</span></h5></li><li><h5>swapMode: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = &#39;ExactIn&#39;</span></h5></li><li><h5>feeBps: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = &#39;0&#39;</span></h5></li><li><h5>wallet: <span class="tsd-signature-type">PublicKey</span><span class="tsd-signature-symbol"> = PublicKey.default</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="index.html#Routes" class="tsd-signature-type" data-tsd-kind="Type alias">Routes</a><span class="tsd-signature-symbol">&gt;</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-function"><a id="getAssociatedTokenAddress" class="tsd-anchor"></a><h3 class="tsd-anchor-link">get<wbr/>Associated<wbr/>Token<wbr/>Address<a href="#getAssociatedTokenAddress" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-function"><li class="tsd-signature tsd-kind-icon">get<wbr/>Associated<wbr/>Token<wbr/>Address<span class="tsd-signature-symbol">(</span>mint<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">PublicKey</span>, owner<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">PublicKey</span>, allowOwnerOffCurve<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span>, programId<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">PublicKey</span>, associatedTokenProgramId<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">PublicKey</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">PublicKey</span><span class="tsd-signature-symbol">&gt;</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/13ac422/ts/client/src/utils.ts#L84">utils.ts:84</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Get the address of the associated token account for a given mint and owner</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>mint: <span class="tsd-signature-type">PublicKey</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p>Token mint account</p>
</div></div></li><li><h5>owner: <span class="tsd-signature-type">PublicKey</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p>Owner of the new account</p>
</div></div></li><li><h5>allowOwnerOffCurve: <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p>Allow the owner account to be a PDA (Program Derived Address)</p>
</div></div></li><li><h5>programId: <span class="tsd-signature-type">PublicKey</span><span class="tsd-signature-symbol"> = TOKEN_PROGRAM_ID</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p>SPL Token program account</p>
</div></div></li><li><h5>associatedTokenProgramId: <span class="tsd-signature-type">PublicKey</span><span class="tsd-signature-symbol"> = ASSOCIATED_TOKEN_PROGRAM_ID</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p>SPL Associated Token program account</p>
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">PublicKey</span><span class="tsd-signature-symbol">&gt;</span></h4><div><p>Address of the associated token account</p>
</div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-function"><a id="percentageToDecimal" class="tsd-anchor"></a><h3 class="tsd-anchor-link">percentage<wbr/>To<wbr/>Decimal<a href="#percentageToDecimal" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-function"><li class="tsd-signature tsd-kind-icon">percentage<wbr/>To<wbr/>Decimal<span class="tsd-signature-symbol">(</span>percentage<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/13ac422/ts/client/src/utils.ts#L25">utils.ts:25</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>percentage: <span class="tsd-signature-type">number</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-function"><a id="prepareMangoRouterInstructions" class="tsd-anchor"></a><h3 class="tsd-anchor-link">prepare<wbr/>Mango<wbr/>Router<wbr/>Instructions<a href="#prepareMangoRouterInstructions" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-function"><li class="tsd-signature tsd-kind-icon">prepare<wbr/>Mango<wbr/>Router<wbr/>Instructions<span class="tsd-signature-symbol">(</span>selectedRoute<span class="tsd-signature-symbol">: </span><a href="interfaces/RouteInfo.html" class="tsd-signature-type" data-tsd-kind="Interface">RouteInfo</a>, inputMint<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">PublicKey</span>, outputMint<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">PublicKey</span>, userPublicKey<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">PublicKey</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">TransactionInstruction</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">AddressLookupTableAccount</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">&gt;</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/13ac422/ts/client/src/router.ts#L298">router.ts:298</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>selectedRoute: <a href="interfaces/RouteInfo.html" class="tsd-signature-type" data-tsd-kind="Interface">RouteInfo</a></h5></li><li><h5>inputMint: <span class="tsd-signature-type">PublicKey</span></h5></li><li><h5>outputMint: <span class="tsd-signature-type">PublicKey</span></h5></li><li><h5>userPublicKey: <span class="tsd-signature-type">PublicKey</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">TransactionInstruction</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">AddressLookupTableAccount</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">&gt;</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-function"><a id="toNative" class="tsd-anchor"></a><h3 class="tsd-anchor-link">to<wbr/>Native<a href="#toNative" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-function"><li class="tsd-signature tsd-kind-icon">to<wbr/>Native<span class="tsd-signature-symbol">(</span>uiAmount<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, decimals<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BN</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/13ac422/ts/client/src/utils.ts#L37">utils.ts:37</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>uiAmount: <span class="tsd-signature-type">number</span></h5></li><li><h5>decimals: <span class="tsd-signature-type">number</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">BN</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-function"><a id="toNativeI80F48" class="tsd-anchor"></a><h3 class="tsd-anchor-link">to<wbr/>Native<wbr/>I80<wbr/>F48<a href="#toNativeI80F48" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-function"><li class="tsd-signature tsd-kind-icon">to<wbr/>Native<wbr/>I80<wbr/>F48<span class="tsd-signature-symbol">(</span>uiAmount<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, decimals<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="classes/I80F48.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/13ac422/ts/client/src/utils.ts#L33">utils.ts:33</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>uiAmount: <span class="tsd-signature-type">number</span></h5></li><li><h5>decimals: <span class="tsd-signature-type">number</span></h5></li></ul><h4 class="tsd-returns-title">Returns <a href="classes/I80F48.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-function"><a id="toNativeI80F48ForQuote" class="tsd-anchor"></a><h3 class="tsd-anchor-link">to<wbr/>Native<wbr/>I80<wbr/>F48<wbr/>For<wbr/>Quote<a href="#toNativeI80F48ForQuote" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-function"><li class="tsd-signature tsd-kind-icon">to<wbr/>Native<wbr/>I80<wbr/>F48<wbr/>For<wbr/>Quote<span class="tsd-signature-symbol">(</span>uiAmount<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="classes/I80F48.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/13ac422/ts/client/src/utils.ts#L29">utils.ts:29</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>uiAmount: <span class="tsd-signature-type">number</span></h5></li></ul><h4 class="tsd-returns-title">Returns <a href="classes/I80F48.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-function"><a id="toUiDecimals" class="tsd-anchor"></a><h3 class="tsd-anchor-link">to<wbr/>Ui<wbr/>Decimals<a href="#toUiDecimals" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-function"><li class="tsd-signature tsd-kind-icon">to<wbr/>Ui<wbr/>Decimals<span class="tsd-signature-symbol">(</span>nativeAmount<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">BN</span><span class="tsd-signature-symbol"> | </span><a href="classes/I80F48.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48</a>, decimals<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/13ac422/ts/client/src/utils.ts#L41">utils.ts:41</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>nativeAmount: <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">BN</span><span class="tsd-signature-symbol"> | </span><a href="classes/I80F48.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48</a></h5></li><li><h5>decimals: <span class="tsd-signature-type">number</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-function"><a id="toUiDecimalsForQuote" class="tsd-anchor"></a><h3 class="tsd-anchor-link">to<wbr/>Ui<wbr/>Decimals<wbr/>For<wbr/>Quote<a href="#toUiDecimalsForQuote" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-function"><li class="tsd-signature tsd-kind-icon">to<wbr/>Ui<wbr/>Decimals<wbr/>For<wbr/>Quote<span class="tsd-signature-symbol">(</span>nativeAmount<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">BN</span><span class="tsd-signature-symbol"> | </span><a href="classes/I80F48.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/13ac422/ts/client/src/utils.ts#L59">utils.ts:59</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>nativeAmount: <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">BN</span><span class="tsd-signature-symbol"> | </span><a href="classes/I80F48.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48</a></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-function"><a id="toUiI80F48" class="tsd-anchor"></a><h3 class="tsd-anchor-link">to<wbr/>Ui<wbr/>I80<wbr/>F48<a href="#toUiI80F48" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-function"><li class="tsd-signature tsd-kind-icon">to<wbr/>Ui<wbr/>I80<wbr/>F48<span class="tsd-signature-symbol">(</span>nativeAmount<span class="tsd-signature-symbol">: </span><a href="classes/I80F48.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48</a>, decimals<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="classes/I80F48.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/13ac422/ts/client/src/utils.ts#L65">utils.ts:65</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>nativeAmount: <a href="classes/I80F48.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48</a></h5></li><li><h5>decimals: <span class="tsd-signature-type">number</span></h5></li></ul><h4 class="tsd-returns-title">Returns <a href="classes/I80F48.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48</a></h4></li></ul></section></section></div><div class="col-4 col-menu menu-sticky-wrap menu-highlight"><nav class="tsd-navigation primary"><ul><li class="current"><a href="index.html">Exports</a></li></ul></nav><nav class="tsd-navigation secondary menu-sticky"><ul><li class="tsd-kind-enum"><a href="enums/OracleProvider.html" class="tsd-kind-icon">Oracle<wbr/>Provider</a></li><li class="tsd-kind-enum"><a href="enums/SwapMode.html" class="tsd-kind-icon">Swap<wbr/>Mode</a></li><li class="tsd-kind-class tsd-has-type-parameter"><a href="classes/As.html" class="tsd-kind-icon">As</a></li><li class="tsd-kind-class"><a href="classes/Bank.html" class="tsd-kind-icon">Bank</a></li><li class="tsd-kind-class"><a href="classes/BookSide.html" class="tsd-kind-icon">Book<wbr/>Side</a></li><li class="tsd-kind-class"><a href="classes/BookSideType.html" class="tsd-kind-icon">Book<wbr/>Side<wbr/>Type</a></li><li class="tsd-kind-class"><a href="classes/FlashLoanType.html" class="tsd-kind-icon">Flash<wbr/>Loan<wbr/>Type</a></li><li class="tsd-kind-class"><a href="classes/FlashLoanWithdraw.html" class="tsd-kind-icon">Flash<wbr/>Loan<wbr/>Withdraw</a></li><li class="tsd-kind-class"><a href="classes/Group.html" class="tsd-kind-icon">Group</a></li><li class="tsd-kind-class"><a href="classes/HealthType.html" class="tsd-kind-icon">Health<wbr/>Type</a></li><li class="tsd-kind-class"><a href="classes/I80F48.html" class="tsd-kind-icon">I80<wbr/>F48</a></li><li class="tsd-kind-class"><a href="classes/I80F48Dto.html" class="tsd-kind-icon">I80<wbr/>F48<wbr/>Dto</a></li><li class="tsd-kind-class"><a href="classes/InnerNode.html" class="tsd-kind-icon">Inner<wbr/>Node</a></li><li class="tsd-kind-class"><a href="classes/InterestRateParams.html" class="tsd-kind-icon">Interest<wbr/>Rate<wbr/>Params</a></li><li class="tsd-kind-class"><a href="classes/LeafNode.html" class="tsd-kind-icon">Leaf<wbr/>Node</a></li><li class="tsd-kind-class"><a href="classes/MangoAccount.html" class="tsd-kind-icon">Mango<wbr/>Account</a></li><li class="tsd-kind-class"><a href="classes/MangoClient.html" class="tsd-kind-icon">Mango<wbr/>Client</a></li><li class="tsd-kind-class"><a href="classes/MintInfo.html" class="tsd-kind-icon">Mint<wbr/>Info</a></li><li class="tsd-kind-class"><a href="classes/OracleConfigParams.html" class="tsd-kind-icon">Oracle<wbr/>Config<wbr/>Params</a></li><li class="tsd-kind-class"><a href="classes/PerpEventQueue.html" class="tsd-kind-icon">Perp<wbr/>Event<wbr/>Queue</a></li><li class="tsd-kind-class"><a href="classes/PerpMarket.html" class="tsd-kind-icon">Perp<wbr/>Market</a></li><li class="tsd-kind-class"><a href="classes/PerpOo.html" class="tsd-kind-icon">Perp<wbr/>Oo</a></li><li class="tsd-kind-class"><a href="classes/PerpOoDto.html" class="tsd-kind-icon">Perp<wbr/>Oo<wbr/>Dto</a></li><li class="tsd-kind-class"><a href="classes/PerpOrder.html" class="tsd-kind-icon">Perp<wbr/>Order</a></li><li class="tsd-kind-class"><a href="classes/PerpOrderSide.html" class="tsd-kind-icon">Perp<wbr/>Order<wbr/>Side</a></li><li class="tsd-kind-class"><a href="classes/PerpOrderType.html" class="tsd-kind-icon">Perp<wbr/>Order<wbr/>Type</a></li><li class="tsd-kind-class"><a href="classes/PerpPosition.html" class="tsd-kind-icon">Perp<wbr/>Position</a></li><li class="tsd-kind-class"><a href="classes/PerpPositionDto.html" class="tsd-kind-icon">Perp<wbr/>Position<wbr/>Dto</a></li><li class="tsd-kind-class"><a href="classes/Serum3Market.html" class="tsd-kind-icon">Serum3<wbr/>Market</a></li><li class="tsd-kind-class"><a href="classes/Serum3OrderType.html" class="tsd-kind-icon">Serum3<wbr/>Order<wbr/>Type</a></li><li class="tsd-kind-class"><a href="classes/Serum3Orders.html" class="tsd-kind-icon">Serum3<wbr/>Orders</a></li><li class="tsd-kind-class"><a href="classes/Serum3PositionDto.html" class="tsd-kind-icon">Serum3<wbr/>Position<wbr/>Dto</a></li><li class="tsd-kind-class"><a href="classes/Serum3SelfTradeBehavior.html" class="tsd-kind-icon">Serum3<wbr/>Self<wbr/>Trade<wbr/>Behavior</a></li><li class="tsd-kind-class"><a href="classes/Serum3Side.html" class="tsd-kind-icon">Serum3<wbr/>Side</a></li><li class="tsd-kind-class"><a href="classes/StubOracle.html" class="tsd-kind-icon">Stub<wbr/>Oracle</a></li><li class="tsd-kind-class"><a href="classes/TokenPosition.html" class="tsd-kind-icon">Token<wbr/>Position</a></li><li class="tsd-kind-class"><a href="classes/TokenPositionDto.html" class="tsd-kind-icon">Token<wbr/>Position<wbr/>Dto</a></li><li class="tsd-kind-interface"><a href="interfaces/BankForHealth.html" class="tsd-kind-icon">Bank<wbr/>For<wbr/>Health</a></li><li class="tsd-kind-interface"><a href="interfaces/Event.html" class="tsd-kind-icon">Event</a></li><li class="tsd-kind-interface"><a href="interfaces/ExactOutSwapParams.html" class="tsd-kind-icon">Exact<wbr/>Out<wbr/>Swap<wbr/>Params</a></li><li class="tsd-kind-interface"><a href="interfaces/Fee.html" class="tsd-kind-icon">Fee</a></li><li class="tsd-kind-interface"><a href="interfaces/FillEvent.html" class="tsd-kind-icon">Fill<wbr/>Event</a></li><li class="tsd-kind-interface"><a href="interfaces/LiquidateEvent.html" class="tsd-kind-icon">Liquidate<wbr/>Event</a></li><li class="tsd-kind-interface"><a href="interfaces/MarketInfo.html" class="tsd-kind-icon">Market<wbr/>Info</a></li><li class="tsd-kind-interface"><a href="interfaces/OutEvent.html" class="tsd-kind-icon">Out<wbr/>Event</a></li><li class="tsd-kind-interface"><a href="interfaces/Quote.html" class="tsd-kind-icon">Quote</a></li><li class="tsd-kind-interface"><a href="interfaces/QuoteParams.html" class="tsd-kind-icon">Quote<wbr/>Params</a></li><li class="tsd-kind-interface"><a href="interfaces/RouteInfo.html" class="tsd-kind-icon">Route<wbr/>Info</a></li><li class="tsd-kind-interface"><a href="interfaces/SwapParams.html" class="tsd-kind-icon">Swap<wbr/>Params</a></li><li class="tsd-kind-interface"><a href="interfaces/TransactionFeeInfo.html" class="tsd-kind-icon">Transaction<wbr/>Fee<wbr/>Info</a></li><li class="tsd-kind-type-alias"><a href="index.html#AccountInfoMap" class="tsd-kind-icon">Account<wbr/>Info<wbr/>Map</a></li><li class="tsd-kind-type-alias"><a href="index.html#AmmLabel" class="tsd-kind-icon">Amm<wbr/>Label</a></li><li class="tsd-kind-type-alias tsd-has-type-parameter"><a href="index.html#Modify" class="tsd-kind-icon">Modify</a></li><li class="tsd-kind-type-alias"><a href="index.html#OracleConfig" class="tsd-kind-icon">Oracle<wbr/>Config</a></li><li class="tsd-kind-type-alias"><a href="index.html#OracleConfigDto" class="tsd-kind-icon">Oracle<wbr/>Config<wbr/>Dto</a></li><li class="tsd-kind-type-alias"><a href="index.html#ParsedFillEvent" class="tsd-kind-icon">Parsed<wbr/>Fill<wbr/>Event</a></li><li class="tsd-kind-type-alias"><a href="index.html#PerpMarketIndex" class="tsd-kind-icon">Perp<wbr/>Market<wbr/>Index</a></li><li class="tsd-kind-type-alias"><a href="index.html#PlatformFee" class="tsd-kind-icon">Platform<wbr/>Fee</a></li><li class="tsd-kind-type-alias"><a href="index.html#QuoteMintToReferrer" class="tsd-kind-icon">Quote<wbr/>Mint<wbr/>To<wbr/>Referrer</a></li><li class="tsd-kind-type-alias"><a href="index.html#Routes" class="tsd-kind-icon">Routes</a></li><li class="tsd-kind-type-alias"><a href="index.html#StablePriceModel" class="tsd-kind-icon">Stable<wbr/>Price<wbr/>Model</a></li><li class="tsd-kind-type-alias"><a href="index.html#Token" class="tsd-kind-icon">Token</a></li><li class="tsd-kind-type-alias"><a href="index.html#TokenIndex" class="tsd-kind-icon">Token<wbr/>Index</a></li><li class="tsd-kind-type-alias"><a href="index.html#TokenMintAddress" class="tsd-kind-icon">Token<wbr/>Mint<wbr/>Address</a></li><li class="tsd-kind-variable"><a href="index.html#I64_MAX_BN" class="tsd-kind-icon">I64_<wbr/>MAX_<wbr/>BN</a></li><li class="tsd-kind-variable"><a href="index.html#MANGO_ROUTER_API_URL" class="tsd-kind-icon">MANGO_<wbr/>ROUTER_<wbr/>API_<wbr/>URL</a></li><li class="tsd-kind-variable"><a href="index.html#MANGO_V4_ID" class="tsd-kind-icon">MANGO_<wbr/>V4_<wbr/>ID</a></li><li class="tsd-kind-variable"><a href="index.html#NullPerpEditParams" class="tsd-kind-icon">Null<wbr/>Perp<wbr/>Edit<wbr/>Params</a></li><li class="tsd-kind-variable"><a href="index.html#NullTokenEditParams" class="tsd-kind-icon">Null<wbr/>Token<wbr/>Edit<wbr/>Params</a></li><li class="tsd-kind-variable"><a href="index.html#OPENBOOK_PROGRAM_ID" class="tsd-kind-icon">OPENBOOK_<wbr/>PROGRAM_<wbr/>ID</a></li><li class="tsd-kind-variable"><a href="index.html#QUOTE_DECIMALS" class="tsd-kind-icon">QUOTE_<wbr/>DECIMALS</a></li><li class="tsd-kind-variable"><a href="index.html#TrueIxGateParams" class="tsd-kind-icon">True<wbr/>Ix<wbr/>Gate<wbr/>Params</a></li><li class="tsd-kind-variable"><a href="index.html#U64_MAX_BN" class="tsd-kind-icon">U64_<wbr/>MAX_<wbr/>BN</a></li><li class="tsd-kind-function"><a href="index.html#HUNDRED_I80F48" class="tsd-kind-icon">HUNDRED_<wbr/>I80<wbr/>F48</a></li><li class="tsd-kind-function"><a href="index.html#MAX_I80F48" class="tsd-kind-icon">MAX_<wbr/>I80<wbr/>F48</a></li><li class="tsd-kind-function"><a href="index.html#ONE_I80F48" class="tsd-kind-icon">ONE_<wbr/>I80<wbr/>F48</a></li><li class="tsd-kind-function"><a href="index.html#RUST_I64_MAX" class="tsd-kind-icon">RUST_<wbr/>I64_<wbr/>MAX</a></li><li class="tsd-kind-function"><a href="index.html#RUST_I64_MIN" class="tsd-kind-icon">RUST_<wbr/>I64_<wbr/>MIN</a></li><li class="tsd-kind-function"><a href="index.html#RUST_U64_MAX" class="tsd-kind-icon">RUST_<wbr/>U64_<wbr/>MAX</a></li><li class="tsd-kind-function"><a href="index.html#ZERO_I80F48" class="tsd-kind-icon">ZERO_<wbr/>I80<wbr/>F48</a></li><li class="tsd-kind-function"><a href="index.html#bpsToDecimal" class="tsd-kind-icon">bps<wbr/>To<wbr/>Decimal</a></li><li class="tsd-kind-function"><a href="index.html#buildIxGate" class="tsd-kind-icon">build<wbr/>Ix<wbr/>Gate</a></li><li class="tsd-kind-function"><a href="index.html#buildVersionedTx" class="tsd-kind-icon">build<wbr/>Versioned<wbr/>Tx</a></li><li class="tsd-kind-function"><a href="index.html#createAssociatedTokenAccountIdempotentInstruction" class="tsd-kind-icon">create<wbr/>Associated<wbr/>Token<wbr/>Account<wbr/>Idempotent<wbr/>Instruction</a></li><li class="tsd-kind-function"><a href="index.html#fetchJupiterTransaction" class="tsd-kind-icon">fetch<wbr/>Jupiter<wbr/>Transaction</a></li><li class="tsd-kind-function"><a href="index.html#fetchRoutes" class="tsd-kind-icon">fetch<wbr/>Routes</a></li><li class="tsd-kind-function"><a href="index.html#getAssociatedTokenAddress" class="tsd-kind-icon">get<wbr/>Associated<wbr/>Token<wbr/>Address</a></li><li class="tsd-kind-function"><a href="index.html#percentageToDecimal" class="tsd-kind-icon">percentage<wbr/>To<wbr/>Decimal</a></li><li class="tsd-kind-function"><a href="index.html#prepareMangoRouterInstructions" class="tsd-kind-icon">prepare<wbr/>Mango<wbr/>Router<wbr/>Instructions</a></li><li class="tsd-kind-function"><a href="index.html#toNative" class="tsd-kind-icon">to<wbr/>Native</a></li><li class="tsd-kind-function"><a href="index.html#toNativeI80F48" class="tsd-kind-icon">to<wbr/>Native<wbr/>I80<wbr/>F48</a></li><li class="tsd-kind-function"><a href="index.html#toNativeI80F48ForQuote" class="tsd-kind-icon">to<wbr/>Native<wbr/>I80<wbr/>F48<wbr/>For<wbr/>Quote</a></li><li class="tsd-kind-function"><a href="index.html#toUiDecimals" class="tsd-kind-icon">to<wbr/>Ui<wbr/>Decimals</a></li><li class="tsd-kind-function"><a href="index.html#toUiDecimalsForQuote" class="tsd-kind-icon">to<wbr/>Ui<wbr/>Decimals<wbr/>For<wbr/>Quote</a></li><li class="tsd-kind-function"><a href="index.html#toUiI80F48" class="tsd-kind-icon">to<wbr/>Ui<wbr/>I80<wbr/>F48</a></li></ul></nav></div></div></div><footer class="with-border-bottom"><div class="container"><h2>Legend</h2><div class="tsd-legend-group"><ul class="tsd-legend"><li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li><li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li><li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li><li class="tsd-kind-method tsd-parent-kind-interface"><span class="tsd-kind-icon">Method</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private property</span></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private method</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static property</span></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static method</span></li></ul></div><h2>Settings</h2><p>Theme <select id="theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></p></div></footer><div class="container tsd-generator"><p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></div><div class="overlay"></div><script src="assets/main.js"></script></body></html>