Platform: Code4rena
Start Date: 23/06/2023
Pot Size: $60,500 USDC
Total HM: 31
Participants: 132
Period: 10 days
Judge: 0xean
Total Solo HM: 10
Id: 254
League: ETH
Rank: 2/132
Findings: 1
Award: $4,814.85
🌟 Selected for report: 1
🚀 Solo Findings: 1
🌟 Selected for report: cthulhu_cult
4814.8482 USDC - $4,814.85
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.13; import "forge-std/Test.sol"; import {ITransparentUpgradeableProxy} from "@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol"; import {LybraProxy} from "@lybra/Proxy/LybraProxy.sol"; import {LybraProxyAdmin} from "@lybra/Proxy/LybraProxyAdmin.sol"; import {GovernanceTimelock} from "@lybra/governance/GovernanceTimelock.sol"; import {PeUSDMainnet} from "@lybra/token/PeUSDMainnetStableVision.sol"; import {Configurator} from "@lybra/configuration/LybraConfigurator.sol"; import {EUSDMock} from "@mocks/mockEUSD.sol"; import {mockCurve} from "@mocks/mockCurve.sol"; import {mockUSDC} from "@mocks/mockUSDC.sol"; /* remappings used @lybra=contracts/lybra/ @mocks=contracts/mocks/ */ contract CounterScript is Test { address goerliEndPoint = 0xbfD2135BFfbb0B5378b56643c2Df8a87552Bfa23; LybraProxy proxy; LybraProxyAdmin admin; GovernanceTimelock govTimeLock; mockUSDC usdc; mockCurve curve; Configurator configurator; Configurator configuratorLogic; EUSDMock eusd; PeUSDMainnet peUsdMainnet; address owner = address(7); address[] govTimelockArr; function setUp() public { vm.startPrank(owner); govTimelockArr.push(owner); govTimeLock = new GovernanceTimelock( 1, govTimelockArr, govTimelockArr, owner ); usdc = new mockUSDC(); curve = new mockCurve(); eusd = new EUSDMock(address(configurator)); // _dao , _curvePool configuratorLogic = new Configurator(address(govTimeLock), address(curve)); admin = new LybraProxyAdmin(); proxy = new LybraProxy(address(configuratorLogic),address(admin),bytes("")); configurator = Configurator(address(proxy)); peUsdMainnet = new PeUSDMainnet( address(configurator), 8, goerliEndPoint ); vm.stopPrank(); } function test_LybraConfigurationContractDoesNotInitialize() public { vm.startPrank(address(owner)); vm.expectRevert(); // Since the Governance time lock is set to zero. configurator.initToken(address(eusd), address(peUsdMainnet)); } }
Upgradable
#0 - c4-pre-sort
2023-07-10T19:26:00Z
JeffCX marked the issue as primary issue
#1 - c4-sponsor
2023-07-14T09:14:11Z
LybraFinance marked the issue as sponsor confirmed
#2 - c4-judge
2023-07-25T23:19:49Z
0xean marked the issue as satisfactory
#3 - 0xean
2023-07-28T15:26:58Z
On the fence re: severity here and could see the argument for this being M. Will leave as submitted for now, but open to comment during QA on the topic.
#4 - c4-judge
2023-07-28T20:42:50Z
0xean marked the issue as selected for report
#5 - oxneon
2023-08-03T10:03:00Z
On the fence re: severity here and could see the argument for this being M. Will leave as submitted for now, but open to comment during QA on the topic.
I think based on severity, shouldn't this one be an [M]?