Closed nud3l closed 1 year ago
Calculate the circulating supply of INTR and KINT and make it available via an API.
Getting the circulating supply:
const vestingSchedules = await api.query.vesting.vestingSchedules.entries(); const vestingAccounts = vestingSchedules.map(([key, _]) => key.args[0].toHuman()); const escrowLocked = await api.query.escrow.locked.entries(); const escrowAccounts = escrowLocked.map(([key, _]) => key.args[0].toHuman());
Publish the circulating supply via an API (update https://github.com/interlay/interbtc-ui/blob/master/api/supply_info.py)
Calculate the circulating supply of INTR and KINT and make it available via an API.
Getting the circulating supply:
Publish the circulating supply via an API (update https://github.com/interlay/interbtc-ui/blob/master/api/supply_info.py)