2. [YieldWUSDStaking.sol#L603-L604](https://github.com/BendDAO/bend-v2/blob/63f0953173acc760323fcbb2414f215a82dd5217/src/yield/wusd/YieldWUSDStaking.sol#L603-L604):
```solidity
    function getNftStakeData(
        address nft,
        uint256 tokenId
    ) public view virtual returns (uint32 poolId, uint8 state, uint256 debtAmount, uint256 yieldAmount) {
        YieldStakeData storage sd = stakeDatas[nft][tokenId];

        state = sd.state;
        if (sd.state == Constants.YIELD_STATUS_UNSTAKE) {
            if (protocolIsClaimReady(sd)) {
                state = Constants.YIELD_STATUS_CLAIM;
            }
        }
