GammaFarm

Verified contract

Active on Ethereum with 444 txns
Deployed by via 0xac839f46 at 15782668
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
ERC-20
Value $0
ERC-20
--
0x2a8a0978ec9a54db2d4a7bc66dba04a874f5a33c1fd87912cc7b3425f8c27806
0xa21cd1f7c8f14776b373ddaa051e1100e1eea9bb88e69a0ce5b7b53f6be63765
0x31af223566be2e3bcf120843b9c53808bcac2fdc68aaaf740c7a2cc967b451b6
0xc9a98b0d0d1f39aea1d2f9a3f8be3577dc10a4ffd86fe42a4f38454ea6781663
0x803d207c50af71d9d3c749da680872346e78d8477e914b8ddfd8df780f2d6779
0x6176ba02cca259980ef24d7f581cc79526cb8ebdcadf807fbb77c94e4c670f6c
0xfb83a22afdf38a17c41d9b8d09d4ab568b46ef51886292af7bbb153f85f41b3e
0x0b5c21efe0a6efc46ada2ca38e095f826e29aaef4bfafcf4a5e0aa7121d48772
0xec1c25c5e9536e0af945165f5816c2924d8653597a40494d34282cf921272e75
0x398f711c96df1d275f6cf06e7e9a91ea015f20f509f5d8f4728e411db9d3b39a

Functions
Getter at block 21272434
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)
1666188731
epoch(view returns (uint32)
340
epochStartTime(view returns (uint256)
1732205327
getLastSnapshot(view returns (struct GammaFarmSnapshot _snapshot)
(1065351113727361009, 77834890781849352691, 77836564199813552337)
getTotalBalances(view returns (uint256uint256)
(2322528630905213339592665, 2322528630905213339184625)
isEmergencyState(view returns (bool)
false
lastMalRewardPerAvailableCumS(view returns (uint160)
77834890781849352691
lastResetEpoch(view returns (uint32)
0
lastTotalMalRewards(view returns (uint96)
157951913513020874781020
lqtyToken(view returns (address)
0x6dea81c8171d0ba574754ef6f8b412f2ed88c54d
lusdCurvePool(view returns (address)
0xed279fdd11ca84beef15af5d39bb4d4bee23f0ca
lusdStabilityPool(view returns (address)
0x66017d22b0f8556afdd19fc67041899eb65a21bb
lusdToken(view returns (address)
0x5f98805a4e8be255a32880fdec7f6728c6568ba0
malBurnPct(view returns (uint16)
5000
malDecayFactor(view returns (uint256)
998331864494289336
malDecayPeriodSeconds(view returns (uint256)
86400
malDistributionEndTime(view returns (uint256)
1792332731
malRewardPerSecond(view returns (uint256)
4231132811987185
malToDistribute(view returns (uint256)
200000000000000000000000
malToken(view returns (address)
0x6619078bdd8324e01e9a8d4b3d761b050e5ecf06
minWethLusdAmountOutPct(view returns (uint16)
9500
owner(view returns (address)
0x2ca10707bb0339e1bfe7876a37f50b970d1c2920
priceFeed(view returns (address)
0x4c517d4e2c851ca76d7ec94b805269df0f2201de
totalLusd(view returns (uint128)
2322528630905213339592665
totalLusdStaked(view returns (uint128)
2322528630905213339184625
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.