This repository has been archived by the owner on Aug 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 55
/
Copy pathStratX2_PCS.sol
56 lines (48 loc) · 1.71 KB
/
StratX2_PCS.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
import "./StratX2.sol";
contract StratX2_PCS is StratX2 {
constructor(
address[] memory _addresses,
uint256 _pid,
bool _isCAKEStaking,
bool _isSameAssetDeposit,
bool _isAutoComp,
address[] memory _earnedToAUTOPath,
address[] memory _earnedToToken0Path,
address[] memory _earnedToToken1Path,
address[] memory _token0ToEarnedPath,
address[] memory _token1ToEarnedPath,
uint256 _controllerFee,
uint256 _buyBackRate,
uint256 _entranceFeeFactor,
uint256 _withdrawFeeFactor
) public {
wbnbAddress = _addresses[0];
govAddress = _addresses[1];
autoFarmAddress = _addresses[2];
AUTOAddress = _addresses[3];
wantAddress = _addresses[4];
token0Address = _addresses[5];
token1Address = _addresses[6];
earnedAddress = _addresses[7];
farmContractAddress = _addresses[8];
pid = _pid;
isCAKEStaking = _isCAKEStaking;
isSameAssetDeposit = _isSameAssetDeposit;
isAutoComp = _isAutoComp;
uniRouterAddress = _addresses[9];
earnedToAUTOPath = _earnedToAUTOPath;
earnedToToken0Path = _earnedToToken0Path;
earnedToToken1Path = _earnedToToken1Path;
token0ToEarnedPath = _token0ToEarnedPath;
token1ToEarnedPath = _token1ToEarnedPath;
controllerFee = _controllerFee;
rewardsAddress = _addresses[10];
buyBackRate = _buyBackRate;
buyBackAddress = _addresses[11];
entranceFeeFactor = _entranceFeeFactor;
withdrawFeeFactor = _withdrawFeeFactor;
transferOwnership(autoFarmAddress);
}
}