PendleYieldToken

Verified contract

Active on Ethereum with 111 txns
Deployed by via 0xfc4f66b4 at 20115781
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
--
0x70ecd539cdc321401a6251464026584caa36440287f49b6d1bd2c954db411532
0x7d7d66525d3bfd074391a6a24b93c8318a18aefe541186d552f7716e34866f5e
0x5a6ff158f133665e93d697b23417ef503e737ef0c34d1e0145e3558fe8a518c8
0xf1d92abdd04d20b616dddd874504fa6a5c1d4cf0c1606b1aa65ac2284fd448cb
0xac2fb3291f9d4c4cedcc38ae493477598f5e1920b26ecbde4df10f7c310fcc76
0xab690e5028295bdac24a2ff5f56c98febe870df525afb9713d573c7c208cabd5
0xd6432e378eca83976041ed5dd20e9c29de79f921fac338209715145faae4f834
0xe0af6c95ded0dae5725e3321fd4205ab5fc2505673e9672d15d4bce8869c64af
0xac17e3d149fa01ec5f47a0a5db3dc64961b13dcad498855e9bf1d61c86cc8ac9
0xde696268f828d70875275ef952b6ee2d49e66b08baf72b0250f4dfd39ab121f4

Functions
Getter at block 21299766
DOMAIN_SEPARATOR(view returns (bytes32)
0x7bfa63b7dd1ed55a0bf67094662a9c9e98f7e7436c293688cfba2b0992ae7bad
PT(view returns (address)
0xe146e7018b3fb588c4efbc2f211e8bb8d8c31c81
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 25JUL2024, version=1, chainId=1, verifyingContract=0x9c73e0a1fa310e2bdc95af1145b9d8daa87bd9c0, salt=0x0000000000000000000000000000000000000000000000000000000000000000, extensions=[])
expiry(view returns (uint256)
1721865600
factory(view returns (address)
0xdf3601014686674e53d1fa52f7602525483f9122
getPostExpiryData(view returns (uint256 firstPYIndexuint256 totalSyInterestForTreasuryuint256[] firstRewardIndexesuint256[] userRewardOwed)
(firstPYIndex=1043672014665104220, totalSyInterestForTreasury=0, firstRewardIndexes=[], userRewardOwed=[])
getRewardTokens(view returns (address[])
[]
isExpired(view returns (bool)
true
name(view returns (string)
YT ether.fi weETH 25JUL2024
postExpiry(view returns (uint128 firstPYIndexuint128 totalSyInterestForTreasury)
(firstPYIndex=1043672014665104220, totalSyInterestForTreasury=0)
pyIndexLastUpdatedBlock(view returns (uint128)
21256838
pyIndexStored(view returns (uint256)
1053589795518120719
syReserve(view returns (uint256)
181533481104510869419
symbol(view returns (string)
YT-weETH-25JUL2024
totalSupply(view returns (uint256)
13123334175569163447483
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