DelegateApproval
Functions
initialize
approve
Parameters:
delegate
address
The address of delegate
actions
uint8
The actions to be approved
revoke
Parameters:
delegate
address
The address of delegate
actions
uint8
The actions to be revoked
getClearingHouseOpenPositionAction
Return Values:
action
uint8
The value of action _CLEARINGHOUSE_OPENPOSITION
getClearingHouseAddLiquidityAction
Return Values:
action
uint8
The value of action _CLEARINGHOUSE_ADDLIQUIDITY
getClearingHouseRemoveLiquidityAction
Return Values:
action
uint8
The value of action _CLEARINGHOUSE_REMOVELIQUIDITY
getApprovedActions
Parameters:
trader
address
The address of trader
delegate
address
The address of delegate
Return Values:
actions
uint8
The approved actions
hasApprovalFor
Parameters:
trader
address
The address of trader
delegate
address
The address of delegate
actions
uint8
The actions to be checked
Return Values:
true
bool
if delegate is allowed to perform each actions for trader, otherwise false
canOpenPositionFor
Parameters:
trader
address
The address of trader
delegate
address
The address of delegate
Return Values:
true
bool
if delegate can open position for trader, otherwise false
canAddLiquidityFor
Parameters:
trader
address
The address of trader
delegate
address
The address of delegate
Return Values:
true
bool
if delegate can add liquidity for trader, otherwise false
canRemoveLiquidityFor
Parameters:
trader
address
The address of trader
delegate
address
The address of delegate
Return Values:
true
bool
if delegate can remove liquidity for trader, otherwise false
Last updated