LiquityDCAStrategy

Verified contract

Active on Ethereum with 217 txns
Deployed by via 0xd1c33992 at 16664863
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 49 additional slots
-
variable spans 49 additional slots
-
variable spans 49 additional slots
-
variable spans 49 additional slots
-
variable spans 48 additional slots
ERC-20
Value $0
0xa233b1e04d22bbc163e6c5678be97b3c7b079eb9916163059e0e0daaec68c77c
0x1f0f981547aa83619b08ecb3a1d85f055c88ee0ce72d93e43eefc42f07c00e76
0x8b73b07b23a9d3aab6c6c5e47a5a3c794951c8a68b1c0711643a62c598930379
0x80e603408026ee854da5a2448b57426488bb520ea5059d1ce8de62266a76faeb
0xcd2ffd0772d6e34322dc11f0cb5fb51b14cb781ed023d811cb2f97bdcce167de
0x45e598347edef29f3bdaa34fee79469b42301433c6ff34130ec4f79c27a46adf
0x490675c5d078c2475e91b0fd803a51ef30de387db482dacb10123d0c7b9b92cc
0x2df60976539c3c10c65c7baf1ce6bedddf5f9e13b1b21dccf0f365db6ac3ad71
0x5f5eaaeb7b97d425491005b6005f7d91515317b77240ba4a12c33ea22e02cdc3
0xce0e10a3f7618143e7a3dd9156110bbf1561e1be5625dac28a3dc8e3368ed13f

Functions
Getter at block 21193460
CURVE_ROUTER(view returns (address)
0x81c46feca27b31f3adc2b91ee4be9717d1cd3dd7
DEFAULT_ADMIN_ROLE(view returns (bytes32)
0x0000000000000000000000000000000000000000000000000000000000000000
KEEPER_ROLE(view returns (bytes32)
0xfc8737ab85eb45125971625a9ebdb75cc78e01d5c1fa80c4c6e5203f47bc4fab
LUSD_CURVE_POOL(view returns (address)
0xed279fdd11ca84beef15af5d39bb4d4bee23f0ca
MANAGER_ROLE(view returns (bytes32)
0x241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b08
SETTINGS_ROLE(view returns (bytes32)
0xfaf9b26485088dee58863e57c46603d6cdcbadc7475ac6d8910fab0ecf603095
USDT(view returns (address)
0xdac17f958d2ee523a2206206994597c13d831ec7
WETH(view returns (address)
0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
WETH_CURVE_POOL(view returns (address)
0xd51a44d3fae010294c616388b506acda1bfaae46
curveExchange(view returns (address)
0x81c46feca27b31f3adc2b91ee4be9717d1cd3dd7
hasAssets(view returns (bool)
false
investedAssets(view returns (uint256)
0
isSync(pure returns (bool)
true
lqty(view returns (address)
0x6dea81c8171d0ba574754ef6f8b412f2ed88c54d
minProtectedAssetsPct(view returns (uint16)
10000
proxiableUUID(view returns (bytes32)
0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc
stabilityPool(view returns (address)
0x66017d22b0f8556afdd19fc67041899eb65a21bb
underlying(view returns (address)
0x5f98805a4e8be255a32880fdec7f6728c6568ba0
vault(view returns (address)
0x00c567d2b1e23782d388c8f58e64937ca11cecf1
Read-only
allowedSwapTargets(addressview returns (bool)
getRoleAdmin(bytes32 roleview returns (bytes32)
hasRole(bytes32 roleaddress accountview returns (bool)
supportsInterface(bytes4 interfaceIdview returns (bool)
State-modifying
allowSwapTarget(address _swapTarget
denySwapTarget(address _swapTarget
grantRole(bytes32 roleaddress account
harvest(
initialize(address _vaultaddress _adminaddress _stabilityPooladdress _lqtyaddress _underlyingaddress _keeperuint16 _minProtectedAssetsPctaddress _curveExchange
invest(
reinvest(address _swapTargetuint256 _lqtyAmountbytes _lqtySwapDatauint256 _ethAmountbytes _ethSwapDatauint256 _amountOutMin
renounceRole(bytes32 roleaddress account
revokeRole(bytes32 roleaddress account
setMinProtectedAssetsPct(uint16 _pct
swapLQTYtoETH(address _swapTargetuint256 _amountbytes _lqtySwapDatauint256 _ethAmountOutMin
transferAdminRights(address _newAdmin
transferYield(address _touint256 _amountreturns (uint256)
upgradeTo(address newImplementation
upgradeToAndCall(address newImplementationbytes datapayable 
withdrawToVault(uint256 amountreturns (uint256)
Events
AdminChanged(address previousAdminaddress newAdmin
BeaconUpgraded(address indexed beacon
Initialized(uint8 version
RoleAdminChanged(bytes32 indexed rolebytes32 indexed previousAdminRolebytes32 indexed newAdminRole
RoleGranted(bytes32 indexed roleaddress indexed accountaddress indexed sender
RoleRevoked(bytes32 indexed roleaddress indexed accountaddress indexed sender
StrategyInvested(uint256 amount
StrategyReinvested(uint256 amountInLUSD
StrategyWithdrawn(uint256 amount
StrategyYieldTransferred(address touint256 amount
Upgraded(address indexed implementation
Constructor

This contract contains no constructor objects.

Fallback and receive
receive(
Errors
StrategyAdminCannotBe0Address(
StrategyAmountZero(
StrategyCallerNotAdmin(
StrategyCallerNotKeeper(
StrategyCallerNotManager(
StrategyCallerNotSettings(
StrategyCannotTransferAdminRightsToSelf(
StrategyCurveExchangeCannotBe0Address(
StrategyETHSwapFailed(
StrategyETHTransferFailed(address to
StrategyInsufficientOutputAmount(
StrategyKeeperCannotBe0Address(
StrategyLQTYSwapFailed(
StrategyLQTYtoETHSwapFailed(
StrategyMinimumAssetsProtection(
StrategyNoUnderlying(
StrategyNotEnoughETH(
StrategyNotEnoughLQTY(
StrategyNotEnoughShares(
StrategyNotIVault(
StrategyNotRunning(
StrategyNothingToReinvest(
StrategyStabilityPoolCannotBe0Address(
StrategySwapDataEmpty(
StrategySwapTargetCannotBe0Address(
StrategySwapTargetNotAllowed(
StrategyUnderlyingCannotBe0Address(
StrategyYieldTokenCannotBe0Address(
VaultAdminCannotBe0Address(
VaultAmountDoesNotMatchParams(
VaultAmountLocked(
VaultCallerNotAdmin(
VaultCallerNotKeeper(
VaultCallerNotSettings(
VaultCallerNotSponsor(
VaultCannotComputeSharesWithoutPrincipal(
VaultCannotDeposit0(
VaultCannotDepositWhenClaimerInDebt(
VaultCannotDepositWhenYieldNegative(
VaultCannotSponsor0(
VaultCannotTransferAdminRightsToSelf(
VaultCannotWithdrawMoreThanAvailable(
VaultCannotWithdrawWhenYieldNegative(
VaultClaimPercentageCannotBe0(
VaultClaimerCannotBe0(
VaultClaimsDontAddUp(
VaultDepositLocked(
VaultDepositNameTooShort(
VaultDestinationCannotBe0Address(
VaultInvalidImmediateInvestLimitPct(
VaultInvalidInvestPct(
VaultInvalidLockPeriod(
VaultInvalidLossTolerance(
VaultInvalidMinLockPeriod(
VaultInvalidPerformanceFee(
VaultInvalidVault(
VaultMustUseForceWithdrawToAcceptLosses(
VaultNoPerformanceFee(
VaultNoYieldToClaim(
VaultNotAllowed(
VaultNotDeposit(
VaultNotEnoughFunds(
VaultNotEnoughToRebalance(
VaultNotOwnerOfDeposit(
VaultNotSponsor(
VaultNothingToDo(
VaultSenderNotOwnerOfGroupId(
VaultStrategyHasInvestedFunds(
VaultStrategyNotSet(
VaultTreasuryCannotBe0Address(
VaultUnderlyingCannotBe0Address(