Giter VIP home page Giter VIP logo

Comments (5)

cbeams avatar cbeams commented on June 23, 2024 1

from proposals.

cbeams avatar cbeams commented on June 23, 2024

Generally I'm +1 for the idea. A couple quick thoughts:

  1. I doubt traders would be happy with the prospect of randomly choosing the winner in case of a tie. They'd expect to get their stakes back, and I imagine that's what other platforms do. I understand why this is technically challenging, but explaining that to traders may not have any effect on their opinion.

  2. In the case of an oracle that publishes the price, it should perhaps be that the oracle publishes at blockHeight and then BSQ nodes evaluate the contract at blockHeight+1 in order to avoid race conditions.

from proposals.

ManfredKarrer avatar ManfredKarrer commented on June 23, 2024

@cbeams Thanks for the feedback!

  1. I doubt traders...

Yes good point. I think it will depend on the granularity of the price data. If it is a 4 decimal price it will be highly unlikely that this ever will happen. It just makes all easier as we don't need to support a refund mode. But of course it would be possible as well but might have some negative consequences. E.g. the traders need to make 2 issuance transactions. One with full payment to him and one with split refund payout. Those cost btc fees... But maybe there is a way to work with not published transactions as well and that the issuance tx will be only broadcasted in case of a win (or slipt refund) scenario.

  1. In the case of an oracle...

Good idea. Probably we will need some more buffer for avoiding issues with reorgs. Theoretically the result could be included in a block which gets later re-orged and then the alternative chain might contain another tx with another result. With 10 blocks break between price publishing and cntract result execution we avoid those problems.

from proposals.

ManfredKarrer avatar ManfredKarrer commented on June 23, 2024

@cbeams Ah yes that is a good idea!

from proposals.

ManfredKarrer avatar ManfredKarrer commented on June 23, 2024

No plans to work on that in the foreseeable future.

from proposals.

Related Issues (20)

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.