PendleYieldToken

Verified contract

Active on Ethereum with 20,181 txns
Deployed by via 0x78f9f351 at 18969532
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 2 additional slots
ERC-20
--
ERC-20
--
ERC-20
--
0x6ba45d37a216e91f90eb755a91518c90bea42a62a09ec1ebc2b791001491b59e
0xf9911a918c27560c6b683fd7b7ecabdc40ff206a234fd611e8be0abaeefde04c
0x5e813cac180b5574bd8d488a212170f7eaf371ea3ce7c9dd1a26686f52fbf36c
0x490776b9fb2e933ae6264c9c1e3e93001c455bb36f9a0054842177b3507675b9
0xd80dc4389776d01886e71f23b642fa10a5639ae7bf0dc16ea0e6af7eb9cb9b80
0xd39bdfc8bc4dc3784496c7b63900a85e4d6da5957a987c00964e566aeefbdc36
0x40cb5749ee232bf95cf6493bfba1006da858bf0c131d320060dab25f973b2516
0xbece02bb903e5c1283262b51e978418d734874e6e0cad2a5fd9d3493a795a960
0xb0a93380d66788655e81b7d488bda53e2b32be73358d38e71ebd93e8fdf0e1c6
0xb227a5df30071faf2d3ad5ce40255ba12eb38ee2cdff81f55dc58306d719b74a

Functions
Getter at block 21246681
DOMAIN_SEPARATOR(view returns (bytes32)
0x8ca0e73082782a9326e39d97a2993d870deb5cd2316b2caeb0a15be6ce2fb278
PT(view returns (address)
0xc69ad9bab1dee23f4605a82b3354f8e40d1e5966
SY(view returns (address)
0xac0047886a985071476a1186be89222659970d65
decimals(view returns (uint8)
18
doCacheIndexSameBlock(view returns (bool)
true
eip712Domain(view returns (bytes1 fieldsstring namestring versionuint256 chainIdaddress verifyingContractbytes32 saltuint256[] extensions)
(fields=0x0f, name=YT ether.fi weETH 27JUN2024, version=1, chainId=1, verifyingContract=0xfb35fd0095dd1096b1ca49ad44d8c5812a201677, salt=0x0000000000000000000000000000000000000000000000000000000000000000, extensions=[])
expiry(view returns (uint256)
1719446400
factory(view returns (address)
0xdf3601014686674e53d1fa52f7602525483f9122
getPostExpiryData(view returns (uint256 firstPYIndexuint256 totalSyInterestForTreasuryuint256[] firstRewardIndexesuint256[] userRewardOwed)
(firstPYIndex=1041547085334874407, totalSyInterestForTreasury=9901237545317301922, firstRewardIndexes=[], userRewardOwed=[])
getRewardTokens(view returns (address[])
[]
isExpired(view returns (bool)
true
name(view returns (string)
YT ether.fi weETH 27JUN2024
postExpiry(view returns (uint128 firstPYIndexuint128 totalSyInterestForTreasury)
(firstPYIndex=1041547085334874407, totalSyInterestForTreasury=9901237545317301922)
pyIndexLastUpdatedBlock(view returns (uint128)
21246602
pyIndexStored(view returns (uint256)
1053490713711867716
syReserve(view returns (uint256)
2090696572465024316873
symbol(view returns (string)
YT-weETH-27JUN2024
totalSupply(view returns (uint256)
413640320096489026814449
Read-only
allowance(address owneraddress spenderview returns (uint256)
balanceOf(address accountview returns (uint256)
nonces(address ownerview returns (uint256)
userInterest(addressview returns (uint128 indexuint128 accrued)
userReward(addressaddressview returns (uint128 indexuint128 accrued)
State-modifying
approve(address spenderuint256 amountreturns (bool)
mintPY(address receiverPTaddress receiverYTreturns (uint256 amountPYOut)
mintPYMulti(address[] receiverPTsaddress[] receiverYTsuint256[] amountSyToMintsreturns (uint256[] amountPYOuts)
permit(address owneraddress spenderuint256 valueuint256 deadlineuint8 vbytes32 rbytes32 s
pyIndexCurrent(returns (uint256 currentIndex)
redeemDueInterestAndRewards(address userbool redeemInterestbool redeemRewardsreturns (uint256 interestOutuint256[] rewardsOut)
redeemInterestAndRewardsPostExpiryForTreasury(returns (uint256 interestOutuint256[] rewardsOut)
redeemPY(address receiverreturns (uint256 amountSyOut)
redeemPYMulti(address[] receiversuint256[] amountPYToRedeemsreturns (uint256[] amountSyOuts)
rewardIndexesCurrent(returns (uint256[])
setPostExpiryData(
transfer(address touint256 amountreturns (bool)
transferFrom(address fromaddress touint256 amountreturns (bool)
Events
Approval(address indexed owneraddress indexed spenderuint256 value
Burn(address indexed calleraddress indexed receiveruint256 amountPYToRedeemuint256 amountSyOut
CollectInterestFee(uint256 amountInterestFee
CollectRewardFee(address indexed rewardTokenuint256 amountRewardFee
EIP712DomainChanged(
Mint(address indexed calleraddress indexed receiverPTaddress indexed receiverYTuint256 amountSyToMintuint256 amountPYOut
NewInterestIndex(uint256 indexed newIndex
RedeemInterest(address indexed useruint256 interestOut
RedeemRewards(address indexed useruint256[] amountRewardsOut
Transfer(address indexed fromaddress indexed touint256 value
Constructor
constructor(address _SYaddress _PTstring _namestring _symboluint8 __decimalsuint256 _expirybool _doCacheIndexSameBlock
Fallback and receive

This contract contains no fallback and receive objects.

Errors
ArrayEmpty(
ArrayLengthMismatch(
InvalidShortString(
StringTooLong(string str
YCExpired(
YCNoFloatingSy(
YCNotExpired(
YCNothingToRedeem(
YCPostExpiryDataNotSet(
YieldContractInsufficientSy(uint256 actualSyuint256 requiredSy