mirror of
https://github.com/logos-co/staking.git
synced 2025-01-10 02:35:57 +00:00
reward emissions
This commit is contained in:
parent
e9d71449c1
commit
b70666c26d
@ -69,9 +69,10 @@ contract StakeManager is ERC20 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function getRewardsEmissions() public view returns(uint256){
|
function getRewardsEmissions(address _vault, uint256 _totalReward) public view returns(uint256){
|
||||||
uint256 totalStaked = this.totalSupply;
|
uint256 totalShare = this.totalSupply + this.multiplierSupply;
|
||||||
uint256 share = this.multiplierSupply +totalSupply;
|
uint256 userShare = accounts[_vault].balance + accounts[_vault].multiplier;
|
||||||
|
return (userShare / totalShare) * _totalReward;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user