Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ezynda3 committed Dec 31, 2024
1 parent b0a1fa2 commit 0c8da13
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/solidity/Facets/AcrossFacetV3.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ contract AcrossFacetV3Test is TestBaseFacet {
refundAddress: USER_REFUND,
receivingAssetId: ADDRESS_USDC_POL,
outputAmount: (defaultUSDCAmount * 9) / 10,
outputAmountPercent: 10000,
outputAmountPercent: 10000, // 100.00%
exclusiveRelayer: address(0),
quoteTimestamp: quoteTimestamp,
fillDeadline: uint32(quoteTimestamp + 1000),
Expand Down Expand Up @@ -142,7 +142,7 @@ contract AcrossFacetV3Test is TestBaseFacet {

// Set output amount percent to 85%
validAcrossData.outputAmountPercent = 8500; // 85.00%
validAcrossData.outputAmount = (bridgeData.minAmount * 8500) / 10000;
validAcrossData.outputAmount = 10000; // This will be ignored

// approval
dai.approve(_facetTestContractAddress, swapData[0].fromAmount);
Expand Down Expand Up @@ -215,7 +215,7 @@ contract AcrossFacetV3Test is TestBaseFacet {

// Set output amount percent to 93.75%
validAcrossData.outputAmountPercent = 9375; // 93.75%
validAcrossData.outputAmount = (bridgeData.minAmount * 9375) / 10000;
validAcrossData.outputAmount = 10000; // This will be ignored

// approval
usdc.approve(_facetTestContractAddress, amountIn);
Expand Down

0 comments on commit 0c8da13

Please sign in to comment.