Skip to content

[invariant] layer-one pools and liquidity providers

akrokr requested to merge akh/inv_pool into develop

Based on !3015 (merged), only most recent commit is new, diff will resolve after 3015 is merged.

Invariant to check that pool accounting of units and pending rune/asset is in sync with liquidity provider accounting.

Example break in reg tests:

4:41PM ERR cmd/run.go:296 > invariants failed error="pools invariant is broken: [BTC.BTC insolvent: 3 units BTC.BTC insolvent: 2 pending rune BTC.BTC insolvent: 1 pending asset]"

Succeeded: 0
Failed: 1

Related to #1313

Edited by akrokr

Merge request reports