babylonlabs-io / babylon-staking-indexer

Other
0 stars 2 forks source link

Handle delegation withdrawn #8

Open jrwbabylonlab opened 1 month ago

jrwbabylonlab commented 1 month ago

One thing to note is that there might be a race condition when bootstrapping BBN & BTC at the same time. You may consider only to bootstrap BTC txs a bit later. Worth investigate if BBN emit its stored BTC head number as an event, and sync until this height.

Update: We simply just need to register spend notification on staking and unbonding tx and then identify the spent path is withdrawal and mark status as "Withdrawn"

jrwbabylonlab commented 2 weeks ago

@gusin13 how about this one? is this done?

gusin13 commented 2 weeks ago

not yet, still WIP.