babylonchain / staking-indexer

A tool that extracts BTC staking relevant data from the Bitcoin blockchain
Other
3 stars 4 forks source link

chore: Fix cap boundary condition #89

Closed gitferry closed 5 months ago

gitferry commented 5 months ago

This PR is to fix the cap boundary condition. Now a staking tx is considered to be overflow if the current tvl >= cap (previously is tvl > cap). For example, the cap is 10 BTCs and we have txs with 1, 9, and 2 BTCs, respectively, we will accept the first 2 transactions and the third one with 2 BTCs will be overflow