<aside> 💡

To use this function, you must use GlueERC20 or GlueERC721 contract of a specific Sticky Token. To better understand the Glue Ecosystem architecture and find the correct deployment addresses, visit visit Lore and Architecture | License & Deployments

</aside>

After the initial interaction with the unglue function, the Glue contract stores boolean values to learn from the Sticky Token contract and optimize future actions:

How to read Self-Learning Settings

You can call the function getSelfLearning to get three boolean representing noNativeBurn, nonStandard and stickySupplyGlued (ERC20 Glues)

/** @notice Retrieves if the Sticky Asset is natively not burnable, if it follow the ERC20 standard and 
* if the sticky token is permanently stored in the contract.
* @dev This function is used to get if the Sticky Asset is natively not burnable, 
* if it follow the ERC20 standard and if the sticky token is permanently stored in the contract.
*
* @return noNativeBurn A boolean representing if the sticky asset is natively not burnable.
* @return nonStandard A boolean representing if the sticky asset is standard and address(0) is not counted in the total supply.
* @return stickySupplyGlued A boolean representing if the sticky token is permanently stored in the contract.
*
* Use cases:
* - Knowing if the Sticky Asset is natively not burnable, follow the ERC20 standard if the sticky token is permanently stored in the contract.
*/
function getSelfLearning() external view returns (bool noNativeBurn, bool nonStandard, bool stickySupplyGlued);

You can call the function getSelfLearning to get two boolean representing noNativeBurn and stickySupplyGlued (ERC721 Glues)

/** @notice Retrieves if the Sticky Asset is natively not burnable and 
* if the sticky token is permanently stored in the contract.
* @dev This function is used to get if the Sticky Asset is natively not burnable, 
* and if the sticky token is permanently stored in the contract.
*
* @return noNativeBurn A boolean representing if the sticky asset is natively not burnable.
* @return stickySupplyGlued A boolean representing if the sticky token is permanently stored in the contract.
*
* Use cases:
* - Knowing if the Sticky Asset is natively not burnable and if the sticky token is permanently stored in the contract.
*/
function getSelfLearning() external view returns (bool noNativeBurn, bool stickySupplyGlued);

Frequently Asked Questions (FAQ)


← Previous

Find the Sticky Asset Address of a Glue

Next →

Get the Adjusted Total Supply