GP - Use Case and Functionalities
Gas Pump (GP) is a Smart Contract from Tatum that helps you manage Dust and Gas fees in a custodial application.
Standard Custodial transfer
- You assign a standard blockchain address (EOA) to an End-user to act as a "Deposit address".
- End-user deposits on-chain assets (ERC-20 tokens) from outside your Exchange or Application to his "Deposit address".
- You have to calculate the fees to transfer out the assets from the "Deposit address".
- You send native assets from your "Master Exchange Address" to the "Deposit address" of the End-user.
- You send the End-user assets from the "Deposit address" to your "Master Exchange Address".
Observations
- Two transactions happened in this use case, where you had to pay gas fees for both.
- Dust is generated and lost in the deposit address of the End-user.
- If you have thousands or millions of addresses, this method creates an enormous amount of work and fees for you to pay.
Gas Pump Custodial transfer
- You select a blockchain address, you own the PrivateKey, to work as your "Master GP Address".
- This address will pay for all transfer fees from your "Slave GP Contract Addresses"
- You Precalculate a "Slave GP Contract Address".
- The address can be used to deposit assets only.
- To transfer out requires activating the address (Smart Contract).
- You assign said precalculated "Slave GP Contract Address" to an End-user to act as a "Deposit address"
- End-user deposits on-chain assets (ERC-20 tokens) from outside your Exchange or Application to his "Deposit address".
- You activate the "Slave GP Contract Address".
- You send the End-user assets to your Master Exchange Address
Observations
- You pay for the activation of the "Slave GP Contract Address".
- On-chain cost charged by the blockchain due to Smart Contract Activation.
- The transfer fees from the "Slave GP Contract Address" are paid by your "Master GP Address".
- You avoid Dust management.
- You may rotate and reassign an activated "Slave GP Contract Address", as needed, across your End-users.
Good to Know
- Gas Pump is only available on some EVM chains.
- You can review the smart contracts behind the Gas Pump implementation on our GitHub page:
- Smart contracts audited and certified by Certik:
- View the security assessment
- Tatum on the Certik website.
Gas Pump is a Smart Contract Chain dependant. An activated "Slave GP Contract Address" in for example the ETH chain won't work to transfer out assets from another chain.
Updated 6 months ago