Skip to content

Commit

Permalink
Use reworked domain receiving logic
Browse files Browse the repository at this point in the history
  • Loading branch information
area committed Dec 16, 2024
1 parent 4824a04 commit 07c4756
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion contracts/bridging/ProxyColony.sol
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,16 @@ contract ProxyColony is DSAuth, Multicall, CallWithGuards, BasicMetaTransaction
? address(domainTokenReceiverAddress).balance
: ERC20Extended(_token).balanceOf(address(domainTokenReceiverAddress));

DomainTokenReceiver(domainTokenReceiverAddress).transferToColony(_token);
if (_token == address(0x0)) {
DomainTokenReceiver(domainTokenReceiverAddress).transferNativeToColony();
} else {
DomainTokenReceiver(domainTokenReceiverAddress).approveTokenToColony(_token);
// slither-disable-next-line arbitrary-send-erc20
require(
ERC20Extended(_token).transferFrom(domainTokenReceiverAddress, address(this), balance),
"colony-funding-transfer-failed"
);
}

bytes memory payload = abi.encodeWithSignature(
"recordClaimedFundsFromBridge(uint256,address,uint256,uint256)",
Expand Down

0 comments on commit 07c4756

Please sign in to comment.