<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:
noNativeBurn
: if true, the Sticky Asset is not naturally burnable.nonStandard
: If true, the Sticky Asset respects the ERC20 standard. If false, the address(0) supply must be included in the total supply calculation. [Only on Glue for ERC20s]stickySupplyGlued
: If true, the Sticky Asset amount removed from the supply is stored in the Glue Address. This occurs because the contract is not burnable and avoids transfers to the DeAd Address.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);
noNativeBurn
setting indicate?nonStandard
setting?stickySupplyGlued
setting mean?← Previous
Find the Sticky Asset Address of a Glue
Next →