Skip to content

Latest commit

 

History

History
16 lines (13 loc) · 347 Bytes

README.md

File metadata and controls

16 lines (13 loc) · 347 Bytes

Plugin Balance Wrapper

Wrap an Interledger Ledger Plugin to extend it with simple balance logic

Usage

const { PluginBalanceWrapper } = require('ilp-plugin-balance-wrapper')
const plugin = new PluginBalanceWrapper({
  plugin: pluginToWrap,
  settleThreshold: 0,
  settleTo: 0,
  maximum: 1000
})
// Now use the plugin as normal