Arena
Deploys battles, aka options pools. Sets pool underlying, collateral, fees, expiries and other deployment parameters.
Last updated
Deploys battles, aka options pools. Sets pool underlying, collateral, fees, expiries and other deployment parameters.
Last updated
Assigns a fee ratio to pools created for a specific underlying asset. Can only be set by the owner.
Params:
Sets the whitelist status for a collateral token. Can only be set by the owner. This function will no longer be in use when the permissionless mode is enabled. Collateral tokens of 18 decimals are supported by default. Those with other decimal places are not recommended for use as collateral due to possible loss of computational precision.
Params:
Sets the whitelist status and fee for an underlying asset.
Params:
Toggles the permissionless mode of the contract. Permissionless mode is disabled initially, when the contracts begin in production. Only whitelisted collateral tokens can be used in battles. Once the permissionless mode is enabled, battles can be created with any ERC-20 token without the need for a whitelist.
Sets the manager address
Sets the oracle address
Creates a new battle, aka an options pool, using the specified parameters. A battle is used for one expiry only. Once options expire, a new battle can be created to extend the expiration cycle.
Params:
Returns:
Gets the battle address for a given battle key
Params:
Returns:
Fetches information about all battles
Returns:
Name
Type
Description
underlying
string
The symbol of underlying asset
_fee
Fee
The fee ratio for pools with the underlying asset
Name
Type
Description
collateral
address
The address of the collateral token
isSupported
bool
The whitelist status of the collateral token
Name
Type
Description
underlying
string
The symbol or name of the underlying asset
isSupported
bool
The whitelist status of the underlying asset
fee
Fee
The fee structure for the underlying asset
Name
Type
Description
bk
BattleKey
The key containing parameters for a battle, such as the collateral token, underlying asset, expiration timestamp, and strike value
Name
Type
Description
battle
address
The battle contract address
Name
Description
BattleKey
The key containing parameters for a battle, such as the collateral token, underlying asset, expiration timestamp, and strike value. See Types
Name
Type
Description
battle
address
The battle contract address
Name
Type
Description
BattleInfo
memory
Information about all battles, each including the battle address, battle key, sqrtPrice, start and expiry timestamps, Spear and Shield token addresses and balances, and battle outcome.