We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
CurrencySettler
SafeERC20
The CurrencySettler is used to create custom hooks, but it's not working with tokens like USDT.
Update CurrencySettler to use safeTransfer and safeTransferFrom instead of transfer and transferFrom.
safeTransfer
safeTransferFrom
transfer
transferFrom
} else { manager.sync(currency); if (payer != address(this)) { IERC20(Currency.unwrap(currency)).safeTransferFrom(payer, address(manager), amount); } else { IERC20(Currency.unwrap(currency)).safeTransfer(address(manager), amount); } manager.settle(); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Motivation
The
CurrencySettler
is used to create custom hooks, but it's not working with tokens like USDT.Details
Update
CurrencySettler
to usesafeTransfer
andsafeTransferFrom
instead oftransfer
andtransferFrom
.The text was updated successfully, but these errors were encountered: