Skip to content

test: cover same spoke add and draw accounting - #1353

Open
Amlan2006 wants to merge 1 commit into
aave:mainfrom
Amlan2006:test/hub-same-spoke-add-draw-accounting
Open

test: cover same spoke add and draw accounting#1353
Amlan2006 wants to merge 1 commit into
aave:mainfrom
Amlan2006:test/hub-same-spoke-add-draw-accounting

Conversation

@Amlan2006

Copy link
Copy Markdown

Adds Hub draw coverage for the case where the same Spoke adds liquidity and then draws the same asset.

This test documents that Hub accounting keeps added shares and drawn shares as independent ledgers. Drawing liquidity does not auto-net against previously added liquidity from the same Spoke.

  • Covers same-Spoke add/draw accounting
  • Asserts added shares remain after draw
  • Asserts drawn shares are created after draw
  • Asserts Hub liquidity updates independently of share accounting

Testing:

forge test --match-path tests/contracts/hub/draw-restore/Hub.Draw.t.sol

@Amlan2006

Copy link
Copy Markdown
Author

@avniculae @DhairyaSethi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant