Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[VEN-1831]: Multichain fork tests #299

Merged
merged 37 commits into from
Jul 26, 2024
Merged

[VEN-1831]: Multichain fork tests #299

merged 37 commits into from
Jul 26, 2024

Conversation

Debugger022
Copy link
Collaborator

@Debugger022 Debugger022 commented Sep 1, 2023

Description

Resolves #VEN-1831
This PR contains the support for multi chain fork tests, currenlty we are supporting these chains :-

  • Bsc mainnet
  • Bsc testnet
  • Ethereum
  • Sepolia
  • Obnb mainnet
  • Opbnb testnet
  • Arbitrum Sepolia
  • Arbitrum One

I have added config files to support multiple chains, files are :-

  • constants.ts : it contains addresses of deployed contracts on different chains which will be used while forking tests.

Files updated :-

  • borrowAndRepay
  • liquidation
  • reduceReservesTests
  • rewardForkTests
  • supply
  • shortfall

Note:-

  1. Rewards Fork test do not run for opbnbtestnet and opbnbmainnet as no RewardsDistributor is deployed on these chains.
  2. Liquidation from Comptroller test cases for timbased contracts like on ArbitrumSepolia and ArbitrumOne do not execute as we need to pass the fix amount to liquidate the user, but in case for timebased contracts we are not able to findout that exact amount as time passes the amount gets changed too.

@Debugger022 Debugger022 marked this pull request as ready for review November 3, 2023 14:06
tests/hardhat/Fork/RewardsForkTest.ts Outdated Show resolved Hide resolved
tests/hardhat/Fork/constants.ts Outdated Show resolved Hide resolved
tests/hardhat/Fork/constants.ts Outdated Show resolved Hide resolved
tests/hardhat/Fork/constants.ts Outdated Show resolved Hide resolved
tests/hardhat/Fork/constants.ts Outdated Show resolved Hide resolved
tests/hardhat/Fork/utils.ts Outdated Show resolved Hide resolved
tests/hardhat/Fork/utils.ts Outdated Show resolved Hide resolved
.env.example Outdated Show resolved Hide resolved
tests/hardhat/Fork/RewardsForkTest.ts Outdated Show resolved Hide resolved
tests/hardhat/Fork/RewardsForkTest.ts Outdated Show resolved Hide resolved
tests/hardhat/Fork/RiskFundSwap.ts Outdated Show resolved Hide resolved
tests/hardhat/Fork/RiskFundSwap.ts Outdated Show resolved Hide resolved
tests/hardhat/RiskFundSwap.ts Outdated Show resolved Hide resolved
tests/hardhat/RiskFundSwap.ts Outdated Show resolved Hide resolved
0xlucian
0xlucian previously approved these changes Dec 12, 2023
@Debugger022 Debugger022 requested a review from coreyar January 9, 2024 08:43
GitGuru7
GitGuru7 previously approved these changes Jan 10, 2024
@chechu chechu added this to the 020 milestone Feb 9, 2024
Copy link

Code Coverage

Package Line Rate Branch Rate Health
contracts 95% 78%
contracts.Gateway 98% 68%
contracts.Gateway.Interfaces 100% 100%
contracts.Lens 95% 71%
contracts.Lens.legacy 0% 0%
contracts.Pool 100% 92%
contracts.Rewards 96% 70%
contracts.Shortfall 100% 85%
contracts.legacy.RiskFund 0% 0%
contracts.lib 100% 89%
Summary 75% (1485 / 1968) 65% (491 / 754)

@Debugger022 Debugger022 merged commit e22dbc6 into develop Jul 26, 2024
4 checks passed
@chechu chechu mentioned this pull request Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants