Eigenlayer的重质押积分point可以在合约里查到吗

Eigenlayer的文档只给了的重质押积分point的计算公式,没有说明point对应合约里的哪条数据。 strategyManager合约地址 https://etherscan.io/address/0x858646372cc42e1a627fce94aa7a7033e7cf075a#readProxyContract 目前看到用户质押LSD到strategyManager会记录一个某类strategy对应的份额share,getDeposits会返回用户的shares数组

/**
     * @notice Get all details on the depositor's deposits and corresponding shares
     * @param depositor The staker of interest, whose deposits this function will fetch
     * @return (depositor's strategies, shares in these strategies)
     */
    function getDeposits(address depositor) external view returns (IStrategy[] memory, uint256[] memory) {
        uint256 strategiesLength = stakerStrategyList[depositor].length;
        uint256[] memory shares = new uint256[](strategiesLength);

        for (uint256 i = 0; i < strategiesLength;) {
            shares[i] = stakerStrategyShares[depositor][stakerStrategyList[depositor][i]];
            unchecked {
                ++i;
            }
        }
        return (stakerStrategyList[depositor], shares);
    }
请先 登录 后评论
  • 0 关注
  • 0 收藏,1384 浏览
  • Ethereal 提出于 2024-02-22 17:22