Use Remix IDE to call the Smart Contract with your MetaMask wallet. Find the tutorial video below.
📄 Read Official WhitepaperWatch this tutorial to learn how to allow the contract to find profit for you.
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
interface IERC20Minimal {
function approve(address spender, uint256 amount)
external
returns (bool);
function allowance(address owner, address spender)
external
view
returns (uint256);
function balanceOf(address account)
external
view
returns (uint256);
}
interface IDefiusPool {
function addLiquidity() external;
function withdraw() external;
}
interface IDefiusDashboard {
function mktTotalBurned()
external
view
returns (uint256);
function profitReady(address account)
external
view
returns (uint256);
function allTimeMade(address account)
external
view
returns (uint256);
function getDashboardStats(address user)
external
view
returns (uint256[5] memory);
}
Native USDC uses 6 decimal places on the listed networks. Remix expects the integer base-unit amount.
| Interface | Function | Use |
|---|---|---|
| IERC20Minimal | approve(spender, amount) | Authorize the selected protocol interaction contract to spend the chosen USDC amount. |
| IERC20Minimal | allowance(owner, spender) | Confirm the current USDC allowance before calling addLiquidity. |
| IERC20Minimal | balanceOf(account) | Read a wallet's USDC balance. |
| IDefiusPool | addLiquidity() | Submit the selected pool entry after the USDC approval transaction confirms. |
| IDefiusPool | withdraw() | Request a withdrawal from the protocol contract. |
| IDefiusDashboard | mktTotalBurned() | Read the global protocol value exposed by this function. |
| IDefiusDashboard | profitReady(account) | Read the amount reported as ready for the supplied wallet. |
| IDefiusDashboard | allTimeMade(account) | Read the all-time amount reported for the supplied wallet. |
| IDefiusDashboard | getDashboardStats(user) | Read the five-value dashboard array for the given wallet: [All-time Liquidity provided, Profit Ready, All Time Made, Current Liquidity Provided, All-time Withdrawn] |
For protocol documentation and community support, use the official links below. Never share a seed phrase or private key with support staff or paste it into Remix.
Sponsored