FYDAI2312 LP

Verified contract

Active on Ethereum with 1 txns
Deployed by via 0x6ec9e19d at 17683525
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0

No balances found for "FYDAI2312 LP"

0xc99b2b0a9dfb109e5ff5bf2d2488a1a15d16fe56f831f4d4d2137270d095c784
From

Functions
Getter at block 21191519
DOMAIN_SEPARATOR(view returns (bytes32)
0x55f9eef5668dfa536b2d53bd41fcbce5b65b2a0d79d80fd372ed7f4c8c882112
LOCK(view returns (bytes4)
0xffffffff
LOCK8605463013(view returns (bytes4)
0xffffffff
PERMIT_TYPEHASH(view returns (bytes32)
0x6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9
ROOT(view returns (bytes4)
0x00000000
ROOT4146650865(view returns (bytes4)
0x00000000
base(view returns (address)
0x6b175474e89094c44da98b954eedeac495271d0f
baseDecimals(view returns (uint256)
18
baseToken(view returns (address)
0x6b175474e89094c44da98b954eedeac495271d0f
cumulativeRatioLast(view returns (uint256)
168129926051249827971887976784603073
 
currentCumulativeRatio(view returns (uint256 currentCumulativeRatio_uint256 blockTimestampCurrent)
decimals(view returns (uint8)
18
deploymentChainId(view returns (uint256)
1
fyToken(view returns (address)
0xb78f9f7d67a4c7cfad0dad80364e95bae42d2fe1
g1(view returns (int128)
16602069666338596454
g1Fee(view returns (uint16)
9000
g2(view returns (int128)
20496382304121724017
getBaseBalance(view returns (uint128)
0
getC(view returns (int128)
18446744073709551616
getCache(view returns (uint104uint104uint32uint16)
(0, 0, 1706629547, 9000)
getCurrentSharePrice(view returns (uint256)
1000000000000000000
getFYTokenBalance(view returns (uint128)
0
getSharesBalance(view returns (uint128)
0
 
invariant(view returns (uint128 result)
maturity(view returns (uint32)
1703862000
 
maxBaseIn(view returns (uint128 baseIn)
maxBaseOut(view returns (uint128 baseOut)
0
 
maxFYTokenIn(view returns (uint128 fyTokenIn)
 
maxFYTokenOut(view returns (uint128 fyTokenOut)
mu(view returns (int128)
18446744073709551616
name(view returns (string)
FYDAI2312 LP
scaleFactor(view returns (uint96)
1
sharesToken(view returns (address)
0x6b175474e89094c44da98b954eedeac495271d0f
symbol(view returns (string)
FYDAI2312LP
totalSupply(view returns (uint256)
0
ts(view returns (int128)
22482386388
version(pure returns (string)
1
Read-only
allowance(address owneraddress spenderview returns (uint256)
balanceOf(address guyview returns (uint256)
buyBasePreview(uint128 baseOutview returns (uint128 fyTokenIn)
buyFYTokenPreview(uint128 fyTokenOutview returns (uint128 baseIn)
getRoleAdmin(bytes4 roleview returns (bytes4)
hasRole(bytes4 roleaddress accountview returns (bool)
nonces(addressview returns (uint256)
sellBasePreview(uint128 baseInview returns (uint128 fyTokenOut)
sellFYTokenPreview(uint128 fyTokenInview returns (uint128 baseOut)
unwrapPreview(uint256 sharesview returns (uint256 assets)
wrapPreview(uint256 assetsview returns (uint256 shares)
State-modifying
approve(address spenderuint256 wadreturns (bool)
burn(address baseToaddress fyTokenTouint256 minRatiouint256 maxRatioreturns (uint256 lpTokensBurneduint256 baseOutuint256 fyTokenOut)
burnForBase(address touint256 minRatiouint256 maxRatioreturns (uint256 lpTokensBurneduint256 baseOut)
buyBase(address touint128 baseOutuint128 maxreturns (uint128 fyTokenIn)
buyFYToken(address touint128 fyTokenOutuint128 maxreturns (uint128 baseIn)
grantRole(bytes4 roleaddress account
grantRoles(bytes4[] rolesaddress account
init(address toreturns (uint256 baseInuint256 fyTokenInuint256 lpTokensMinted)
lockRole(bytes4 role
mint(address toaddress remainderuint256 minRatiouint256 maxRatioreturns (uint256 baseInuint256 fyTokenInuint256 lpTokensMinted)
mintWithBase(address toaddress remainderuint256 fyTokenToBuyuint256 minRatiouint256 maxRatioreturns (uint256 baseInuint256 fyTokenInuint256 lpTokensMinted)
permit(address owneraddress spenderuint256 amountuint256 deadlineuint8 vbytes32 rbytes32 s
renounceRole(bytes4 roleaddress account
retrieveBase(address toreturns (uint128 retrieved)
retrieveFYToken(address toreturns (uint128 retrieved)
retrieveShares(address toreturns (uint128 retrieved)
revokeRole(bytes4 roleaddress account
revokeRoles(bytes4[] rolesaddress account
sellBase(address touint128 minreturns (uint128 fyTokenOut)
sellFYToken(address touint128 minreturns (uint128 baseOut)
setFees(uint16 g1Fee_
setRoleAdmin(bytes4 rolebytes4 adminRole
transfer(address dstuint256 wadreturns (bool)
transferFrom(address srcaddress dstuint256 wadreturns (bool)
unwrap(address receiverreturns (uint256 assets)
wrap(address receiverreturns (uint256 shares)
Events
Approval(address indexed owneraddress indexed spenderuint256 value
FeesSet(uint16 g1Fee
Liquidity(uint32 maturityaddress indexed fromaddress indexed toaddress indexed fyTokenToint256 baseint256 fyTokensint256 poolTokens
RoleAdminChanged(bytes4 indexed rolebytes4 indexed newAdminRole
RoleGranted(bytes4 indexed roleaddress indexed accountaddress indexed sender
RoleRevoked(bytes4 indexed roleaddress indexed accountaddress indexed sender
Sync(uint112 baseCacheduint112 fyTokenCacheduint256 cumulativeBalancesRatio
Trade(uint32 maturityaddress indexed fromaddress indexed toint256 baseint256 fyTokens
Transfer(address indexed fromaddress indexed touint256 value
gg(
gm(
Constructor
constructor(address base_address fyToken_int128 ts_uint16 g1Fee_
Fallback and receive

This contract contains no fallback and receive objects.

Errors
AfterMaturity(
FYTokenCachedBadState(
Initialized(
InvalidFee(uint16 proposedFee
MaturityOverflow(
MuCannotBeZero(
NegativeInterestRatesNotAllowed(uint128 newFYTokenBalanceuint128 newSharesBalanceTimesMu
NotEnoughBaseIn(uint256 baseAvailableuint256 baseNeeded
NotEnoughFYTokenIn(uint256 fYTokensAvailableuint256 fYTokensNeeded
NotInitialized(
SlippageDuringBurn(uint256 newRatiouint256 minRatiouint256 maxRatio
SlippageDuringMint(uint256 newRatiouint256 minRatiouint256 maxRatio
SlippageDuringSellBase(uint128 fyTokenOutuint128 min
SlippageDuringSellFYToken(uint128 baseOutuint128 min