PendleYieldToken

Verified contract

Active on Ethereum with 1,270 txns
Deployed by via 0xe16ededa at 20468430
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
--
0x05cc01dc24c6a2c64da8530708365fe516143cd0eba0af5c85803dc12dce8264
0x64df603540a9a88ed8f4d9e97b3f85d025c441dfcbe6684f3b189602642bb310
0xd006f56a403ba7cbbe5795d4dd6df195c8f57c23344fdaff7e67d44114d9f54d
0x74baaa7009629957c6f9ef87b9912ca197efcb23aeebba7d6328135f2b394022
0x94fe69d11a164cdf4c5b5862d4eac23b5032c16f10e8112a0d070999295e2f3e
0xa844bc2a7b8c09f5f621a8ff5472bdfa3732426bbe2eb9dea8f53b1c247c8fc8
0x85d16e9a241aeade344ac4e304dc14632a852a90ee423f649275cd6570d2fdb4
0x7eb60a902947abb6859b144223a4d07a710aaf6a3fc22bfdbb830d1fe1088e26
0x7acde5c6d19815bf63553f93b6574824b023e8d69ec19223583d4a15e3b19ee3
0xce2bda357446ae61bdb9316509d70fd08566fe233ecf9b1c6a27570354b5c9c0

Functions
Getter at block 21315405
DOMAIN_SEPARATOR(view returns (bytes32)
0x7de677892a5e630c815aa405292cd49fc6ae4ffcd84a7e9788a98a290eb9fa8e
PT(view returns (address)
0x270d664d2fc7d962012a787aec8661ca83df24eb
SY(view returns (address)
0x47bce1bb5d9a9072161ec25009bcd6e8d367b7d3
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 USD0++ 31OCT2024, version=1, chainId=1, verifyingContract=0x4f0b4e6512630480b868e62a8a1d3451b0e9192d, salt=0x0000000000000000000000000000000000000000000000000000000000000000, extensions=[])
expiry(view returns (uint256)
1730332800
factory(view returns (address)
0xdf3601014686674e53d1fa52f7602525483f9122
getPostExpiryData(view returns (uint256 firstPYIndexuint256 totalSyInterestForTreasuryuint256[] firstRewardIndexesuint256[] userRewardOwed)
(firstPYIndex=1000000000000000000, totalSyInterestForTreasury=0, firstRewardIndexes=[], userRewardOwed=[])
getRewardTokens(view returns (address[])
[]
isExpired(view returns (bool)
true
name(view returns (string)
YT USD0++ 31OCT2024
postExpiry(view returns (uint128 firstPYIndexuint128 totalSyInterestForTreasury)
(firstPYIndex=1000000000000000000, totalSyInterestForTreasury=0)
pyIndexLastUpdatedBlock(view returns (uint128)
21315065
pyIndexStored(view returns (uint256)
1000000000000000000
syReserve(view returns (uint256)
516725795878573610464901
symbol(view returns (string)
YT-USD0++-31OCT2024
totalSupply(view returns (uint256)
116955142353530095969099609
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