Bible Pay

Read 2459 times

  • Rob Andrews
  • Administrator

    • 4306


    • 97
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
Re: BEP-20 DECENTRALIZED EXCHANGE
« Reply #30 on: May 14, 2026, 03:52:46 PM »
Tried Bep20 BBP to meta
meta to bep20 bbp..
succeed,
Ok, so lets test the exchange.
I put an order in for 7611 bbp at .28 shiba each , my cur shib balance is 165217 and my bep-20 bbp is 105853 if you want to sell those 7611 to me ill check my balance later.
To get it to fill after you put the order in - it goes in the book, but I have the Refresh button wired up to match orders in the contract.

« Last Edit: May 15, 2026, 04:40:55 PM by Rob Andrews »


  • MR.A
  • Developer

    • 121


    • 9
    • April 13, 2022, 01:24:27 PM
    more
Re: BEP-20 DECENTRALIZED EXCHANGE
« Reply #31 on: Today at 01:17:24 AM »
So tried it and it worked attaching few photos..
your balance is also successfully updated I checked on the bscscan


  • MR.A
  • Developer

    • 121


    • 9
    • April 13, 2022, 01:24:27 PM
    more
Re: BEP-20 DECENTRALIZED EXCHANGE
« Reply #32 on: Today at 01:18:28 AM »
but I have a question is the price tied with shib?
or a free-floating market?


  • MR.A
  • Developer

    • 121


    • 9
    • April 13, 2022, 01:24:27 PM
    more
Re: BEP-20 DECENTRALIZED EXCHANGE
« Reply #33 on: Today at 05:40:07 AM »
also another note not related to this test thread..
I'm losing 0.09 BBP core wallet installed on desktop every day (deducted) automatically..
any solution for that?
Thanks.


  • Rob Andrews
  • Administrator

    • 4306


    • 97
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
Re: BEP-20 DECENTRALIZED EXCHANGE
« Reply #34 on: Today at 06:22:53 AM »
also another note not related to this test thread..
I'm losing 0.09 BBP core wallet installed on desktop every day (deducted) automatically..
any solution for that?
Thanks.
A) What is the TXID of the tx for .09 out of core wallet?
B) What Wallet version is that running from the Info page?  (I think its something like 0.24.x-Suffix).
C) Any keys set in biblepay.conf from back over 2 years ago for old features?




  • Rob Andrews
  • Administrator

    • 4306


    • 97
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
Re: BEP-20 DECENTRALIZED EXCHANGE
« Reply #35 on: Today at 06:37:03 AM »
So tried it and it worked attaching few photos..
your balance is also successfully updated I checked on the bscscan

Good sleuthing.  I see it here in my web wallet too.

Btw, when all this phase 1 is done, it is possible for us to do 100% decentralized exchange too.  (But first i am favor of making everything work easy for the user and making other things in BBP decentralized). But back to the point, the only downside for the user if they come in BBP/Shiba exchange (Decentralized) version, they will connect to metamask, and when they hit Buy to place an order, they will get two pop ups, one to send the Shib, and one to interact with the Buy order in the contract.  (Which I guess is not terrible).  The web site will have to deal with Javascript stuff instead of back end code.  But yeah I think we should do that at the end also, just to show this is 100% decentralized in the end.   Notice that when you place an order your coins are tied up in the Contract as a bank (not on the web site).  When you hit Cancel you receive your coins back in the web wallet.  Same on the dex version; coins leave metamask and go into the contract.  Canceling them as a command through metamask would return them from the contract back to the metamask wallet.

So far the model is nice this way?  Performance seems relatively good since BSC is fast.  I thought about long term performance also when we have 900 orders in the book.  The book can do batching so that should be OK.  One feature we would need in the future is the ability to combine all txs at one price into one row (easy) as this is a UI feature.



  • Rob Andrews
  • Administrator

    • 4306


    • 97
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
Re: BEP-20 DECENTRALIZED EXCHANGE
« Reply #36 on: Today at 06:42:54 AM »
but I have a question is the price tied with shib?
or a free-floating market?
1) As far as the order book itself, those are static orders we place at our prices and no price oracle is required to execute them, IE buy 100 BBP for 10 shib is static, and no matter what the price is of either token, the order is filled based on that static amount (but this is prob not what you meant)
2) As far as the UI display for the current price of SHIB that comes from the chainlink price oracle; I have the exchange check the chainlink oracle one every refresh to show the free floating price of shib
3) As far as BEP-20 BBP getting a pricing oracle, I checked into this and it requires us to get listed on any ERC-20 exchange that provides a price feed to coingecko.  Which we can either get listed on, or even  do it ourselves some day (I was listed on coingecko and coinmarketcap for a while using my own code) but that died when bololex died; but point is once we have the DEX on coingecko, it will start publishing a BBP price to the bscscan chain (and our exchange can pick that price up from coingecko for the room itself too)



  • Rob Andrews
  • Administrator

    • 4306


    • 97
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
Re: BEP-20 DECENTRALIZED EXCHANGE
« Reply #37 on: Today at 12:38:59 PM »
Added another test case for you:

Plz see the BEP-20 to Native bridge on the main menu.

Plz send some bbp to the native wallet and verify it arrives in the native webwallet; then vice versa, verify the other way arrives in the BEP-20 BBP wallet etc.