Skip to content

feat: add updateFarmVest init function#38

Merged
amusingaxl merged 39 commits into
masterfrom
feat/update-farm-vest
Dec 15, 2025
Merged

feat: add updateFarmVest init function#38
amusingaxl merged 39 commits into
masterfrom
feat/update-farm-vest

Conversation

@amusingaxl

Copy link
Copy Markdown
Contributor

No description provided.

@amusingaxl amusingaxl self-assigned this Oct 7, 2025
@amusingaxl
amusingaxl requested review from 0xLaz3r and oddaf October 7, 2025 21:08
@amusingaxl
amusingaxl force-pushed the feat/update-farm-vest branch from a083f3e to e5e00d6 Compare October 7, 2025 21:44
Base automatically changed from feat/sky-farms-deployment to master October 23, 2025 14:19
@amusingaxl
amusingaxl marked this pull request as ready for review October 31, 2025 17:00
Comment thread script/dependencies/treasury-funded-farms/TreasuryFundedFarmingInit.sol Outdated
Comment thread script/dependencies/treasury-funded-farms/TreasuryFundedFarmingInit.sol Outdated
Comment thread script/dependencies/treasury-funded-farms/TreasuryFundedFarmingInit.sol Outdated
@amusingaxl
amusingaxl requested a review from 0xLaz3r November 15, 2025 22:02
0xLaz3r
0xLaz3r previously approved these changes Nov 16, 2025
Comment thread script/dependencies/treasury-funded-farms/TreasuryFundedFarmingInit.sol Outdated
Comment thread script/dependencies/treasury-funded-farms/TreasuryFundedFarmingInit.sol Outdated
- Validate vestTot > 0 to prevent zero total vesting
- Validate vestTau > 0 to prevent division by zero
- Check that distribution vestId is already set (not zero)
- Verify vest gem matches distribution gem
- Fix error message prefix from initFarm to updateFarmVest
- Add comprehensive test coverage for invalid parameters
- Check if vest cap needs adjustment when required rate exceeds current cap
- Set cap to rate with 10% buffer when adjustment is needed
- Refactor allowance calculation into scoped block for clarity
- Add comprehensive test coverage for cap adjustment scenarios
- Add tests for allowance calculation and vest creation parameters
Replace generic error messages with descriptive ones that clearly explain
what operation failed and what the expected behavior should be.

@0xLaz3r 0xLaz3r left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@amusingaxl
amusingaxl merged commit 4f238f9 into master Dec 15, 2025
2 checks passed
@amusingaxl
amusingaxl deleted the feat/update-farm-vest branch December 15, 2025 17:56
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.

3 participants