YT Corn SolvBTC Babylon 26DEC2024

Verified contract

Active on Ethereum with 696 txns
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
--
0x699061321876ed6a0cdd2f2a718cf3caef6738a15b1d6f64d4202f227b94c9e2
0xca7e70a7f400cff5d5f0b7767b4ed3ebd349740303c09af569ef281008f1d1b1
0xa9589c1317ade25fc1339d58571ef737bd94136573f5349998dc7a904e8117da
From
0x92b866f6d49c1c4f6e5b2a0929ef26713022a5023e5b4540f91ee97e4924747e
0x7a7aaacb5d82a6af0e87b606a929c4d8e461b478fe72d287b96ce0ee85f67bb4
0xa3adefb690d0cee78cace32e13284f417dd863ee110a7a5d88a197debebb50e5
0xaf2c41e7fd1b85f26c04ae705a401b6ab1b99d29a398de4a31249bb92cdf7893
0x176200a7d1e9ae74c6b2606735de18f4d3d043d63997636529aff8d602ffc3e3
0xe751b1c52685ca0322cd4abf024bdad83803a60cb9651812b0483939f491f849
0x21ff858a6ea0a80826bed4d3429ac3fb78757a453436ddd0064ea837070c4719

Functions
Getter at block 21217976
PT(view returns (address)
0x23e479ddcda990e8523494895759bd98cd2fdbf6
SY(view returns (address)
0xec30e55b51d9518cfcf5e870bcf89c73f5708f72
decimals(view returns (uint8)
8
doCacheIndexSameBlock(view returns (bool)
true
expiry(view returns (uint256)
1735171200
factory(view returns (address)
0x35a338522a435d46f77be32c70e215b813d0e3ac
 
getPostExpiryData(view returns (uint256 firstPYIndexuint256 totalSyInterestForTreasuryuint256[] firstRewardIndexesuint256[] userRewardOwed)
getRewardTokens(view returns (address[])
[]
isExpired(view returns (bool)
false
name(view returns (string)
YT Corn SolvBTC Babylon 26DEC2024
postExpiry(view returns (uint128 firstPYIndexuint128 totalSyInterestForTreasury)
(firstPYIndex=0, totalSyInterestForTreasury=0)
pyIndexLastUpdatedBlock(view returns (uint128)
21213837
pyIndexStored(view returns (uint256)
100000000
syReserve(view returns (uint256)
1096252208663808915502
symbol(view returns (string)
YT-corn-SolvBTC.BBN-26DEC2024
totalSupply(view returns (uint256)
109625219924
Read-only
allowance(address owneraddress spenderview returns (uint256)
balanceOf(address accountview 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)
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
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(
YCExpired(
YCNoFloatingSy(
YCNotExpired(
YCNothingToRedeem(
YCPostExpiryDataNotSet(
YieldContractInsufficientSy(uint256 actualSyuint256 requiredSy