Boost the Pool by depositing your $sDYSN
Executing a Boost
Boost within Gauge Contract
// Gauge.sol
function deposit(
uint amount,
address to) external;Set Up your Contract
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.17;
interface IERC20 {
function approve(address spender, uint value) external returns (bool);
}
interface IGauge {
function deposit(uint amount, address to) external;
}
contract MyBoostTest {
// The DYSON-USDC Gauge contract on Polygon zkEVM.
address public constant gauge = 0x7bC034759Cc6582926773b1094A7bEf406c2376D;
// The sDYSON contract on Polygon zkEVM.
address public constant sDYSON = 0x8813B3EEB279A43Ac89e502e6fbe0ec89170c088;
uint amount = 100e18; // 100 $sDYSN
address to = address(this);
function boost() external {
IERC20(sDYSON).approve(gauge, amount);
IGauge(gauge).deposit(amount, to);
}
}Last updated