Task description
It would be helpful to have a formula available to calculate the delegated_stake_cap/delegated_capital_cap off-chain without a node connection to the chain.
The value can be queried from the node via the rust sdk as follows already:
get_pool_info (https://docs.rs/concordium-rust-sdk/latest/concordium_rust_sdk/v2/struct.Client.html#method.get_pool_info) → BakerPoolStatus → ActiveBakerPoolStatus (https://docs.rs/concordium-rust-sdk/latest/concordium_rust_sdk/types/struct.ActiveBakerPoolStatus.html) → delegated_capital_cap
But some of our services (e.g.graphql_api service from CCDScan) have no node connection because we wanted to keep the micro service simple and run several instances of it easily). These services would benefit from an off-chain alternative available in the rust SDK.
Concordium/concordium-scan#550 (comment)
Task description
It would be helpful to have a formula available to calculate the
delegated_stake_cap/delegated_capital_capoff-chain without a node connection to the chain.The value can be queried from the node via the rust sdk as follows already:
get_pool_info (https://docs.rs/concordium-rust-sdk/latest/concordium_rust_sdk/v2/struct.Client.html#method.get_pool_info) → BakerPoolStatus → ActiveBakerPoolStatus (https://docs.rs/concordium-rust-sdk/latest/concordium_rust_sdk/types/struct.ActiveBakerPoolStatus.html) → delegated_capital_cap
But some of our services (e.g.
graphql_apiservice from CCDScan) have no node connection because we wanted to keep the micro service simple and run several instances of it easily). These services would benefit from an off-chain alternative available in the rust SDK.Concordium/concordium-scan#550 (comment)