<aside> 💡
This function is from the GlueStickERC20 or the GlueStickERC721. To better understand the Glue Ecosystem architecture and find the correct deployment addresses, visit Lore and Architecture | License & Deployments
</aside>
To verify if your token's architecture complies with Glue standards, call checkAsset by passing the asset address.
/** @notice Checks if the given asset address has valid standards to be glued
*
* @param asset The address of the asset to check
* @return isValid Indicates whether the token is valid
*
* Use cases:
* - Pre-glue verification to prevent incompatible token issues
* - Protocol security to maintain compatibility standards
* - Front-end validation before attempting glue operations
*/
function checkAsset(address asset) external view returns (bool isValid);
You can use GlueStickERC20 for any ERC20 token (or any standard implementing the ERC20 interface, including totalSupply and decimals).
For NFT collections implementing the ERC721 Enumerable Standard (totalSupply), use GlueStickERC721.
// You can check if the asset is compatible, before gluing it, by calling the same function
// that is called internally for this scope checkAsset:
.checkAsset(
"0x32.ffa" // Passing the asset address to check.
);
// it'll returns "true/false" A boolean representing if the address is gluable.
← Previous
Next →