MOR distribution. Step #1
This document describes how MOR token rewards are distributed across deposit pools within the protocol.
Overview
Reward distribution flow
1. Fetch Emission Rewards from RewardPool
uint256 rewards = rewardPool.getPeriodRewards(
rewardPoolIndex,
lastCalculatedTimestamp,
uint128(block.timestamp)
);2. Update Token Prices for Each Deposit Pool
bytes32 chainLinkPathId = chainLinkDataConsumer.getPathId(depositPool.chainLinkPath);
uint256 price = chainLinkDataConsumer.getChainLinkDataFeedLatestAnswer(chainLinkPathId);3. Calculate USD Yield Per Deposit Pool
4. Compute Yield Shares and Assign Rewards
Notes
Last updated
Was this helpful?