Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
alistair-singh committed Jan 16, 2025
1 parent d8a9a58 commit abc1d95
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion contracts/src/Assets.sol
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ library Assets {
}
}

// @dev Transfer ERC20(Ethereum-native) tokens to Polkadot
// @dev Transfer Ether tokens to Polkadot
function _sendEther(
address sender,
ParaID destinationChain,
Expand Down
7 changes: 4 additions & 3 deletions contracts/src/Gateway.sol
Original file line number Diff line number Diff line change
Expand Up @@ -556,9 +556,9 @@ contract Gateway is IGateway, IInitializable, IUpgradable {

// The fee is already collected into the gateway contract
// Reimburse excess fee payment
uint256 extraPayment = (msg.value - totalEther);
if (extraPayment > _dustThreshold()) {
payable(msg.sender).safeNativeTransfer(extraPayment);
uint256 excessFee = (msg.value - totalEther);
if (excessFee > _dustThreshold()) {
payable(msg.sender).safeNativeTransfer(excessFee);
}

// Generate a unique ID for this message
Expand Down Expand Up @@ -701,6 +701,7 @@ contract Gateway is IGateway, IInitializable, IUpgradable {
assets.registerTokenFee = config.registerTokenFee;
assets.assetHubCreateAssetFee = config.assetHubCreateAssetFee;
assets.assetHubReserveTransferFee = config.assetHubReserveTransferFee;
// Register native Ether
TokenInfo storage nativeEther = assets.tokenRegistry[address(0)];
nativeEther.isRegistered = true;

Expand Down

0 comments on commit abc1d95

Please sign in to comment.