Skip to content

fix: Timelock improvements and GovernorBravoDelegate ETH transfer bug#303

Open
weiwei9964 wants to merge 1 commit into
compound-finance:masterfrom
weiwei9964:master
Open

fix: Timelock improvements and GovernorBravoDelegate ETH transfer bug#303
weiwei9964 wants to merge 1 commit into
compound-finance:masterfrom
weiwei9964:master

Conversation

@weiwei9964

@weiwei9964 weiwei9964 commented May 17, 2026

Copy link
Copy Markdown

Changes

Fixes #214 — Timelock improvements

  • Removed SafeMath import (Solidity 0.8+ has built-in overflow checks)
  • Removed public from constructor
  • Added in-queue check for cancelTransaction() — reverts if tx not queued

Fixes #150 — ETH sent to Timelock locked

  • Changed executeTransaction{value: proposal.values[i]} to {value: 0}
  • ETH should be pulled from the Timelock contract balance, not from msg.sender
  • Prevents ETH from being permanently locked in the Timelock

This contribution was made through an AI agent. USDC on Polygon accepted at 0xadb9291432805c27dca53db06d97afb3f2fa2658.

Closes compound-finance#214 and compound-finance#150

compound-finance#214: Timelock improvements
- Remove SafeMath import (Sol 0.8+ has built-in overflow checks)
- Remove public from constructor
- Add in-queue check for cancelTransaction()

compound-finance#150: Fix ETH locked in Timelock
- Change executeTransaction value from proposal.values[i] to 0
- ETH should come from Timelock balance, not msg.sender
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.

Several improvements on TimeLock.sol Eth sent to Timelock will be locked in current implementation

1 participant