GammaFarmTestOnly

Verified contract

Active on Ethereum with 66 txns
Deployed by via 0x191d2a0e at 15141407
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
ERC-20
Value $0
ERC-20
--
0x83813a1c827e1bfdf79cf8a5ce11cc436f22e1b32cd77d074f9001d6fcd98805
0xda1224695e645a370143936f23de18d2d110146efc72054b30f3d225a7b0305e
0xf638d5676edc9952746fd9939ce4478d5520f386456d1e6d8f55c7f79032b17e
0x3b4208c38acd37124d65be9510b6644dee1d7ca3240fce9773f06c2a703db1f8
0x9cca3155e65ffdbc5757af16af562860615a9dba423a51c27d04b43675173bb6
0x3f51c143a81e3e399dccea871c9f24de757c4349a8751ef9b6a6a5aa6b554050
0x20835743b15256080d8e738a6a280a8969ea5851da3a57edc5a4443e614b7ebf
0x8367aabce5a0124c7375f5e924a8af08d86260fdd329d7e1bcec1234cac0aed8
0x92155a6dc31c423c78f8748e0b0a7cb49f7a460f0c073f498c73c212848eafad
0x5d197e0400decaf0f25924d5f10952f0646b942b4acaa9dd3b03c51b6b7312a7

Functions
Getter at block 21409951
DECIMAL_PRECISION(view returns (uint256)
1000000000000000000
MAX_GOV_ONLY_EPOCH_DURATION_SECS(view returns (uint256)
604800
daiToken(view returns (address)
0x6b175474e89094c44da98b954eedeac495271d0f
defaultUseCurveForStableTokenToLusd(view returns (bool)
true
defaultWethToStableToken(view returns (address)
0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
defaultWethToStableTokenFee(view returns (uint24)
500
deploymentTime(view returns (uint256)
1657810140
epoch(view returns (uint32)
50
epochStartTime(view returns (uint256)
1666288127
getLastSnapshot(view returns (struct GammaFarmTestOnlySnapshot _snapshot)
(2201449018861141364, 337781094659981, 340848559825801)
getTotalBalances(view returns (uint256uint256)
(57091052201881776346, 57091052201881776297)
isEmergencyState(view returns (bool)
false
lastMalRewardPerAvailableCumS(view returns (uint160)
337781094659981
lastResetEpoch(view returns (uint32)
0
lastTotalMalRewards(view returns (uint96)
305374697826355326
lqtyToken(view returns (address)
0x6dea81c8171d0ba574754ef6f8b412f2ed88c54d
lusdCurvePool(view returns (address)
0xed279fdd11ca84beef15af5d39bb4d4bee23f0ca
lusdStabilityPool(view returns (address)
0x66017d22b0f8556afdd19fc67041899eb65a21bb
lusdToken(view returns (address)
0x5f98805a4e8be255a32880fdec7f6728c6568ba0
malBurnPct(view returns (uint16)
3000
malDecayFactor(view returns (uint256)
996679922810144001
malDecayPeriodSeconds(view returns (uint256)
86400
malDistributionEndTime(view returns (uint256)
1720882140
malRewardPerSecond(view returns (uint256)
42145786858
malToDistribute(view returns (uint256)
1000000000000000000
malToken(view returns (address)
0x6619078bdd8324e01e9a8d4b3d761b050e5ecf06
minWethLusdAmountOutPct(view returns (uint16)
9500
owner(view returns (address)
0x2ca10707bb0339e1bfe7876a37f50b970d1c2920
priceFeed(view returns (address)
0x4c517d4e2c851ca76d7ec94b805269df0f2201de
totalLusd(view returns (uint128)
57091052201881776346
totalLusdStaked(view returns (uint128)
57091052201881776297
totalLusdToStake(view returns (uint128)
0
totalLusdToUnstake(view returns (uint128)
0
uniswapV3Router(view returns (address)
0xe592427a0aece92de3edee1f18e0157c05861564
usdcToken(view returns (address)
0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
wethToken(view returns (address)
0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Read-only
accountBalances(addressview returns (uint256 lusdStakeDatauint96 malRewardsuint160 malRewardPerAvailableCumSuint256 lusdUnstaked)
epochSnapshots(uint32view returns (uint96 lusdProfitFactorCumPuint160 malRewardPerAvailableCumSuint256 malRewardPerStakedCumS)
getAccountBalances(address _accountview returns (uint256 _lusdAvailableuint256 _lusdStakeduint256 _malRewardsuint256 _lusdToStakebool _shouldUnstake)
getAccountLUSDAvailable(address _accountview returns (uint256 _lusdAvailable)
getAccountLUSDStaked(address _accountview returns (uint256 _lusdStaked)
getAccountMALRewards(address _accountview returns (uint256 _malRewards)
previousResetEpoch(uint32view returns (uint32)
State-modifying
claim(
deposit(uint256 _lusdAmountuint256 _deadlineuint8 _vbytes32 _rbytes32 _s
depositAsFarm(uint256 _lusdAmountuint256 _deadlineuint8 _vbytes32 _rbytes32 _s
emergencyRecover(
emergencyWithdraw(bytes _tradeData
renounceOwnership(
setDefaultTradeData(bytes _tradeData
setMALBurnPercentage(uint16 _pct
startNewEpoch(bytes _tradeData
transferOwnership(address newOwner
unstake(
unstakeAndWithdraw(returns (uint256 _lusdAmountWithdrawn)
withdraw(returns (uint256 _lusdAmountWithdrawn)
Events
EpochStarted(uint256 epochuint256 timestampuint256 totalLUSD
LUSDGainLossReported(uint256 epochuint256 LUSDProfitFactoruint256 LUSDGainuint256 LUSDLoss
OwnershipTransferred(address indexed previousOwneraddress indexed newOwner
Constructor
constructor(uint256 _malToDistributeuint256 _malDistributionPeriodSecondsuint256 _malRewardPerSeconduint256 _malDecayFactoruint256 _malDecayPeriodSeconds
Fallback and receive
receive(
Errors

This contract contains no error objects.