alpha
Uncover the building blocks of Aave
TL;DR:
The bgd-labs' repository, static-a-token-v3, has undergone two major changes: the import path for SafeCast
has been shifted from the OpenZeppelin library to the Solidity-utils library, and the safeApprove
method in the IERC20
interface has been replaced with forceApprove
, indicating a more assertive token approval approach.
The pull requests for the repository: static-a-token-v3, owned by bgd-labs, primarily involve two significant changes.
Change in Import Path for SafeCast
The import path for SafeCast
has been updated. Previously, it was imported from 'openzeppelin-contracts/contracts/utils/math/SafeCast.sol'
. Now, it has been changed to 'solidity-utils/contracts/oz-common/SafeCast.sol'
. This change indicates a shift from the OpenZeppelin library to the Solidity-utils library for the SafeCast
contract.
Replacement of safeApprove
with forceApprove
The second major change is in the method used for the IERC20
interface on the _aTokenUnderlying
object. The safeApprove
method has been replaced with the forceApprove
method. However, the parameters for the method remain unchanged. This change suggests a more forceful approach to token approval, possibly to ensure the transaction's success.
These changes are expected to enhance the efficiency and reliability of the static-a-token-v3 repository.
Last updated 13 days ago
Last updated 04/12 00:17