-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add usde Pendle YTs to the guard. #34
Conversation
mijovic
commented
Jan 28, 2025
•
edited
Loading
edited
- Add safe batches
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good -- validated the YT address against pendle's front end.
Will need the safe contract batch json and a merge with main.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes – lgtm! (woot, first dorde PR 🍾 )
seconded on merging in main – should fix any problems with the build.
were you able to run the new function with forge script
successfully?
script/RumpelConfig.sol
Outdated
configs[0] = TokenGuardConfig({ | ||
token: MAINNET_PENDLE_YT_USDE_27MAR2025, | ||
transferAllowState: RumpelGuard.AllowListState.ON, | ||
approveAllowState: RumpelGuard.AllowListState.ON |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note for most of the other YTs, we don't actually add approve
to the allowlist (see getFluidSusdeAndYTsTokenGuardConfigs
function as an example). The idea is to allow the minimal number of functions, and users don't need to deposit their YTs into anything (which would require approve
), so we haven't added
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
got it, makes sense
I changed to OFF for now
484665e
to
95d3e9e
Compare
@mijovic re-ran the batch script to remove the approve update |