Merge pull request #12673 from ethereum/work-around-element-fi-expired-timestamp

Bypass an expiration check in ElementFi until it's fixed upstream
This commit is contained in:
chriseth 2022-02-15 14:12:44 +01:00 committed by GitHub
commit 1698384864
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -85,6 +85,10 @@ function elementfi_test
sed -i 's|bytes32(uint256(pool))|bytes32(uint256(uint160(pool)))|g' vault/PoolRegistry.sol sed -i 's|bytes32(uint256(pool))|bytes32(uint256(uint160(pool)))|g' vault/PoolRegistry.sol
popd popd
# The test suite uses forked mainnet and an expiration period that's too short.
# TODO: Remove when https://github.com/element-fi/elf-contracts/issues/243 is fixed.
sed -i 's|^\s*require(_expiration - block\.timestamp < _unitSeconds);\s*$||g' contracts/ConvergentCurvePool.sol
# Several tests fail unless we use the exact versions hard-coded in package-lock.json # Several tests fail unless we use the exact versions hard-coded in package-lock.json
#neutralize_package_lock #neutralize_package_lock