openbook-dex / openbook-ts Goto Github PK
View Code? Open in Web Editor NEWThis project forked from project-serum/serum-ts
openbook-dex TypeScript monorepo
Home Page: https://twitter.com/openbookdex
License: Apache License 2.0
This project forked from project-serum/serum-ts
openbook-dex TypeScript monorepo
Home Page: https://twitter.com/openbookdex
License: Apache License 2.0
when trying to make a new v3 order, the payer and owner account as far as i understand are
owner : the user's wallet
payer : token account to pay for the trade (usdc account in case of a buy order in SOL/USDC)
openbook-ts/packages/openbook/src/market.ts
Line 741 in 5f50f34
but here, there's an if statement putting a constraint on both of these to be equal which as far as i understand they shouldn't be equal? or am i missing something?
Report from Discord:
throw new Error('Address not owned by program: ' + owner.toBase58());
Error: Address not owned by program: 9xQeWvG816bUx9EPjHmaT23yvVM2ZWbrrpZb9PusVFin
I created an instance of Swap
let client = new Swap(provider, tokenList)
When i call estimate im getting the error.
const estimatedBtc = await client.estimate({
fromMint: new PublicKey('SRMuApVNdxXokk5GT7XD5cUUgXMBCoAz2LHeuAoKWRt'), //src
toMint: new PublicKey('EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v'), //usdc
amount: toNative(1),
});
"Used the sample from https://github.com/openbook-dex/openbook-ts/blob/master/packages/swap/examples/swap.js"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.