prepare_fade_bet
may change things: you confirm before it runsBet back or fade on an open fade round, in the dollar token (default) or an allowed side token: approve to the fade market, then bet or betToken.
Input schema
{
"type": "object",
"properties": {
"roundId": {
"type": "integer",
"minimum": 1,
"maximum": 2147483647
},
"side": {
"type": "string",
"enum": [
"back",
"fade"
]
},
"amount": {
"type": "string",
"maxLength": 40,
"description": "Decimal string in whole token units, e.g. \"25\" or \"12.5\""
},
"token": {
"type": "string",
"maxLength": 64,
"description": "Dollar token (default) or a side token from get_config fadeSideTokens, by symbol or address"
}
},
"required": [
"roundId",
"side",
"amount"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}