horse-link / horse.link

Official website for https://alpha.horse.link
https://alpha.horse.link
2 stars 0 forks source link

Cant bet #625

Open bitcoinbrisbane opened 2 months ago

bitcoinbrisbane commented 2 months ago

image

bitcoinbrisbane commented 2 months ago

@darrenrogan ill double check the signatures, the shape has changed

bitcoinbrisbane commented 2 months ago

The shape of the api is now this, so we can do win and place bets.

"backs": [
                    {
                        "type": "win",
                        "nonce": "0xc7393020754f26c7eb12deb46707cd00",
                        "market_id": "019839MACW01",
                        "close": 1714099560,
                        "end": 1714099920,
                        "odds": 2.390701,
                        "proposition_id": "019839MACW0101",
                        "signature": {
                            "v": 27,
                            "r": "0x839f8373e1932980fad33efc53d947eac9b2be28d254ed9b09cd891e180fe1f0",
                            "s": "0x7eeaff75e6a7e9d0eec29ab45948b8043ae3429892055563abc4ab0ac27f513b"
                        }
                    },
                    {
                        "type": "place",
                        "nonce": "0xc7393020754f26c7eb12deb46707cd00",
                        "market_id": "019839MACW01",
                        "close": 1714099560,
                        "end": 1714099920,
                        "odds": 1.390953,
                        "proposition_id": "019839MACW0101",
                        "signature": {
                            "v": 27,
                            "r": "0x48c18aa1ca3100f9b17d288b98fd56a90b90f8895d23225c949d98979facc269",
                            "s": "0x4ad6984b969033609822e13ba3788627d93790ee8d920e2bd0c7adf3fc0c7284"
                        }
                    }
bitcoinbrisbane commented 2 months ago

"proposition_id": "019839MACW0101" is wrong, should be "proposition_id": "019839MACP0101", (p for place)

bitcoinbrisbane commented 2 months ago

"proposition_id": "019839MACW0101" is wrong, should be "proposition_id": "019839MACP0101", (p for place)

Fixed https://github.com/horse-link/api.horse.link/commit/124d27445225d0e843156ac3a49fc41334d846db#diff-51e8e299d72f637df05f39441a097081147769927c10c0285954979a62601bf7R79