Skip to content
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 implementation + deployment of the ProtocolFeesWithdrawer #1301

Merged
merged 11 commits into from
May 18, 2022

Conversation

TomAFrench
Copy link
Contributor

@TomAFrench TomAFrench commented May 16, 2022

This PR adds the ProtocolFeesWithdrawer which allows us to prevent withdrawals of certain tokens from the ProtocolFeesCollector. This is helpful in the case where the ProtocolFeesCollector holds a token which must not be distributed under any circumstances (e.g. it's actually user funds rather than protocol fees) as an emergency subDAO can denylist the token to temporarily freeze it in the collector until they can be safely dealt with.

The initial list of denylisted tokens is just SNX and sBTC. We'll likely want to flesh that out with a full set of Sythetix tokens before deployment.

@TomAFrench TomAFrench requested a review from nventuro May 16, 2022 16:40
@TomAFrench
Copy link
Contributor Author

If I build 289ac5f I get a buildinfo with the hash b068bb7aff7bd2bc4a519998ca0e67b1 which doesn't match what we have in this commit.

@nventuro
Copy link
Contributor

I pushed e2115f1, which reverts the change from e9b66e7 in an unrelated contract in the same package, changing the build info. The latest commit (e2115f1) now has correct build info.

I'll undo e2115f1 separately in master, so that this PR has the correct code.

@TomAFrench
Copy link
Contributor Author

Thanks, If I build e2115f1, I now get a buildinfo with the hash 72ed588df7b18e41b79aeecffdd00819 as expected.

@TomAFrench TomAFrench merged commit db679aa into master May 18, 2022
@TomAFrench TomAFrench deleted the protocol-fee-withdrawer branch May 18, 2022 17:15
TomAFrench added a commit that referenced this pull request May 18, 2022
* master:
  Automatically save the deployment tx hash on deployment (#1310)
  Update SNX impl input (#1309)
  Add implementation + deployment of the ProtocolFeesWithdrawer (#1301)
  minor update for consistency (#1306)
  fix: fix fork test for NoProtocolFeeLBP (#1304)
  ci: switch from infura to alchemy (#1305)
  Check deployment outputs (#1284)
  fix: use force argument in no fee LBP task (#1303)
  style: silence linter errors (#1302)
  change 'factory' to 'NoProtocolFeeLiquidityBootstrappingPoolFactory' (#1286)
  Double Entrypoint Fix Relayer (#1300)
TomAFrench added a commit that referenced this pull request May 26, 2022
* master: (76 commits)
  Reuse swap fee code; add startWeights to weight update params for symmetry with swap fee update params (#1324)
  Ensure that global permissions are properly transferred along with root status. (#1319)
  Move up require to save gas on add token validation failure (#1318)
  Stop migrating role-admins (#1321)
  Managed Pools: Consistent LP allowlist behavior (#1322)
  Only allow root to create new granters or revokers (#1313)
  Only allow root to schedule a change to a delay (#1314)
  Switch to a two step process to migrate the root account of the Authorizer (#1316)
  Add optional key argument to verify-contract
  Add explicit getters for TimelockAuthorizer (#1298)
  Update Authorizer tests (#1299)
  fix: stop storing deployment transactions for fork test deployments (#1311)
  Automatically save the deployment tx hash on deployment (#1310)
  Update SNX impl input (#1309)
  Add implementation + deployment of the ProtocolFeesWithdrawer (#1301)
  minor update for consistency (#1306)
  fix: fix fork test for NoProtocolFeeLBP (#1304)
  ci: switch from infura to alchemy (#1305)
  Check deployment outputs (#1284)
  fix: use force argument in no fee LBP task (#1303)
  ...
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.

2 participants