UpdateGlobalVar
This transaction is used to update the global variable settings.
Name
Type
Required
Description
type
String
yes
The value is "UpdateGlovalVar "
seriaId
u64
yes
The serial id
There are 5 parameters, different operations correspond to different parameters:
Modify the collect-fee account.
Name
Type
Required
Description
For example:
{
"type": "UpdateGlobalVar",
"fromChainId": 1,
"subAccountId": 1,
"parameter": {
"feeAccount": {
"accountId": 10
}
},
"serialId": 100
}Modify the insurance fund account
Name
Type
Required
Description
For Example:
{
"type": "UpdateGlobalVar",
"fromChainId": 1,
"subAccountId": 1,
"parameter": {
"insuranceFundAccount": {
"accountId": 9
}
},
"serialId": 100
}Modify the info of every perpetual contract pair.
Name
Type
Required
Description
symbol
String
yes
The symbol of the contract
initialMarginRate
u16
yes
The initial margin rate of the contract, 100 means 0.1%
maintenanceMarginRate
u16
yes
The maintenance margin rate, 100 means 0.1%
Update the funding rates to accumulated funding rates of the Global Vars for all position(contract pair) in this period
For example:
Last updated
Was this helpful?