Skip to content

Commit a7025bf

Browse files
authored
Update PerpetualPool.sol
1 parent 408d3b3 commit a7025bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PerpetualPool.sol

+2-2
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ contract PerpetualPool is ERC20, ERC20Burnable, ReentrancyGuard {
228228
hex_token.transfer(TEAM_CONTRACT_ADDRESS, bpb_bonus_sharing_amount);
229229
hedron_token.transfer(TEAM_CONTRACT_ADDRESS,hedron_contract.balanceOf(address(this)));
230230
uint256 total_supply = IERC20(address(this)).totalSupply();
231-
HEX_REDEMPTION_RATE = calculate_redemption_rate(hex_balance, total_supply);
231+
HEX_REDEMPTION_RATE = calculate_redemption_rate(hex_contract.balanceOf(address(this)), total_supply);
232232
END_STAKER=msg.sender;
233233
CURRENT_STAKE_PRINCIPAL=0;
234234
STAKE_IS_ACTIVE=false;
@@ -257,7 +257,7 @@ contract PerpetualPool is ERC20, ERC20Burnable, ReentrancyGuard {
257257
uint256 scaled_lpb_multiplier;
258258
uint256 lpb_threshold = 3650;
259259
if (stake_length>lpb_threshold) {
260-
scaled_lpb_multiplier = 2;
260+
scaled_lpb_multiplier = 2*(10**8);
261261
}
262262
else {
263263
scaled_lpb_multiplier = 2*((10**8)*(stake_length))/lpb_threshold;

0 commit comments

Comments
 (0)