Skip to content

Conversation

peer2f00l
Copy link
Collaborator

@peer2f00l peer2f00l commented Mar 12, 2025

Linked positions significantly improve the ergonomics and encapsulation of the borrow & supply positions. This (rather large) refactor was also necessary to cleanly implement event emission, so it is combined in this PR.

Breaking API change: This updates the Accumulator struct (used for tracking interest/fees on borrow positions and yield on supply positions) to include a pending_estimate field, replacing pending_fee_estimate on borrow positions and pending_yield_estimate on supply positions. This field is NOT saved to contract storage.

@peer2f00l peer2f00l linked an issue Mar 12, 2025 that may be closed by this pull request
@peer2f00l peer2f00l requested a review from SmolinPavel March 12, 2025 16:20
@peer2f00l peer2f00l self-assigned this Mar 12, 2025
@peer2f00l peer2f00l added documentation Improvements or additions to documentation enhancement New feature or request labels Mar 12, 2025
@peer2f00l peer2f00l enabled auto-merge (squash) March 12, 2025 16:21
@peer2f00l
Copy link
Collaborator Author

peer2f00l commented Mar 12, 2025

@SmolinPavel Let me know what additional events, or what additional details in the new events, should be included, if any.

Copy link

Staging contract is deployed to gh-43.templar-in-training.testnet account

Copy link

Staging contract is deployed to gh-43.templar-in-training.testnet account

@peer2f00l peer2f00l merged commit a950a37 into dev Mar 13, 2025
4 checks passed
@peer2f00l peer2f00l deleted the 16-event-emission branch March 13, 2025 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Event emission

2 participants