Questions tagged [serum]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
0 answers
28 views

How to get AmmId of a pair of tokens with Raydium pool [closed]

I'm trying to make a swap transaction between USDC and another token. The instruction take the AmmId as a parameter. How can I get that value if I only have the addresses of the tokens?
  • 11
2 votes
1 answer
38 views

getting error while performing a swap using token swap program

const Web3 = require('@solana/web3.js') const { TokenSwap, TOKEN_SWAP_PROGRAM_ID, TokenSwapLayout } = require("@solana/spl-token-swap") const token = require('@solana/spl-token') async ...
  • 21
1 vote
0 answers
29 views

How to have a Sequence of Union while using buffer-layout?

I'm trying to create some layouts for serum-dex Slab accounts, where, export class Slab { readonly header: SlabHeader; readonly nodes: SlabNode[]; constructor(header: SlabHeader, nodes: ...
  • 375
1 vote
1 answer
19 views

Serum dex swap error: Error settling funds

i'm trying to make a serum dex token swap in my program. But the problem is, it only works halfway here's what I mean: when I do orderbook.sell(sell_proceeds, None)?; the swap works and the token I'm ...
  • 306
1 vote
1 answer
16 views

Serum dex Error

i'm trying to do a token swap in my code through serum dex but I'm getting this error Program 9xQeWvG816bUx9EPjHmaT23yvVM2ZWbrrpZb9PusVFin failed: custom program error: 0x100016b Does anybody know ...
  • 306
0 votes
0 answers
13 views

Cannot trade on Dexlab, how to fix it?

Using Dexlab we created a new token (let's say TOKEN), created a new market listing (TOKEN/USDC), and a pool on Raydium. But when we try to trade on Dexlab it displays an error: No route found How ...
  • 101
0 votes
0 answers
19 views

How to track the source pool showing in Serum?

This coin shows a TVL of $12K through Solscan on Serum. https://solscan.io/token/333iHoRM2Awhf9uVZtSyTfU8AekdGrgQePZsKMFPgKmS Can someone please help me track the source pool if it really exists? Is ...
0 votes
0 answers
10 views

What's the best way to get the TVL of multiple Solana AMMs, lending protocols, etc?

Would I need to use Anchor to serialize and deserialize accounts? Is there an easier way with @solana/web3.js? Do I have to find all the accounts being used by the programID? I'm not sure where I ...
0 votes
0 answers
29 views

Swap program on devnet

We want to test our program with the serum-swap function. But, phantom Wallet said that the swap function is only available on the mainnet. How can we test the swap function on devnet? Thanks
  • 1
1 vote
1 answer
46 views

limit of accounts in cpi context

we've been getting this error while trying to initialize a cpi context: Does this have anything to do with the limit of the number of accounts in Anchor? Below is our code: Below is the formatted ...
0 votes
0 answers
15 views

How to sign with all the signers according to threshold using solana web3 with serum multisig at once

I want to execute the transaction which requires all the required signers to approve the transaction but I need to sign the transaction with all the required owners according to threshold at once. The ...
  • 333
0 votes
0 answers
40 views

How to get open orders on Serum from a Rust client

I'm trying to get open orders for a serum book from my Rust Client. I have had a look in the Serum Git Rust Repo. But I struggle to find a way to do this in Rust. The repo for reference: https://...
  • 33
0 votes
1 answer
79 views

What's the status on Serum cranking?

we're developing our own custom serum market with our token. We've established a serum market ('FvhTW3kMofdmfvC6H2bJLuYysikBkLoS8PVLMFtuYjqW') but was having some troubles with openOrders balance not ...
1 vote
1 answer
59 views

Rust Client - Get Serum liquidity pool info

I'd like to get account data from a Serum Liquidity Pool in my Solana Rust Client. I have chosen the path to do this in Rust, so please avoid asking why I don't do this in TypeScript. I have ...
  • 33
0 votes
1 answer
19 views

Assets not sent after issuing successful trade transaction on Serum DEX [closed]

We deployed the Serum UI and DEX contract and managed to create orders but for some reason, when trade happens, assets are not sent to seller/buyer.