Liquidity Provider
Liquidity Provider
readIsLiquidityProvider
Check if a user is a liquidity provider
** Request **
Params*
Type*
Description
_eventId
uint256
event id
_user
address
user address
**Response **
Params
Type
Description
isProvider
boolean
Is it a liquidity provider
readLiquidityProvider
Read the balance of liquidity providers
** Request **
Params
Type
Description
_eventId
uint256
event id
_users
array< address >
user address array
** Response **
Params
Type
Description
_eventBalance
uint256[2][]
0:balance,1:turnover
addLiquidity
Add liquidity
params
type
Description
_eventId
uint256
cds event id
_amount
uint256
invest amount
removeLiquidity
Remove Liquidity
params
type
Description
_eventId
uint256
cds event id
_amount
uint256
Invest amount
liquiditySettlement
Liquidity providers settle cds
Params
Type
Description
_eventId
uint256
cds event id
Last updated