Skip to content

Commit 2db2acc

Browse files
committed
changed the value of offset to mitigate the attack
1 parent 25b953d commit 2db2acc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/token/ERC20/ERC4626/ERC4626Facet.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ contract ERC4626Facet {
4646
bytes32 constant STORAGE_POSITION = keccak256("compose.erc4626");
4747

4848
uint256 constant VIRTUAL_ASSET = 1;
49-
uint256 constant VIRTUAL_SHARE = 1;
49+
uint256 constant VIRTUAL_SHARE = 1e1;
5050

5151
/**
5252
* @dev ERC20 storage layout.

src/token/ERC20/ERC4626/ERC4626Mod.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ bytes32 constant ERC20_STORAGE_POSITION = keccak256("compose.erc20");
3838
bytes32 constant STORAGE_POSITION = keccak256("compose.erc4626");
3939

4040
uint256 constant VIRTUAL_ASSET = 1;
41-
uint256 constant VIRTUAL_SHARE = 1;
41+
uint256 constant VIRTUAL_SHARE = 1e1;
4242

4343
/**
4444
* @dev Storage for ERC20 logic.

0 commit comments

Comments
 (0)