Skip to content

Change the auth of rescueFunds to the issuer's xAccount/Recovery account #68

@hackfisher

Description

@hackfisher

function rescueFunds(
address _token,
address _recipient,
uint256 _amount,
bytes[] calldata _signatures
) external {
verifyGuardSignatures(msg.sig, abi.encode(_token, _recipient, _amount), _signatures);
if (_token == address(0)) {
payable(_recipient).transfer(_amount);
} else {
IERC20(_token).transfer(_recipient, _amount);
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions