_enabled is set to false in the initialize() making it impossible to deposit tokens.
The initialize
function sets _enabled
to false
when the contract is initialized.
The depositTokens
function checks if _enabled
is true before allowing any token deposits. If _enabled
is false, it reverts with a BridgeNotEnabledError
.
The Bridge contract is initialized with the _enabled
flag set to false
, effectively disabling all token deposit functionality. However, there is no public function to enable the bridge after initialization. This means that the core functionality of the contract (depositing tokens) is unusable after deployment.
Users will not be able to deposit any tokens using the depositTokens
function, as it will always revert with a BridgeNotEnabledError
. This renders the main purpose of the bridge contract non-functional.
Manual review
If the intention is to have the bridge enabled by default, modify the initialize
function to set _enabled = true
.
If the bridge should start disabled but be enableable later, include enableBridge
function callable only by a privileged address.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.