@@ -20,7 +20,7 @@ import "../staking/IStaking.sol";
20
20
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol " ;
21
21
import "@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol " ;
22
22
23
- /// @title Stable yield contract
23
+ /// @title StableYield contract
24
24
/// @notice Contract that mints and distributes stable yield reward for participating in Threshold Network.
25
25
/// Periodically mints reward for each application based on authorization rate and destributes this rewards based on type of application.
26
26
contract StableYield is OwnableUpgradeable {
@@ -124,7 +124,7 @@ contract StableYield is OwnableUpgradeable {
124
124
status == IStaking.ApplicationStatus.APPROVED,
125
125
"Application is not approved "
126
126
);
127
- uint96 reward = caclulateReward (application, info.stableYield);
127
+ uint96 reward = calculateReward (application, info.stableYield);
128
128
/* solhint-disable-next-line not-rely-on-time */
129
129
info.lastMint = block .timestamp ;
130
130
//slither-disable-next-line incorrect-equality
@@ -156,19 +156,19 @@ contract StableYield is OwnableUpgradeable {
156
156
distributor.functionCall (data);
157
157
}
158
158
159
- function caclulateReward (address application , uint256 stableYield )
159
+ function calculateReward (address application , uint256 stableYield )
160
160
internal
161
161
view
162
162
returns (uint96 reward )
163
163
{
164
- uint96 authrorizedOverall = tokenStaking.getAuthorizedOverall (
164
+ uint96 authorizedOverall = tokenStaking.getAuthorizedOverall (
165
165
application
166
166
);
167
167
uint256 totalSupply = token.totalSupply ();
168
168
// stableYieldPercent * authorizationRate * authorizedOverall =
169
- // (stableYield / STABLE_YIELD_BASE) * (authrorizedOverall / totalSupply) * authorizedOverall
169
+ // (stableYield / STABLE_YIELD_BASE) * (authorizedOverall / totalSupply) * authorizedOverall
170
170
reward = uint96 (
171
- (stableYield * authrorizedOverall * authrorizedOverall ) /
171
+ (stableYield * authorizedOverall * authorizedOverall ) /
172
172
totalSupply /
173
173
STABLE_YIELD_BASE
174
174
);
0 commit comments