Skip to content

Feat/slippage protection naira payout#723

Merged
Idrhas merged 2 commits into
Farm-credit:mainfrom
octobersmvp:feat/slippage-protection-naira-payout
Jun 30, 2026
Merged

Feat/slippage protection naira payout#723
Idrhas merged 2 commits into
Farm-credit:mainfrom
octobersmvp:feat/slippage-protection-naira-payout

Conversation

@octobersmvp

Copy link
Copy Markdown

Summary

Related Issue

Closes #

What Was Implemented

  • [ ]

Implementation Details

Screenshots / Recordings

How to Test

Checklist

  • My code follows the atomic commit convention
  • Each commit message follows Conventional Commits (feat:, fix:, etc.)
  • I have performed a self-review of my code
  • My changes build successfully (pnpm build)
  • My changes pass linting (pnpm lint)
  • I have added/updated relevant documentation
  • New components follow the atomic design pattern (atoms → molecules → organisms)
  • UI changes are responsive and tested on mobile viewports
  • I have added screenshots/recordings for UI changes

closes #640

- Add max_slippage (bps) and reference_rate storage to naira-payout
- Add set_slippage, set_reference_rate admin setters
- Add slippage check in initiate_payout against reference rate
- Add get_max_slippage, get_reference_rate view functions
- Add payout lifecycle error codes (47-53) and slippage errors (114-115) to harvesta-errors
- Fix duplicate discriminant collision in harvesta-errors (InvasiveSpecies/HashMismatch)
- Add 5 new tests for slippage scenarios
@drips-wave

drips-wave Bot commented Jun 29, 2026

Copy link
Copy Markdown

@octobersmvp Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Idrhas

Idrhas commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Fix merge conflict and dont forget to Offramp your USDC on https://fundable.finance when you receive your rewards

@Idrhas
Idrhas merged commit 019752f into Farm-credit:main Jun 30, 2026
6 of 9 checks passed
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.

[Contract] Implement Slippage Protection in naira-payout

3 participants