PendleYieldToken

Verified contract

Active on Ethereum with 207 txns
Deployed by via 0x4d40a5ea at 20125481
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
--
0x47b7dcf88ea3c0f54ed7ba77a65f1afd1f15de1b31698057f2e5556515220801
0xaf6d65abc2ca89467655e2e8de34f3e1726cdb2e182d484eb17e6025502fa59a
0x10ec0ff814747390b7c65607a5423227a975c314a1162522143610356f15acee
0x128feae1a9fc748eb16d0cb28b77938a974f9a95f7ab8578e012a688e2ffb666
0x588813e6397dccc5c6e8571502c60b9eb2d09ac1a4e7d81199d27530a66325b2
0x814ecd67bc8af3603bc01586cdab58b774f1ce57688ee8f69d0ab1743786f2a2
0x89c4cd9ac5a93cd6d1780f02b3cb905d74cce1eb53a054cc2e91b5f558ff96c5
0x33f5a2f7d9f6d8a902831d3607f5b2858a14f74a5608b82e2d37b820e7893ea4
0xbbdd97bed71c508fb107bafe57a99334ab35d3a1aac81795bea1464be63dcfda
0x8df67583135aab399ee620b5ce3842a57a5639ce2f65bf7661bd979c8c0deeea

Functions
Getter at block 21225653
DOMAIN_SEPARATOR(view returns (bytes32)
0xb162df6a63473293a813449963dfb733dd513e6938e44f9e41c20243d0f88bcf
PT(view returns (address)
0x4ca48e7dd3970f96ee74d6a573ca5678ea1eb31b
SY(view returns (address)
0x198139f26d42f2028c10427a161e2d0e8bb00346
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 Mellow amphrETH 25JUL2024, version=1, chainId=1, verifyingContract=0x4da430a0b5b22705acfcc1bd5ee15603861ed98b, salt=0x0000000000000000000000000000000000000000000000000000000000000000, extensions=[])
expiry(view returns (uint256)
1721865600
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 Mellow amphrETH 25JUL2024
postExpiry(view returns (uint128 firstPYIndexuint128 totalSyInterestForTreasury)
(firstPYIndex=1000000000000000000, totalSyInterestForTreasury=0)
pyIndexLastUpdatedBlock(view returns (uint128)
21192973
pyIndexStored(view returns (uint256)
1000000000000000000
syReserve(view returns (uint256)
139044923865522477090
symbol(view returns (string)
YT-amphrETH-25JUL2024
totalSupply(view returns (uint256)
7611432981642870125603
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