-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding current balance of tBTC to depositBalancer var in MezoAllocator
Included tbtc.balanceOf(address(this)) to calculate the total assets held by Mezo Allocator contract. This is to properly calculate all the assets including any 'donations' that were made directly to Mezo Allocator contract. As a result, new deposits will receive a correct amount of shares. Without this fix, new deposits could've received more shares that intended.
- Loading branch information
Showing
3 changed files
with
155 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters