<aside> 💡

To send collateral to the Glue, 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>

To send collateral to a Glue, you don't require a specific contract function, you can directly transfer ERC20s and ETH.

How to find the Glue Address for a given token?

You can call isStickyAsset or getGlueAddress (more info: Find the Glue Address of a Token/NFT) on the appropriate contract for your token type: GlueStickERC20 for ERC20 tokens or GlueStickERC721 for ERC721 Enumerable tokens.

<aside> ⚠️

It's important to note that a Glue can only hold ERC20 tokens and ETH. Any transaction to the Glue involving NFTs or exotic asset standards that don't comply with ERC20 can result in irreversible loss of funds.

</aside>

Usage Examples:

// You can send collateral to a Glue by usign regular ETH or ERC20 tranfers:

// ETH example
.sendTransaction({
	to: "glueAddress",  // The Glue Address
	value: "1000000000000000000" // 1 ETH (18 Decimals)
});

// ERC20 example
.transfer(
	"glueAddress", // The Glue Address
	"1000000000000000000" // 1 ERC20 (18 Decimals)
);

-------------

// You can also check the Glue address for a given Asset:

.isStickyAsset(
	"0x32.ffa" // Passing the asset address to check.
);

// If sticky, it'll returns bolean: "true" and "0x90.7fa" The Glue Address.
// If not sticky, it'll returns bolean: "false" and "0x00.000" address(0).

.getGlueAddress(
	"0x32.ffa" // Passing the asset address to check.
);

// If sticky, it'll returns "0x90.7fa" The Glue Address.
// If not sticky, it'll returns "0x00.000" address(0).

Frequently Asked Questions (FAQ)


← Previous

Apply The Glue

Next →

Unglue Collateral