Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hackfisher opened this issue Mar 29, 2024 · 0 comments

Comments

@hackfisher
Copy link
Contributor

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);
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant