ConfiguratorPool
This module is used to creating, deleting and setting custom pools.
Write Methods
createPool
Creating a new custom pool.
Parameter Name | Type | Description |
---|---|---|
name | string | The name of the pool |
deletePool
Deleting a custom pool which does not has any asset.
Parameter Name | Type | Description |
---|---|---|
poolId | uint32 | The id of the pool |
setPoolName
Changing the name of the pool.
Parameter Name | Type | Description |
---|---|---|
poolId | uint32 | The id of the pool |
name | string | The new name of the pool |
addPoolGroup
Adding a new group to the pool. The group will be used for classify the collateral and interest rate. Each asset must belong to only one group.
Parameter Name | Type | Description |
---|---|---|
poolId | uint32 | The id of the pool |
groupId | uint32 | The id of the group and the value MUST be in [1, 2, 3] |
removePoolGroup
Removing a group from the pool. The to be deleted group MUST does not have any asset belong to this group.
Parameter Name | Type | Description |
---|---|---|
poolId | uint32 | The id of the pool |
groupId | uint32 | The id of the group and the value MUST be in [1, 2, 3] |
Last updated