Closed bitcoinbrisbane closed 2 weeks ago
The pull request introduces changes to the DynamicEater
contract, primarily altering variable visibility and enhancing the logic of the _merge
and mergeWithProof
functions. The _totalMerged
variable is now public and renamed to totalMerged
, allowing broader access. The _merge
function has been updated to accurately track merged amounts for each vesting account. Additionally, the mergeWithProof
function now includes an allocation
parameter for better validation of merge requests. The test suite has also been updated to reflect these changes, ensuring comprehensive coverage of the new functionality.
File | Change Summary |
---|---|
contracts/core/merge/DynamicEater.sol | - Changed _totalMerged from internal to public as totalMerged .- Updated _merge logic to track merged amounts.- Modified mergeWithProof to include allocation parameter and added validation checks. |
test/DynamicEater.test.ts | - Added assertions for totalMerged and updated tests for mergeWithProof to include new parameter.- Enhanced test coverage for merging scenarios. |
test/Farm.test.ts | - Added .skip to several describe and it blocks, disabling tests related to the "Farm" contract. |
Objective | Addressed | Explanation |
---|---|---|
Expose _totalMerged for the front end |
✅ | |
Allow holders to merge multiple times | ❓ | The implementation details on multiple merges are unclear. |
Enable merging the delta between TotalMerged and Merge Cap | ❌ | No specific changes to handle delta merging were implemented. |
DynamicEater
contract regarding the introduction of a maximum supply for tokens and adjustments to the _merge
function are directly related to the modifications made in the main PR.onlyWhiteListed
modifier in the DynamicEater
contract aligns with the main PR's focus on improving merging logic and validation processes.enhancement
, SC
🐇 In the garden where tokens play,
TheDynamicEater
finds its way.
WithtotalMerged
now in sight,
Merging amounts feels just right.
With proofs and checks, we hop along,
Validating merges, where we belong! 🌼
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Fixes #102
Summary by CodeRabbit
New Features
Bug Fixes
Chores