Skip to content

Commit

Permalink
refactor: removed unnecessary comments
Browse files Browse the repository at this point in the history
  • Loading branch information
GitGuru7 committed Dec 14, 2023
1 parent 0060366 commit b7f8aa1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion contracts/Bridge/BaseXVSProxyOFT.sol
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ abstract contract BaseXVSProxyOFT is Pausable, ExponentialNoError, BaseOFTV2 {
} else {
transferredInWindow += amountInUsd;
}
eligibleToSend = (whitelist[from_] ||
eligibleToSend = (isWhiteListedUser ||
((amountInUsd <= maxSingleTransactionLimit) &&
(transferredInWindow <= chainIdToMaxDailyLimit[dstChainId_])));
} else {
Expand Down
4 changes: 0 additions & 4 deletions test/proxyOFT.ts
Original file line number Diff line number Diff line change
Expand Up @@ -757,13 +757,9 @@ describe("Proxy OFTV2: ", function () {

const initialAmount = ethers.utils.parseEther("1", 18);
await localToken.connect(acc2).faucet(initialAmount);
// verify acc2 has tokens and acc3 has no tokens on remote chain
expect(await localToken.balanceOf(acc2.address)).to.be.equal(initialAmount);
expect(await remoteToken.balanceOf(acc3.address)).to.be.equal(0);
// acc2 sends tokens to acc3 on remote chain
// approve the proxy to swap your tokens
await localToken.connect(acc2).approve(localOFT.address, initialAmount);
// swaps token to remote chain
const acc3AddressBytes32 = ethers.utils.defaultAbiCoder.encode(["address"], [acc3.address]);
const nativeFee = (
await localOFT.estimateSendFee(remoteChainId, acc3AddressBytes32, initialAmount, false, defaultAdapterParams)
Expand Down

0 comments on commit b7f8aa1

Please sign in to comment.