This repository has been archived by the owner on May 28, 2021. It is now read-only.
New Features
- #1405 - Improved collateral management (explanation below)
Improved Collateral Management
Node
- Admin endpoints to add and view rebalance profiles per channel/asset combo. Example requests:
# Add Rebalance Profile
POST http://localhost:3000/api/admin/rebalance-profile
Content-Type: application/json
x-auth-token: cxt1234
{
"multisigAddress": "0x93a8eAFC6436F3e238d962Cb429893ec22875705",
"rebalanceProfile": {
"assetId": "0x4E72770760c011647D4873f60A3CF6cDeA896CD8",
"collateralizeThreshold": "5",
"target": "15",
"reclaimThreshold": "0"
}
}
###
# Get Rebalance Profile
GET http://localhost:3000/api/admin/rebalance-profile/0x93a8eAFC6436F3e238d962Cb429893ec22875705/0x0000000000000000000000000000000000000000
Content-Type: application/json
x-auth-token: cxt1234
- New environment variables exposed for setting default collateralization limits. Set using stringified JSON.
INDRA_DEFAULT_REBALANCE_PROFILE_ETH
INDRA_DEFAULT_REBALANCE_PROFILE_TOKEN
- Currently applies across all tokens
Example:
export INDRA_DEFAULT_REBALANCE_PROFILE_TOKEN='{"assetId":"0x4E72770760c011647D4873f60A3CF6cDeA896CD8","collateralizeThreshold":"10000000000000000","target":"50000000000000000","reclaimThreshold":"200000000000000000"}'
Client
- Optional
amount
field added torequestCollateral
method.amount
can be larger thantarget
but must be less thanreclaimThreshold
.
Artifacts
Node Docker Image
NPM Packages
@connext/{types,utils,cf-core,apps,messaging,store,channel-provider,client,watcher}@7.3.11