-
Notifications
You must be signed in to change notification settings - Fork 24
Feat: Add SPK Farms Deployment Scripts #36
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
Conversation
| function run() external returns (bool) { | ||
| Reader deps = new Reader(ScriptTools.loadDependencies()); | ||
|
|
||
| address admin = deps.readAddress(".admin"); |
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.
I think we could load the admin to be checked from the chainlog instead?
- address admin = deps.readAddress(".admin");
+ address admin = chainlog.getAddress("MCD_PAUSE_PROXY");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.
Ser, in this case it's reading from the output that is exported from the script, which in turn is set to be the PauseProxy: https://github.com/sky-ecosystem/endgame-toolkit/blob/feat/spk-farms-deployment/script/spk-farms/01-UsdsSpkFarmingDeploy.s.sol#L65
| interface VestedRewardsDistributionLike { | ||
| function dssVest() external view returns (address); | ||
|
|
||
| function vestId() external view returns (uint256); |
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.
I think this is not used.
pedrobergamini
left a comment
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.
LGTM
Add deployment scripts for the new SPK farms.
[sc-2921]