PendleYieldToken

Verified contract

Active on Ethereum with 274 txns
Deployed by via 0x436102d6 at 20160670
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
--
0x174b66b6c85b6da6422bb5955d1eaf3f17b4669138eab679f68c5e170c9bc84c
0x0ee2da4839ab02dcec4d1c95ac122042b33090f66fac9750972fb26d7afa0470
0xcbba7cc948b70163b1415a65690919d2b522ec67e9218adad4d9c790edb87130
0x42193f232a1ff20864d4a7b7548f5df1bac1b73c28795b8f4b75662a5fac89b6
0xf918c00d56869c712e67531fcc957afb60ebc67be1f2718c0f20d658761a8704
0x938f94256f78689b858b553506ac5878dd1d05c237ba9fd1dc5499e835cc22c3
0x23007f9876a7cc7875984fc661d5c5cbb0493d647b3696dcf07acad806beeab0
0x2c1dac1491ee550ce65b47772bafbf6c49bdc30905233ea29b107f2b6f95a186
0x2d32223e8c4e922fb64fe656598ce33bcbc1c2300cb82ef876703b299ea62129
0x63bf60807583cf4b06385acda5991aa918d66f4cb1a34ec6ac33be4d9f1fe31d

Functions
Getter at block 21202446
DOMAIN_SEPARATOR(view returns (bytes32)
0x3ad4471b24d2ec79b582cb6909d1d1fae2f73649b485e500113db44d4f74083d
PT(view returns (address)
0xf0574d8b9dc3a9de768eaa7dbb7bb0c68521b148
SY(view returns (address)
0x7786729eee8b9d30fe7d91fdff23a0f1d0c615d9
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 rswETH 26SEP2024, version=1, chainId=1, verifyingContract=0xd66b560f4e3e85f22c192d91da847886d5c5fd00, salt=0x0000000000000000000000000000000000000000000000000000000000000000, extensions=[])
expiry(view returns (uint256)
1727308800
factory(view returns (address)
0xdf3601014686674e53d1fa52f7602525483f9122
getPostExpiryData(view returns (uint256 firstPYIndexuint256 totalSyInterestForTreasuryuint256[] firstRewardIndexesuint256[] userRewardOwed)
(firstPYIndex=1018920539950902694, totalSyInterestForTreasury=370640006663577884, firstRewardIndexes=[], userRewardOwed=[])
getRewardTokens(view returns (address[])
[]
isExpired(view returns (bool)
true
name(view returns (string)
YT rswETH 26SEP2024
postExpiry(view returns (uint128 firstPYIndexuint128 totalSyInterestForTreasury)
(firstPYIndex=1018920539950902694, totalSyInterestForTreasury=370640006663577884)
pyIndexLastUpdatedBlock(view returns (uint128)
21173720
pyIndexStored(view returns (uint256)
1023476642102901592
syReserve(view returns (uint256)
70023236238396494726
symbol(view returns (string)
YT-rswETH-26SEP2024
totalSupply(view returns (uint256)
4782246579733125343287
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