Verified contractPartialBUSL-1.1
DexFiVaultProfitClaimer
Address0x7feceacf7f620232300eb9df44fd9ee64e6a38be
- Balance
0 ETH
- Transactions
47
- Compiler
solc 0.8.21
- Same code
Only this contract
Details
- Compiler
- solc 0.8.21+commit.d9974bed
- Language
- solidity
- Optimization
- Yes, 10 runs
- EVM version
- shanghai
- Via IR
- yes
- License
- BUSL-1.1
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 24,336,039
- Creation transaction
- 0x54359f7cf1…2ade718c7b
8 files
- contracts/core/DexFiVaultProfitClaimer.solmain1.73 KB
- @openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol2.75 KB
- @openzeppelin/contracts/token/ERC20/IERC20.sol2.74 KB
- contracts/core/interfaces/IDexFiFarm.sol2.66 KB
- contracts/core/interfaces/IDexFiProfit.sol1.01 KB
- contracts/core/interfaces/IDexFiVault.sol5.08 KB
- contracts/core/interfaces/IDexFiVaultFactory.sol7.91 KB
- contracts/core/interfaces/IDexFiVaultProfitStorage.sol2.27 KB
contracts/core/DexFiVaultProfitClaimer.sol
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.21;
import "./interfaces/IDexFiVault.sol";
import "./interfaces/IDexFiVaultProfitStorage.sol";
/**
* @title DexFiVaultProfitClaimer
* @dev Contract for claiming profits from multiple DexFiVaultProfitStorages or DexFiVaults.
*/
contract DexFiVaultProfitClaimer {
/**
* @dev Claim available profits from multiple DexFiVaultProfitStorages.
* @param profitStorages Array of DexFiVaultProfitStorage instances.
* @return true if the claims are successful.
*/
function claimByProfitStorages(IDexFiVaultProfitStorage[] memory profitStorages) external returns (bool) {
for (uint256 i = 0; i < profitStorages.length; i++) {
IDexFiVaultProfitStorage profitStorage = profitStorages[i];
uint256 userAvailableToClaim = profitStorage.availableToClaim(msg.sender);
if (userAvailableToClaim > 0) profitStorage.claim(userAvailableToClaim, msg.sender);
}
return true;
}
/**
* @dev Claim available profits from multiple DexFiVaults using their associated profit storages.
* @param vaults Array of DexFiVault instances.
* @return true if the claims are successful.
*/
function claimByVaults(IDexFiVault[] memory vaults) external returns (bool) {
for (uint256 i = 0; i < vaults.length; i++) {
IDexFiVault vault = vaults[i];
IDexFiVaultProfitStorage profitStorage = IDexFiVaultProfitStorage(vault.profitStorage());
uint256 userAvailableToClaim = profitStorage.availableToClaim(msg.sender);
if (userAvailableToClaim > 0) profitStorage.claim(userAvailableToClaim, msg.sender);
}
return true;
}
}
@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20Upgradeable {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `from` to `to` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 amount) external returns (bool);
}
@openzeppelin/contracts/token/ERC20/IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `from` to `to` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 amount) external returns (bool);
}
contracts/core/interfaces/IDexFiFarm.sol
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.21;
interface IDexFiFarm {
enum TimeUnit {
BLOCK,
SECOND
}
function MIN_AMOUNT_OUT() external pure returns (uint256);
function vault() external view returns (address);
function native() external view returns (address);
function stakingToken() external view returns (address);
function rewardTokens(uint256 index) external view returns (address);
function rewardTokensCount() external view returns (uint256);
function farm() external view returns (address);
function liquidity(address user) external view returns (uint256);
function stakingTokenType() external view returns (string memory);
function rewardTokenType(address token) external view returns (string memory);
function dexVersion() external view returns (uint256);
function stakingTokenLiquidity(uint256 amount) external returns (uint256);
function stakingTokenApproveData(address to, uint256 amount) external view returns (bytes memory data);
function stakingTokenTransferFromData(
address from,
address to,
uint256 amount
) external view returns (bytes memory data);
function timeUnit() external pure returns (TimeUnit);
function sharePerTimeUnit(address rewardToken) external view returns (uint256);
function pendingRewards(address token, address user) external view returns (uint256);
function decodeAndValidateReinitialize(bytes memory params) external view returns (bool);
function initializationVersion() external view returns (uint8);
error CallerIsNotVault(address caller, address vault);
function getAmountOutStakingTokenToNative(uint256 amountIn) external returns (uint256 nativeAmount);
function getAmountOutRewardTokenToNative(address token, uint256 amountIn) external returns (uint256 nativeAmount);
function initialize(bytes memory params) external returns (bool);
function reinitialize(bytes memory params) external returns (bool);
function deposit(uint256 nativeAmount) external returns (uint256 stakingAmount);
function depositConvertless(
uint256 stakingAmount,
uint256 depositLiquidityAmount,
uint256 feeLiquidityAmount,
address feeRecipient,
address residualsRecipient
) external;
function harvest() external returns (uint256 amount);
function withdraw(uint256 stakingAmount) external returns (uint256 nativeAmount);
function withdrawConvertless(uint256 stakingAmount, address recipient) external;
function emergencyWithdraw(uint256 stakingAmount, address recipient) external;
}
contracts/core/interfaces/IDexFiProfit.sol
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.21;
interface IDexFiProfit {
function MIN_AMOUNT_OUT() external pure returns (uint256);
function initializationVersion() external view returns (uint8);
function factory() external view returns (address);
function native() external view returns (address);
function underlying() external view returns (address);
function underlyingType() external view returns (string memory);
function decodeAndValidateReinitialize(bytes memory params) external view returns (bool);
error ReinitalizeCallerNotFactory(address caller, address factory);
function getAmountOutUnderlyingToNative(uint256 underlyingAmount) external returns (uint256 nativeAmount);
function initialize(bytes memory params) external returns (bool);
function reinitialize(bytes memory params) external returns (bool);
function swapNativeToProfit(uint256 nativeAmount) external returns (uint256 profitAmount, uint256 usedNativeAmount);
}
contracts/core/interfaces/IDexFiVault.sol
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.21;
import "@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol";
import "./IDexFiVaultFactory.sol";
import "./IDexFiVaultProfitStorage.sol";
import "./IDexFiFarm.sol";
interface IDexFiVault {
struct Farm {
address beacon;
uint256 percent;
bytes data;
}
struct PublishData {
bool published;
address publisher;
}
function divider() external view returns (uint256);
function lastHarvestTimestamp() external view returns (uint256);
function factory() external view returns (IDexFiVaultFactory);
function harvesterDebt() external view returns (uint256);
function profit() external view returns (uint256);
function profitStorage() external view returns (address);
function native() external view returns (IERC20Upgradeable);
function farmConnector(address) external view returns (IDexFiFarm);
function publishData() external view returns (PublishData memory);
function farms(uint256 index) external view returns (Farm memory);
function farmsCount() external view returns (uint256);
function convertlessDepositRatio() external view returns (uint256[] memory output);
event Published(address publisher);
event ProfitUpdated(uint256 profit);
event HarvesterDebtIncreased(uint256 amount, uint256 remainingDebtAmount);
event Deposited(
address indexed user,
address indexed to,
uint256 nativeAmount,
uint256 syntheticAmount,
uint256 feeAmount
);
event ConvertlessDeposited(
address indexed user,
uint256 syntheticAmount,
uint256[] stakingAmounts,
uint256[] depositLiquidityAmounts,
uint256[] feeLiquidityAmounts
);
event Harvested(
address indexed user,
uint256 reinvestAmount,
uint256 feeAmount,
uint256 profitAmount,
uint256 paidDebtAmount,
uint256 remainingDebtAmount
);
event Withdrawn(
address indexed user,
address indexed from,
uint256 syntheticAmount,
uint256 nativeAmount,
uint256 feeAmount
);
event EmergencyWithdrawn(address indexed user, uint256 syntheticAmount, uint256[] outputAmounts);
event ConvertlessWithdrawn(
address indexed user,
uint256 syntheticAmount,
uint256[] outputAmounts,
uint256[] feeAmounts,
uint256 outputNativeAmount,
uint256 feeNativeAmount
);
event FarmsUpdated(Farm[] farms);
error ActualizeFarmStatusReinitializationFailed(address farm, bytes data);
error IncreaseHarvesterDebtCallerNotHarvester(address caller, address harvester);
error DepositAmountZero();
error DepositUsersCountOverflow();
error DepositMintAmountUnderflow(uint256 mintAmount, uint256 minMintAmount);
error DepositConvertlessSupplyZero();
error DepositConvertlessAmountsLengthDiffers(uint256 amountsLength, uint256 target);
error DepositConvertlessMintAmountUnderflow(uint256 mintAmount, uint256 minMintAmount);
error WithdrawAmountZero();
error WithdrawNativeAmountUnderflow(uint256 nativeAmount, uint256 minNativeAmount);
error EmergencyWithdrawUserBalanceZero();
error WithdrawConvertlessAmountZero();
error UpdateProfitUnderflow(uint256 profit, uint256 min);
error UpdateProfitOverflow(uint256 profit, uint256 max);
error ProtocolPaused();
error ContractNotInitialized();
error RestakingAmountUnderflow(uint256 restakingAmount, uint256 minRestakingAmount);
error UpdateFarmsLengthZero();
error UpdateFarmsInvalidPercentsSum(uint256 percentSum, uint256 targetSum);
function increaseHarvesterDebt(uint256 amount) external returns (bool);
function initialize(
string memory name_,
string memory symbol_,
address owner_,
uint256 profit_,
address profitToken_,
Farm[] memory farms_
) external returns (bool);
function deposit(uint256 amount, address to, uint256 minMintAmount) external returns (uint256 mintAmount);
function harvest(
uint256 minRestakingAmount_
)
external
returns (
uint256 reinvestAmount,
uint256 harvestFeeAmount,
uint256 profitAmount,
uint256 paidDebtAmount,
uint256 remainingDebtAmount,
uint256 restakingAmount
);
function updateFarms(
Farm[] memory farms_,
uint256 minRestakingAmount_
) external returns (uint256 restakingAmount, uint256 liquidityInNative);
function withdraw(uint256 amount, address from, uint256 minNativeAmount) external returns (uint256 nativeAmount);
function emergencyWithdraw() external returns (uint256[] memory outputAmounts);
function publish(uint256 minRestakingAmount_) external returns (uint256 restakingAmount);
function updateProfit(uint256 profit_) external returns (bool);
function updateProfitToken(address profitToken_) external returns (bool);
}
contracts/core/interfaces/IDexFiVaultFactory.sol
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.21;
import "./IDexFiVault.sol";
import "./IDexFiVaultProfitStorage.sol";
import "./IDexFiProfit.sol";
import "./IDexFiFarm.sol";
interface IDexFiVaultFactory {
struct FeeConfig {
uint256 depositFee;
uint256 harvestFee;
uint256 withdrawFee;
uint256 migrateFee;
}
struct ProfitConfig {
uint256 minProfit;
uint256 maxProfit;
address profitStorageImplementation;
uint256 vaultOwnerProfit;
}
struct VaultConfig {
address vaultImplementation;
uint256 maxDepositorsCount;
uint256 initialPriceNativeAmount;
uint256 minSyntheticTransferAmount;
uint256 minNativeReinvestAmount;
}
struct IntegrationConfig {
address operator;
address keeper;
address harvester;
address migrator;
address treasury;
address profitClaimer;
address zapper;
}
struct InitializableConfig {
address source;
bytes defaultInitializeData;
}
struct Beaconed {
address beacon;
address source;
bytes defaultInitializeData;
}
function DIVIDER() external view returns (uint256);
function MAX_DEPOSIT_FEE() external view returns (uint256);
function MAX_HARVEST_FEE() external view returns (uint256);
function MAX_WITHDRAW_FEE() external view returns (uint256);
function MAX_MIGRATE_FEE() external view returns (uint256);
function MIN_VAULT_MANAGEMENT_AMOUNT() external view returns (uint256);
function MAX_VAULT_OWNER_PROFIT() external view returns (uint256);
function MIN_DEPOSITORS_COUNT() external view returns (uint256);
function MAX_DEPOSITORS_COUNT() external view returns (uint256);
function native() external view returns (address);
function defaultFarmsInitializeData(address) external view returns (bytes memory);
function defaultFarmsInitializeDataTimestamp(address) external view returns (uint256);
function profitTokenConnector(address) external view returns (IDexFiProfit);
function farmCalculationConnector(address) external view returns (IDexFiFarm);
function feeConfig() external view returns (FeeConfig memory);
function profitConfig() external view returns (ProfitConfig memory);
function vaultConfig() external view returns (VaultConfig memory);
function integrationConfig() external view returns (IntegrationConfig memory);
function farmsWhitelist(uint256 index) external view returns (address);
function farmsWhitelistCount() external view returns (uint256);
function farmsWhitelistContains(address farm) external view returns (bool);
function profitTokensWhitelist(uint256 index) external view returns (address);
function profitTokensWhitelistCount() external view returns (uint256);
function profitTokensWhitelistContains(address profitToken) external view returns (bool);
function vaults(uint256 index) external view returns (address);
function vaultsCount() external view returns (uint256);
function vaultsContains(address vault) external view returns (bool);
function harvesterBlacklist(uint256 index) external view returns (address);
function harvesterBlacklistCount() external view returns (uint256);
function harvesterBlacklistContains(address vault) external view returns (bool);
error NativeZero();
error CallerNotOperator(address caller, address operator);
error CreateVaultProfitTokenUnsupported(address profitToken);
error CreateVaultInitializationFailed();
error UpdateFarmsWhitelistBeaconNotWhitelisted(address beacon);
error UpdateFarmsWhitelistBeaconSourceZero(address beacon);
error UpdateFarmsWhitelistReinitializationFailed(Beaconed data);
error UpdateProfitTokensWhitelistBeaconNotWhitelisted(address beacon);
error UpdateProfitTokensWhitelistBeaconSourceZero(address beacon);
error UpdateProfitTokensWhitelistReinitializationFailed(Beaconed data);
error UpdateFeeConfigDepositFeeOverflow(uint256 depositFee, uint256 limit);
error UpdateFeeConfigHarvestFeeOverflow(uint256 harvestFee, uint256 limit);
error UpdateFeeConfigWithdrawFeeOverflow(uint256 withdrawFee, uint256 limit);
error UpdateFeeConfigMigrateFeeOverflow(uint256 migrateFee, uint256 limit);
error UpdateVaultConfigVaultImplementationZero();
error UpdateVaultConfigInvalidMaxDepositors(uint256 maxDepositors, uint256 min, uint256 max);
error UpdateVaultConfigVaultInitialPriceNativeAmountUnderflow(uint256 initialPriceNativeAmount, uint256 min);
error UpdateVaultConfigMinSyntheticTransferAmountUnderflow(uint256 minSyntheticTransferAmount, uint256 min);
error UpdateVaultConfigMinReinvestAmountZero();
error UpdateProfitConfigMaxProfitOverflow(uint256 maxProfit, uint256 max);
error UpdateProfitConfigMinProfitOverflow(uint256 minProfit, uint256 maxProfit);
error UpdateProfitConfigProfitStorageImplementationZero();
error UpdateProfitConfigVaultOwnerProfitOverflow(uint256 vaultOwnerProfit, uint256 max);
error UpdateIntegrationConfigKeeperZero();
error UpdateIntegrationConfigHarvesterZero();
error UpdateIntegrationConfigMigratorZero();
error UpdateIntegrationConfigTreasuryZero();
error UpdateIntegrationConfigProfitClaimerZero();
error UpdateIntegrationConfigZapperZero();
error ToggleVaultAutoHarvestCallerNotVaultOwner(address caller, address vault, address owner);
error AddProfitTokensWhitelistProfitTokenZero();
error AddProfitTokensWhitelistInitializationFailed(Beaconed data);
error AddFarmsWhitelistFarmZero();
error AddFarmsWhitelistInitializationFailed(Beaconed data);
event VaultCreated(
address indexed owner,
address vault,
uint256 profit,
address profitToken,
IDexFiVault.Farm[] farms
);
event FeeConfigUpdated(FeeConfig config);
event VaultConfigUpdated(VaultConfig config);
event ProfitConfigUpdated(ProfitConfig config);
event IntegrationConfigUpdated(IntegrationConfig config);
event VaultAutoHarvestToggled(address vault, bool blacklisted);
event ProfitTokensWhitelistAdded(Beaconed[] profitTokens);
event ProfitTokensWhitelistUpdated(Beaconed[] profitTokens);
event ProfitTokensWhitelistRemoved(address[] profitTokens);
event FarmsWhitelistAdded(Beaconed[] farms);
event FarmsWhitelistUpdated(Beaconed[] farms);
event FarmsWhitelistRemoved(address[] farms);
function createVault(
string memory name_,
string memory symbol_,
uint256 profit_,
address profitToken_,
IDexFiVault.Farm[] memory farms_
) external returns (address vault);
function pause() external returns (bool);
function unpause() external returns (bool);
function addFarmsWhitelist(InitializableConfig[] memory farms_) external returns (Beaconed[] memory output);
function updateFarmsWhitelist(Beaconed[] memory farms_) external returns (bool);
function removeFarmsWhitelist(address[] memory beacons_) external returns (bool);
function addProfitTokensWhitelist(
InitializableConfig[] memory profitTokens_
) external returns (Beaconed[] memory output);
function updateProfitTokensWhitelist(Beaconed[] memory profitTokens_) external returns (bool);
function removeProfitTokensWhitelist(address[] memory beacons_) external returns (bool);
function updateFeeConfig(FeeConfig memory config) external returns (bool);
function updateVaultConfig(VaultConfig memory config) external returns (bool);
function updateProfitConfig(ProfitConfig memory config) external returns (bool);
function updateIntegrationConfig(IntegrationConfig memory config) external returns (bool);
function toggleVaultAutoHarvest(address vault) external returns (bool);
}
contracts/core/interfaces/IDexFiVaultProfitStorage.sol
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.21;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "./IDexFiVaultFactory.sol";
import "./IDexFiVault.sol";
import "./IDexFiProfit.sol";
interface IDexFiVaultProfitStorage {
struct UserSyntheticAmount {
address user;
uint256 amount;
}
struct UserSharesInfo {
uint256 accShares;
uint256 lastRewardBlock;
uint256 lastSyntheticBalance;
}
function divider() external view returns (uint256);
function factory() external view returns (IDexFiVaultFactory);
function vault() external view returns (address);
function profitToken() external view returns (address);
function profitTokenConnector() external view returns (IDexFiProfit);
function usersSharesInfo(address user) external view returns (UserSharesInfo memory);
function availableToClaim(address) external view returns (uint256);
function fund() external view returns (uint256);
function native() external view returns (IERC20);
function users(uint256 index) external view returns (address);
function usersCount() external view returns (uint256);
function usersContains(address user) external view returns (bool);
event ProfitFundsAdded(uint256 amount);
event ProfitTokenUpdated(address profitToken);
event Claimed(address indexed user, address indexed token, uint256 amount);
event UserAdded(address indexed user);
event UserRemoved(address indexed user);
error CallerNotVault(address caller, address vault);
error AddProfitFundsAmountZero();
error UpdateProfitTokenVaultPublished();
error ClaimAmountOverflow(uint256 amount, uint256 max);
error UpdateProfitTokenUnsupported(address token);
function initialize(IDexFiVaultFactory factory_, address profitToken_) external returns (bool);
function updateUsersSharesBalance(UserSyntheticAmount[] memory usersSyntheticAmount) external returns (bool);
function allocate() external returns (bool);
function addProfitFunds(uint256 amount) external returns (bool);
function claim(uint256 amount, address from) external returns (bool);
function updateProfitToken(address profitToken_) external returns (bool);
}
Compiler settingsShow
{
"viaIR": true,
"metadata": {
"useLiteralContent": true
},
"libraries": {},
"optimizer": {
"runs": 10,
"enabled": true
},
"evmVersion": "shanghai"
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.