Skip to content

Commit

Permalink
add: fix fuse staking slippage
Browse files Browse the repository at this point in the history
  • Loading branch information
sirpy committed Jan 9, 2024
1 parent 76e3022 commit 3f95b81
Show file tree
Hide file tree
Showing 4 changed files with 465 additions and 3 deletions.
6 changes: 4 additions & 2 deletions contracts/staking/FuseStakingV3.sol
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ contract FuseStakingV3 is Initializable, OwnableUpgradeable {
validators.push(address(0xcb876A393F05a6677a8a029f1C6D7603B416C0A6));
stakeBackRatio = 33333; //%33
communityPoolRatio = 33333; //%33
maxSlippageRatio = 3000; //3%
maxSlippageRatio = 600; //0.6%
keeperFeeRatio = 30; //0.03%
RATIO_BASE = 100000; //100%
uniswap = Uniswap(
Expand Down Expand Up @@ -146,10 +146,12 @@ contract FuseStakingV3 is Initializable, OwnableUpgradeable {

function updateSettings(
uint256 _stakeBackRatio,
uint256 _communityPoolRatio
uint256 _communityPoolRatio,
uint256 _maxSlippageRatio
) external onlyGuardian {
communityPoolRatio = _communityPoolRatio;
stakeBackRatio = _stakeBackRatio;
maxSlippageRatio = _maxSlippageRatio;
}

function stake() public payable returns (bool) {
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@
"chai": "*",
"coveralls": "*",
"dotenv": "*",
"ethereum-block-by-date": "^1.4.9",
"ethereum-waffle": "3",
"ethers": "^5.7.2",
"ethers-eip712": "*",
Expand Down
Loading

0 comments on commit 3f95b81

Please sign in to comment.