Supply DAI on Spark Protocol
Free to download on every platform. Comes pre-installed on BotFone, BotPad and BotFlip — with extra free apps included.
About this app
WHAT IT DOES
This tool enables you to supply DAI on Spark Protocol, a lending protocol built on the Aave v3 codebase with a focus on stablecoin lending and borrowing. It reads your DAI balance on Ethereum Mainnet, the Spark Protocol pool contract details, and the current gas price to provide an accurate cost estimate before you commit. The tool then checks your allowance for the Spark pool, handles approval automatically if needed, and submits a supply transaction to lend your DAI and receive sDAI (interest-bearing tokens) in return.
Spark Protocol is a decentralized lending protocol that allows users to supply assets to liquidity pools and earn interest from borrowers. When you supply DAI, you receive sDAI tokens that represent your supplied position and automatically accrue interest over time. Spark Protocol is particularly focused on stablecoin lending and is integrated with the broader MakerDAO ecosystem, providing competitive interest rates for DAI suppliers.
HOW TO USE
Connect your wallet using the "connect" button. Ensure you are connected to Ethereum Mainnet (chain ID 1) — the tool will display your current chain ID, DAI balance, and any existing sDAI balance. The tool will also show the current supply APY for DAI on the Spark Protocol pool. Enter the amount of DAI you wish to supply in the input field. The tool will display the pool contract address, DAI address, and estimate the gas cost for the transaction.
Review the supply summary, then click "supply DAI on Spark" to execute the transaction. The tool will automatically approve the Spark pool to spend your DAI if needed, then submit the supply transaction through your wallet. After confirmation, you will receive sDAI tokens in your wallet representing your supplied position, which will earn interest automatically. The sDAI balance and APY will update in real-time through the tool's balance display.
TECHNICAL MECHANISM — SPARK PROTOCOL SUPPLY
The tool interacts with the Spark Protocol Pool contract, which implements the supply(address asset, uint256 amount, address onBehalfOf, uint16 referralCode) function, consistent with the Aave v3 interface. This function takes the asset address (DAI), the amount to supply, the address on whose behalf the supply is made (typically the user's own address), and a referral code (0 for direct users). Before calling supply, the tool checks the user's allowance for the Spark pool using the ERC-20 allowance() function. If the allowance is insufficient, the tool submits an approve() transaction to the DAI contract, granting the pool permission to spend the specified amount.
Once the supply transaction is confirmed, the Spark Protocol mints sDAI tokens to the user's address at a 1:1 ratio with the supplied DAI. These sDAI tokens are ERC-20 tokens that represent the user's claim on the underlying DAI plus accrued interest. The interest accrues continuously through the protocol's interest rate model, which is based on the utilization rate of the DAI reserve. The sDAI token's exchange rate with DAI increases over time. The tool uses the getReserveData() function to read the current liquidity rate (APY) and the getUserAccountData() function to read the user's sDAI balance. Spark Protocol's integration with MakerDAO provides unique features for DAI lending, including potential for enhanced yields through the Spark protocol's ecosystem.
WHAT IT CANNOT SEE
This tool cannot estimate exact gas costs without a live RPC call, and gas prices may change between quoting and execution. It cannot guarantee APY rates, which fluctuate based on market conditions, supply and demand dynamics, and protocol utilization. The tool cannot verify the pool contract address is correct beyond the pre-configured mapping, and if the mapping becomes outdated, the transaction could fail or be sent to the wrong contract. It cannot cancel a transaction once submitted, and if the transaction fails due to gas issues, approval errors, or contract issues, you may still pay gas fees. The tool cannot handle lending on non-Ethereum chains or support tokens other than DAI. It also cannot guarantee the safety of the supplied funds, as smart contract risks and protocol vulnerabilities exist in all DeFi applications.
PLEASE NOTE — ETHEREUM MAINNET ONLY
This tool works exclusively on Ethereum Mainnet (chain ID 1). You must be connected to Ethereum Mainnet to use this tool. The tool only supports supplying DAI — it does not support other assets. Always verify that the DAI address displayed matches the correct address for Ethereum Mainnet. sDAI tokens are interest-bearing but are subject to smart contract risk, market risk, and potential protocol insolvency. Interest rates are variable and can change based on market conditions. This tool provides a simple deposit interface; withdrawals are not supported and must be performed through Spark Protocol's official mechanisms. Spark Protocol is a lending protocol — always understand the risks before supplying assets.