function getLatestData() public view returns (uint256) {
(, int256 apeUsd, , , ) = apeUsdFeed.latestRoundData();
(, int256 ethUsd, , , ) = ethUsdFeed.latestRoundData();
// ✨ this only really has 8 decimals of precision
// this is usually sufficient
int256 apeEth = (apeUsd * 1e18) / ethUsd;
return uint256(apeEth);
}Надеюсь данный гайд был хоть немного, но полезен! Скоро поговорим о мультисигах!
#chainlnk