Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion remappings.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@openzeppelin/contracts=lib/openzeppelin-contracts/contracts
@openzeppelin/contracts-upgradeable=lib/openzeppelin-contracts-upgradeable/contracts
@openzeppelin/contracts=lib/openzeppelin-contracts/contracts/
@iconfoundation/xcall-solidity-library=library/btp2
@balanced/contracts=src
4 changes: 2 additions & 2 deletions src/asset-manager/AssetManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,8 @@ contract AssetManager is
require(amount > 0, "Amount less than minimum amount");
verifyWithdraw(token, amount);
if (token == NATIVE_ADDRESS) {
bool sent = payable(to).send(amount);
require(sent, "Failed to send tokens");
(bool sent, ) = payable(to).call{value: amount}("");
require(sent, "Failed to send native tokens");
} else {
IERC20(token).safeTransfer(to, amount);
}
Expand Down
Loading