Skip to content

Commit

Permalink
- fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
iulianpascalau committed Dec 11, 2024
1 parent f529cf7 commit ed9b494
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions integrationTests/relayers/slowTests/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -672,6 +672,9 @@ func GenerateUnlistedTokenFromEth() framework.TestTokenParams {
MvxTotalChainSpecificBurn: big.NewInt(0),
MvxSafeMintValue: big.NewInt(0),
MvxSafeBurnValue: big.NewInt(0),

EthSafeBurnValue: big.NewInt(0),
EthSafeMintValue: big.NewInt(0),
},
SpecialChecks: &framework.SpecialBalanceChecks{
WrapperDeltaLiquidityCheck: big.NewInt(0),
Expand Down
3 changes: 3 additions & 0 deletions integrationTests/relayers/slowTests/edgeCases_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ func TestRelayerShouldExecuteSimultaneousSwapsAndNotCatchErrors(t *testing.T) {
MvxTotalChainSpecificBurn: big.NewInt(200 - 50),
MvxSafeMintValue: big.NewInt(5000 + 5000),
MvxSafeBurnValue: big.NewInt(200 - 50),

EthSafeMintValue: big.NewInt(0),
EthSafeBurnValue: big.NewInt(0),
}
usdcToken.SpecialChecks.WrapperDeltaLiquidityCheck = big.NewInt(5000 + 5000 - 200)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ func TestRelayersShouldExecuteTransfersWithInitSupply(t *testing.T) {
memeInitialValue := big.NewInt(200000)
memeToken := GenerateTestMEMEToken()
memeToken.InitialSupplyValue = memeInitialValue.String()
memeToken.MintBurnChecks.EthSafeMintValue.Add(memeToken.MintBurnChecks.EthSafeMintValue, memeInitialValue)

_ = testRelayersWithChainSimulatorAndTokens(
t,
Expand All @@ -166,11 +167,13 @@ func TestRelayersShouldExecuteTransfersWithInitSupplyMintBurn(t *testing.T) {
eurocToken := GenerateTestEUROCToken()
eurocToken.InitialSupplyValue = eurocInitialValue.String()
eurocToken.MintBurnChecks.MvxSafeMintValue.Add(eurocToken.MintBurnChecks.MvxSafeMintValue, eurocInitialValue)
eurocToken.MintBurnChecks.EthSafeBurnValue.Add(eurocToken.MintBurnChecks.EthSafeBurnValue, eurocInitialValue)

mexInitialValue := big.NewInt(300000)
mexToken := GenerateTestMEXToken()
mexToken.InitialSupplyValue = mexInitialValue.String()
mexToken.MintBurnChecks.MvxSafeBurnValue.Add(mexToken.MintBurnChecks.MvxSafeBurnValue, mexInitialValue)
mexToken.MintBurnChecks.EthSafeMintValue.Add(mexToken.MintBurnChecks.EthSafeMintValue, mexInitialValue)

_ = testRelayersWithChainSimulatorAndTokens(
t,
Expand Down

0 comments on commit ed9b494

Please sign in to comment.