Giter Club home page Giter Club logo

openbook-ts's People

Contributors

aaronovz1 avatar anselsol avatar armaniferrante avatar badass-commits avatar bartolkaruza avatar binyebarwe avatar dr497 avatar fallingoak avatar garywang avatar jhlx avatar keone avatar kootszhin avatar leofisg avatar michaelhly avatar mschneider avatar nathanielparke avatar nishadsingh1 avatar pashpashkin avatar philippe-ftx avatar sconybeare avatar secretshardul avatar skynetcap avatar tampham47 avatar taylor123 avatar thaaddeus avatar timonpeng avatar tlrjs avatar tomjohn1028 avatar trezm avatar wentokay avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

openbook-ts's Issues

(payer).equals(owner) doesn't seem to make sense?

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)

if (payer.equals(ownerAddress)) {

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?

Update Serumv3 program ID to Open Book

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"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.