@pancakeswap/pools 5.1.16 → 5.1.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -4,16 +4,15 @@ var chains = require('@pancakeswap/chains');
4
4
  var tokens = require('@pancakeswap/tokens');
5
5
  var viem = require('viem');
6
6
  var BigNumber7 = require('bignumber.js');
7
- var fromPairs2 = require('lodash/fromPairs');
8
7
  var chunk = require('lodash/chunk');
9
- var wagmi = require('wagmi');
8
+ var fromPairs2 = require('lodash/fromPairs');
10
9
  var uniq = require('lodash/uniq');
11
10
 
12
11
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
13
12
 
14
13
  var BigNumber7__default = /*#__PURE__*/_interopDefault(BigNumber7);
15
- var fromPairs2__default = /*#__PURE__*/_interopDefault(fromPairs2);
16
14
  var chunk__default = /*#__PURE__*/_interopDefault(chunk);
15
+ var fromPairs2__default = /*#__PURE__*/_interopDefault(fromPairs2);
17
16
  var uniq__default = /*#__PURE__*/_interopDefault(uniq);
18
17
 
19
18
  // src/constants/pools/index.ts
@@ -231,7 +230,22 @@ var livePools5 = [
231
230
  }));
232
231
  var finishedPools5 = [];
233
232
  var pools5 = [...livePools5, ...finishedPools5];
234
- var livePools6 = [];
233
+ var livePools6 = [
234
+ {
235
+ sousId: 2,
236
+ stakingToken: tokens.zksyncTokens.cake,
237
+ earningToken: tokens.zksyncTokens.meow,
238
+ contractAddress: "0x3BF2521A44502eDC06efA069be66694ec4d3AB65",
239
+ poolCategory: "Core" /* CORE */,
240
+ tokenPerSecond: "765.8656",
241
+ version: 3
242
+ }
243
+ ].map((p) => ({
244
+ ...p,
245
+ contractAddress: viem.getAddress(p.contractAddress),
246
+ stakingToken: p.stakingToken.serialize,
247
+ earningToken: p.earningToken.serialize
248
+ }));
235
249
  var finishedPools6 = [
236
250
  {
237
251
  sousId: 1,
@@ -358,6 +372,24 @@ var livePools9 = [
358
372
  tokenPerBlock: "10",
359
373
  isFinished: false
360
374
  },
375
+ {
376
+ sousId: 377,
377
+ stakingToken: tokens.bscTokens.cake,
378
+ earningToken: tokens.bscTokens.pepe,
379
+ contractAddress: "0x625079cE28FaBe21F032083426288a82a69a2344",
380
+ poolCategory: "Core" /* CORE */,
381
+ tokenPerBlock: "1407",
382
+ version: 3
383
+ },
384
+ {
385
+ sousId: 376,
386
+ stakingToken: tokens.bscTokens.cake,
387
+ earningToken: tokens.bscTokens.via,
388
+ contractAddress: "0x0043bc9b395245B63eA548Bb11c7d2609Bf7B327",
389
+ poolCategory: "Core" /* CORE */,
390
+ tokenPerBlock: "0.01157",
391
+ version: 3
392
+ },
361
393
  {
362
394
  sousId: 375,
363
395
  stakingToken: tokens.bscTokens.cake,
@@ -3739,11 +3771,115 @@ new BigNumber7__default.default(9);
3739
3771
  new BigNumber7__default.default(10);
3740
3772
  new BigNumber7__default.default(100);
3741
3773
 
3742
- // src/abis/ISousChef.ts
3743
- var sousChefABI = [
3774
+ // src/abis/ISmartChef.ts
3775
+ var smartChefABI = [
3776
+ {
3777
+ inputs: [
3778
+ { internalType: "address", name: "_pancakeProfile", type: "address" },
3779
+ { internalType: "bool", name: "_pancakeProfileIsRequested", type: "bool" },
3780
+ { internalType: "uint256", name: "_pancakeProfileThresholdPoints", type: "uint256" }
3781
+ ],
3782
+ stateMutability: "nonpayable",
3783
+ type: "constructor"
3784
+ },
3785
+ {
3786
+ anonymous: false,
3787
+ inputs: [
3788
+ { indexed: true, internalType: "address", name: "user", type: "address" },
3789
+ { indexed: false, internalType: "uint256", name: "amount", type: "uint256" }
3790
+ ],
3791
+ name: "Deposit",
3792
+ type: "event"
3793
+ },
3794
+ {
3795
+ anonymous: false,
3796
+ inputs: [
3797
+ { indexed: true, internalType: "address", name: "user", type: "address" },
3798
+ { indexed: false, internalType: "uint256", name: "amount", type: "uint256" }
3799
+ ],
3800
+ name: "EmergencyWithdraw",
3801
+ type: "event"
3802
+ },
3803
+ {
3804
+ anonymous: false,
3805
+ inputs: [{ indexed: false, internalType: "uint256", name: "poolLimitPerUser", type: "uint256" }],
3806
+ name: "NewPoolLimit",
3807
+ type: "event"
3808
+ },
3809
+ {
3810
+ anonymous: false,
3811
+ inputs: [{ indexed: false, internalType: "uint256", name: "rewardPerSecond", type: "uint256" }],
3812
+ name: "NewRewardPerSecond",
3813
+ type: "event"
3814
+ },
3815
+ {
3816
+ anonymous: false,
3817
+ inputs: [
3818
+ { indexed: false, internalType: "uint256", name: "startTimestamp", type: "uint256" },
3819
+ { indexed: false, internalType: "uint256", name: "endTimestamp", type: "uint256" }
3820
+ ],
3821
+ name: "NewStartAndEndTimestamp",
3822
+ type: "event"
3823
+ },
3824
+ {
3825
+ anonymous: false,
3826
+ inputs: [
3827
+ { indexed: true, internalType: "address", name: "previousOwner", type: "address" },
3828
+ { indexed: true, internalType: "address", name: "newOwner", type: "address" }
3829
+ ],
3830
+ name: "OwnershipTransferred",
3831
+ type: "event"
3832
+ },
3833
+ {
3834
+ anonymous: false,
3835
+ inputs: [{ indexed: false, internalType: "uint256", name: "blockNumber", type: "uint256" }],
3836
+ name: "RewardsStop",
3837
+ type: "event"
3838
+ },
3839
+ {
3840
+ anonymous: false,
3841
+ inputs: [
3842
+ { indexed: true, internalType: "address", name: "token", type: "address" },
3843
+ { indexed: false, internalType: "uint256", name: "amount", type: "uint256" }
3844
+ ],
3845
+ name: "TokenRecovery",
3846
+ type: "event"
3847
+ },
3848
+ {
3849
+ anonymous: false,
3850
+ inputs: [
3851
+ { indexed: false, internalType: "bool", name: "isProfileRequested", type: "bool" },
3852
+ { indexed: false, internalType: "uint256", name: "thresholdPoints", type: "uint256" }
3853
+ ],
3854
+ name: "UpdateProfileAndThresholdPointsRequirement",
3855
+ type: "event"
3856
+ },
3857
+ {
3858
+ anonymous: false,
3859
+ inputs: [
3860
+ { indexed: true, internalType: "address", name: "user", type: "address" },
3861
+ { indexed: false, internalType: "uint256", name: "amount", type: "uint256" }
3862
+ ],
3863
+ name: "Withdraw",
3864
+ type: "event"
3865
+ },
3744
3866
  {
3745
3867
  inputs: [],
3746
- name: "bonusEndBlock",
3868
+ name: "PRECISION_FACTOR",
3869
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
3870
+ stateMutability: "view",
3871
+ type: "function"
3872
+ },
3873
+ {
3874
+ inputs: [],
3875
+ name: "SMART_CHEF_FACTORY",
3876
+ outputs: [{ internalType: "address", name: "", type: "address" }],
3877
+ stateMutability: "view",
3878
+ type: "function"
3879
+ },
3880
+ {
3881
+ inputs: [],
3882
+ name: "accTokenPerShare",
3747
3883
  outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
3748
3884
  stateMutability: "view",
3749
3885
  type: "function"
@@ -3764,441 +3900,322 @@ var sousChefABI = [
3764
3900
  },
3765
3901
  { inputs: [], name: "emergencyWithdraw", outputs: [], stateMutability: "nonpayable", type: "function" },
3766
3902
  {
3767
- inputs: [
3768
- { internalType: "uint256", name: "_from", type: "uint256" },
3769
- { internalType: "uint256", name: "_to", type: "uint256" }
3770
- ],
3771
- name: "getMultiplier",
3903
+ inputs: [],
3904
+ name: "endTimestamp",
3772
3905
  outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
3773
3906
  stateMutability: "view",
3774
3907
  type: "function"
3775
3908
  },
3776
- { inputs: [], name: "massUpdatePools", outputs: [], stateMutability: "nonpayable", type: "function" },
3777
3909
  {
3778
3910
  inputs: [],
3779
- name: "owner",
3780
- outputs: [{ internalType: "address", name: "", type: "address" }],
3911
+ name: "hasUserLimit",
3912
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
3781
3913
  stateMutability: "view",
3782
3914
  type: "function"
3783
3915
  },
3784
3916
  {
3785
- inputs: [{ internalType: "address", name: "_user", type: "address" }],
3786
- name: "pendingReward",
3787
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
3917
+ inputs: [
3918
+ { internalType: "contract IERC20Metadata", name: "_stakedToken", type: "address" },
3919
+ { internalType: "contract IERC20Metadata", name: "_rewardToken", type: "address" },
3920
+ { internalType: "uint256", name: "_rewardPerSecond", type: "uint256" },
3921
+ { internalType: "uint256", name: "_startTimestamp", type: "uint256" },
3922
+ { internalType: "uint256", name: "_endTimestamp", type: "uint256" },
3923
+ { internalType: "uint256", name: "_poolLimitPerUser", type: "uint256" },
3924
+ { internalType: "uint256", name: "_numberSecondsForUserLimit", type: "uint256" },
3925
+ { internalType: "address", name: "_admin", type: "address" }
3926
+ ],
3927
+ name: "initialize",
3928
+ outputs: [],
3929
+ stateMutability: "nonpayable",
3930
+ type: "function"
3931
+ },
3932
+ {
3933
+ inputs: [],
3934
+ name: "isInitialized",
3935
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
3788
3936
  stateMutability: "view",
3789
3937
  type: "function"
3790
3938
  },
3791
3939
  {
3792
- inputs: [{ internalType: "uint256", name: "", type: "uint256" }],
3793
- name: "poolInfo",
3794
- outputs: [
3795
- { internalType: "contract IBEP20", name: "lpToken", type: "address" },
3796
- { internalType: "uint256", name: "allocPoint", type: "uint256" },
3797
- { internalType: "uint256", name: "lastRewardBlock", type: "uint256" },
3798
- { internalType: "uint256", name: "accCakePerShare", type: "uint256" }
3799
- ],
3940
+ inputs: [],
3941
+ name: "lastRewardTimestamp",
3942
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
3800
3943
  stateMutability: "view",
3801
3944
  type: "function"
3802
3945
  },
3803
- { inputs: [], name: "renounceOwnership", outputs: [], stateMutability: "nonpayable", type: "function" },
3804
3946
  {
3805
3947
  inputs: [],
3806
- name: "rewardPerBlock",
3948
+ name: "numberSecondsForUserLimit",
3807
3949
  outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
3808
3950
  stateMutability: "view",
3809
3951
  type: "function"
3810
3952
  },
3811
3953
  {
3812
3954
  inputs: [],
3813
- name: "rewardToken",
3814
- outputs: [{ internalType: "contract IBEP20", name: "", type: "address" }],
3955
+ name: "owner",
3956
+ outputs: [{ internalType: "address", name: "", type: "address" }],
3815
3957
  stateMutability: "view",
3816
3958
  type: "function"
3817
3959
  },
3818
3960
  {
3819
3961
  inputs: [],
3820
- name: "startBlock",
3821
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
3962
+ name: "pancakeProfile",
3963
+ outputs: [{ internalType: "address", name: "", type: "address" }],
3822
3964
  stateMutability: "view",
3823
3965
  type: "function"
3824
3966
  },
3825
- { inputs: [], name: "stopReward", outputs: [], stateMutability: "nonpayable", type: "function" },
3826
3967
  {
3827
3968
  inputs: [],
3828
- name: "syrup",
3829
- outputs: [{ internalType: "contract IBEP20", name: "", type: "address" }],
3969
+ name: "pancakeProfileIsRequested",
3970
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
3830
3971
  stateMutability: "view",
3831
3972
  type: "function"
3832
3973
  },
3833
3974
  {
3834
- inputs: [{ internalType: "address", name: "newOwner", type: "address" }],
3835
- name: "transferOwnership",
3836
- outputs: [],
3837
- stateMutability: "nonpayable",
3975
+ inputs: [],
3976
+ name: "pancakeProfileThresholdPoints",
3977
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
3978
+ stateMutability: "view",
3838
3979
  type: "function"
3839
3980
  },
3840
3981
  {
3841
- inputs: [{ internalType: "uint256", name: "_pid", type: "uint256" }],
3842
- name: "updatePool",
3843
- outputs: [],
3844
- stateMutability: "nonpayable",
3982
+ inputs: [{ internalType: "address", name: "_user", type: "address" }],
3983
+ name: "pendingReward",
3984
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
3985
+ stateMutability: "view",
3845
3986
  type: "function"
3846
3987
  },
3847
3988
  {
3848
- inputs: [{ internalType: "address", name: "", type: "address" }],
3849
- name: "userInfo",
3850
- outputs: [
3851
- { internalType: "uint256", name: "amount", type: "uint256" },
3852
- { internalType: "uint256", name: "rewardDebt", type: "uint256" }
3853
- ],
3989
+ inputs: [],
3990
+ name: "poolLimitPerUser",
3991
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
3854
3992
  stateMutability: "view",
3855
3993
  type: "function"
3856
3994
  },
3857
3995
  {
3858
- inputs: [{ internalType: "uint256", name: "_amount", type: "uint256" }],
3859
- name: "withdraw",
3996
+ inputs: [{ internalType: "address", name: "_token", type: "address" }],
3997
+ name: "recoverToken",
3860
3998
  outputs: [],
3861
3999
  stateMutability: "nonpayable",
3862
4000
  type: "function"
3863
- }
3864
- ];
3865
-
3866
- // src/abis/ISousChefV2.ts
3867
- var sousChefV2ABI = [
4001
+ },
4002
+ { inputs: [], name: "renounceOwnership", outputs: [], stateMutability: "nonpayable", type: "function" },
3868
4003
  {
3869
4004
  inputs: [],
3870
- name: "PRECISION_FACTOR",
3871
- outputs: [
3872
- {
3873
- internalType: "uint256",
3874
- name: "",
3875
- type: "uint256"
3876
- }
3877
- ],
4005
+ name: "rewardPerSecond",
4006
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
3878
4007
  stateMutability: "view",
3879
4008
  type: "function"
3880
4009
  },
3881
4010
  {
3882
4011
  inputs: [],
3883
- name: "accTokenPerShare",
3884
- outputs: [
3885
- {
3886
- internalType: "uint256",
3887
- name: "",
3888
- type: "uint256"
3889
- }
3890
- ],
4012
+ name: "rewardToken",
4013
+ outputs: [{ internalType: "contract IERC20Metadata", name: "", type: "address" }],
3891
4014
  stateMutability: "view",
3892
4015
  type: "function"
3893
4016
  },
3894
4017
  {
3895
4018
  inputs: [],
3896
- name: "bonusEndBlock",
3897
- outputs: [
3898
- {
3899
- internalType: "uint256",
3900
- name: "",
3901
- type: "uint256"
3902
- }
3903
- ],
4019
+ name: "stakedToken",
4020
+ outputs: [{ internalType: "contract IERC20Metadata", name: "", type: "address" }],
3904
4021
  stateMutability: "view",
3905
4022
  type: "function"
3906
4023
  },
3907
4024
  {
3908
- inputs: [
3909
- {
3910
- internalType: "uint256",
3911
- name: "_amount",
3912
- type: "uint256"
3913
- }
3914
- ],
3915
- name: "deposit",
4025
+ inputs: [],
4026
+ name: "startTimestamp",
4027
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
4028
+ stateMutability: "view",
4029
+ type: "function"
4030
+ },
4031
+ { inputs: [], name: "stopReward", outputs: [], stateMutability: "nonpayable", type: "function" },
4032
+ {
4033
+ inputs: [{ internalType: "address", name: "newOwner", type: "address" }],
4034
+ name: "transferOwnership",
3916
4035
  outputs: [],
3917
4036
  stateMutability: "nonpayable",
3918
4037
  type: "function"
3919
4038
  },
3920
4039
  {
3921
4040
  inputs: [
3922
- {
3923
- internalType: "uint256",
3924
- name: "_amount",
3925
- type: "uint256"
3926
- }
4041
+ { internalType: "bool", name: "_userLimit", type: "bool" },
4042
+ { internalType: "uint256", name: "_poolLimitPerUser", type: "uint256" }
3927
4043
  ],
3928
- name: "emergencyRewardWithdraw",
4044
+ name: "updatePoolLimitPerUser",
3929
4045
  outputs: [],
3930
4046
  stateMutability: "nonpayable",
3931
4047
  type: "function"
3932
4048
  },
3933
4049
  {
3934
- inputs: [],
3935
- name: "emergencyWithdraw",
4050
+ inputs: [
4051
+ { internalType: "bool", name: "_isRequested", type: "bool" },
4052
+ { internalType: "uint256", name: "_thresholdPoints", type: "uint256" }
4053
+ ],
4054
+ name: "updateProfileAndThresholdPointsRequirement",
3936
4055
  outputs: [],
3937
4056
  stateMutability: "nonpayable",
3938
4057
  type: "function"
3939
4058
  },
3940
4059
  {
3941
- inputs: [],
3942
- name: "hasUserLimit",
3943
- outputs: [
3944
- {
3945
- internalType: "bool",
3946
- name: "",
3947
- type: "bool"
3948
- }
3949
- ],
3950
- stateMutability: "view",
4060
+ inputs: [{ internalType: "uint256", name: "_rewardPerSecond", type: "uint256" }],
4061
+ name: "updateRewardPerSecond",
4062
+ outputs: [],
4063
+ stateMutability: "nonpayable",
3951
4064
  type: "function"
3952
4065
  },
3953
4066
  {
3954
- inputs: [],
3955
- name: "lastRewardBlock",
3956
- outputs: [
3957
- {
3958
- internalType: "uint256",
3959
- name: "",
3960
- type: "uint256"
3961
- }
4067
+ inputs: [
4068
+ { internalType: "uint256", name: "_startTimestamp", type: "uint256" },
4069
+ { internalType: "uint256", name: "_endTimestamp", type: "uint256" }
3962
4070
  ],
3963
- stateMutability: "view",
4071
+ name: "updateStartAndEndTimestamp",
4072
+ outputs: [],
4073
+ stateMutability: "nonpayable",
3964
4074
  type: "function"
3965
4075
  },
3966
4076
  {
3967
- inputs: [],
3968
- name: "numberBlocksForUserLimit",
4077
+ inputs: [{ internalType: "address", name: "", type: "address" }],
4078
+ name: "userInfo",
3969
4079
  outputs: [
3970
- {
3971
- internalType: "uint256",
3972
- name: "",
3973
- type: "uint256"
3974
- }
4080
+ { internalType: "uint256", name: "amount", type: "uint256" },
4081
+ { internalType: "uint256", name: "rewardDebt", type: "uint256" }
3975
4082
  ],
3976
4083
  stateMutability: "view",
3977
4084
  type: "function"
3978
4085
  },
3979
4086
  {
3980
4087
  inputs: [],
3981
- name: "owner",
3982
- outputs: [
3983
- {
3984
- internalType: "address",
3985
- name: "",
3986
- type: "address"
3987
- }
3988
- ],
4088
+ name: "userLimit",
4089
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
3989
4090
  stateMutability: "view",
3990
4091
  type: "function"
3991
4092
  },
3992
4093
  {
3993
- inputs: [
3994
- {
3995
- internalType: "address",
3996
- name: "_user",
3997
- type: "address"
3998
- }
3999
- ],
4000
- name: "pendingReward",
4001
- outputs: [
4002
- {
4003
- internalType: "uint256",
4004
- name: "",
4005
- type: "uint256"
4006
- }
4007
- ],
4008
- stateMutability: "view",
4094
+ inputs: [{ internalType: "uint256", name: "_amount", type: "uint256" }],
4095
+ name: "withdraw",
4096
+ outputs: [],
4097
+ stateMutability: "nonpayable",
4009
4098
  type: "function"
4010
- },
4099
+ }
4100
+ ];
4101
+
4102
+ // src/abis/ISousChef.ts
4103
+ var sousChefABI = [
4011
4104
  {
4012
4105
  inputs: [],
4013
- name: "poolLimitPerUser",
4014
- outputs: [
4015
- {
4016
- internalType: "uint256",
4017
- name: "",
4018
- type: "uint256"
4019
- }
4020
- ],
4106
+ name: "bonusEndBlock",
4107
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
4021
4108
  stateMutability: "view",
4022
4109
  type: "function"
4023
4110
  },
4024
4111
  {
4025
- inputs: [
4026
- {
4027
- internalType: "address",
4028
- name: "_tokenAddress",
4029
- type: "address"
4030
- },
4031
- {
4032
- internalType: "uint256",
4033
- name: "_tokenAmount",
4034
- type: "uint256"
4035
- }
4036
- ],
4037
- name: "recoverWrongTokens",
4112
+ inputs: [{ internalType: "uint256", name: "_amount", type: "uint256" }],
4113
+ name: "deposit",
4038
4114
  outputs: [],
4039
4115
  stateMutability: "nonpayable",
4040
4116
  type: "function"
4041
4117
  },
4042
4118
  {
4043
- inputs: [],
4044
- name: "renounceOwnership",
4119
+ inputs: [{ internalType: "uint256", name: "_amount", type: "uint256" }],
4120
+ name: "emergencyRewardWithdraw",
4045
4121
  outputs: [],
4046
4122
  stateMutability: "nonpayable",
4047
4123
  type: "function"
4048
4124
  },
4125
+ { inputs: [], name: "emergencyWithdraw", outputs: [], stateMutability: "nonpayable", type: "function" },
4049
4126
  {
4050
- inputs: [],
4051
- name: "rewardPerBlock",
4052
- outputs: [
4053
- {
4054
- internalType: "uint256",
4055
- name: "",
4056
- type: "uint256"
4057
- }
4127
+ inputs: [
4128
+ { internalType: "uint256", name: "_from", type: "uint256" },
4129
+ { internalType: "uint256", name: "_to", type: "uint256" }
4058
4130
  ],
4131
+ name: "getMultiplier",
4132
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
4059
4133
  stateMutability: "view",
4060
4134
  type: "function"
4061
4135
  },
4136
+ { inputs: [], name: "massUpdatePools", outputs: [], stateMutability: "nonpayable", type: "function" },
4062
4137
  {
4063
4138
  inputs: [],
4064
- name: "rewardToken",
4065
- outputs: [
4066
- {
4067
- internalType: "contract IBEP20",
4068
- name: "",
4069
- type: "address"
4070
- }
4071
- ],
4139
+ name: "owner",
4140
+ outputs: [{ internalType: "address", name: "", type: "address" }],
4072
4141
  stateMutability: "view",
4073
4142
  type: "function"
4074
4143
  },
4075
4144
  {
4076
- inputs: [],
4077
- name: "stakedToken",
4145
+ inputs: [{ internalType: "address", name: "_user", type: "address" }],
4146
+ name: "pendingReward",
4147
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
4148
+ stateMutability: "view",
4149
+ type: "function"
4150
+ },
4151
+ {
4152
+ inputs: [{ internalType: "uint256", name: "", type: "uint256" }],
4153
+ name: "poolInfo",
4078
4154
  outputs: [
4079
- {
4080
- internalType: "contract IBEP20",
4081
- name: "",
4082
- type: "address"
4083
- }
4155
+ { internalType: "contract IBEP20", name: "lpToken", type: "address" },
4156
+ { internalType: "uint256", name: "allocPoint", type: "uint256" },
4157
+ { internalType: "uint256", name: "lastRewardBlock", type: "uint256" },
4158
+ { internalType: "uint256", name: "accCakePerShare", type: "uint256" }
4084
4159
  ],
4085
4160
  stateMutability: "view",
4086
4161
  type: "function"
4087
4162
  },
4163
+ { inputs: [], name: "renounceOwnership", outputs: [], stateMutability: "nonpayable", type: "function" },
4088
4164
  {
4089
4165
  inputs: [],
4090
- name: "startBlock",
4091
- outputs: [
4092
- {
4093
- internalType: "uint256",
4094
- name: "",
4095
- type: "uint256"
4096
- }
4097
- ],
4166
+ name: "rewardPerBlock",
4167
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
4098
4168
  stateMutability: "view",
4099
4169
  type: "function"
4100
4170
  },
4101
4171
  {
4102
4172
  inputs: [],
4103
- name: "stopReward",
4104
- outputs: [],
4105
- stateMutability: "nonpayable",
4173
+ name: "rewardToken",
4174
+ outputs: [{ internalType: "contract IBEP20", name: "", type: "address" }],
4175
+ stateMutability: "view",
4106
4176
  type: "function"
4107
4177
  },
4108
4178
  {
4109
- inputs: [
4110
- {
4111
- internalType: "address",
4112
- name: "newOwner",
4113
- type: "address"
4114
- }
4115
- ],
4116
- name: "transferOwnership",
4117
- outputs: [],
4118
- stateMutability: "nonpayable",
4179
+ inputs: [],
4180
+ name: "startBlock",
4181
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
4182
+ stateMutability: "view",
4119
4183
  type: "function"
4120
4184
  },
4185
+ { inputs: [], name: "stopReward", outputs: [], stateMutability: "nonpayable", type: "function" },
4121
4186
  {
4122
- inputs: [
4123
- {
4124
- internalType: "bool",
4125
- name: "_hasUserLimit",
4126
- type: "bool"
4127
- },
4128
- {
4129
- internalType: "uint256",
4130
- name: "_poolLimitPerUser",
4131
- type: "uint256"
4132
- }
4133
- ],
4134
- name: "updatePoolLimitPerUser",
4135
- outputs: [],
4136
- stateMutability: "nonpayable",
4187
+ inputs: [],
4188
+ name: "syrup",
4189
+ outputs: [{ internalType: "contract IBEP20", name: "", type: "address" }],
4190
+ stateMutability: "view",
4137
4191
  type: "function"
4138
4192
  },
4139
4193
  {
4140
- inputs: [
4141
- {
4142
- internalType: "uint256",
4143
- name: "_rewardPerBlock",
4144
- type: "uint256"
4145
- }
4146
- ],
4147
- name: "updateRewardPerBlock",
4194
+ inputs: [{ internalType: "address", name: "newOwner", type: "address" }],
4195
+ name: "transferOwnership",
4148
4196
  outputs: [],
4149
4197
  stateMutability: "nonpayable",
4150
4198
  type: "function"
4151
4199
  },
4152
4200
  {
4153
- inputs: [
4154
- {
4155
- internalType: "uint256",
4156
- name: "_startBlock",
4157
- type: "uint256"
4158
- },
4159
- {
4160
- internalType: "uint256",
4161
- name: "_bonusEndBlock",
4162
- type: "uint256"
4163
- }
4164
- ],
4165
- name: "updateStartAndEndBlocks",
4201
+ inputs: [{ internalType: "uint256", name: "_pid", type: "uint256" }],
4202
+ name: "updatePool",
4166
4203
  outputs: [],
4167
4204
  stateMutability: "nonpayable",
4168
4205
  type: "function"
4169
4206
  },
4170
4207
  {
4171
- inputs: [
4172
- {
4173
- internalType: "address",
4174
- name: "",
4175
- type: "address"
4176
- }
4177
- ],
4208
+ inputs: [{ internalType: "address", name: "", type: "address" }],
4178
4209
  name: "userInfo",
4179
4210
  outputs: [
4180
- {
4181
- internalType: "uint256",
4182
- name: "amount",
4183
- type: "uint256"
4184
- },
4185
- {
4186
- internalType: "uint256",
4187
- name: "rewardDebt",
4188
- type: "uint256"
4189
- }
4211
+ { internalType: "uint256", name: "amount", type: "uint256" },
4212
+ { internalType: "uint256", name: "rewardDebt", type: "uint256" }
4190
4213
  ],
4191
4214
  stateMutability: "view",
4192
4215
  type: "function"
4193
4216
  },
4194
4217
  {
4195
- inputs: [
4196
- {
4197
- internalType: "uint256",
4198
- name: "_amount",
4199
- type: "uint256"
4200
- }
4201
- ],
4218
+ inputs: [{ internalType: "uint256", name: "_amount", type: "uint256" }],
4202
4219
  name: "withdraw",
4203
4220
  outputs: [],
4204
4221
  stateMutability: "nonpayable",
@@ -4206,327 +4223,342 @@ var sousChefV2ABI = [
4206
4223
  }
4207
4224
  ];
4208
4225
 
4209
- // src/abis/ISmartChef.ts
4210
- var smartChefABI = [
4211
- {
4212
- inputs: [
4213
- { internalType: "address", name: "_pancakeProfile", type: "address" },
4214
- { internalType: "bool", name: "_pancakeProfileIsRequested", type: "bool" },
4215
- { internalType: "uint256", name: "_pancakeProfileThresholdPoints", type: "uint256" }
4216
- ],
4217
- stateMutability: "nonpayable",
4218
- type: "constructor"
4219
- },
4220
- {
4221
- anonymous: false,
4222
- inputs: [
4223
- { indexed: true, internalType: "address", name: "user", type: "address" },
4224
- { indexed: false, internalType: "uint256", name: "amount", type: "uint256" }
4225
- ],
4226
- name: "Deposit",
4227
- type: "event"
4228
- },
4229
- {
4230
- anonymous: false,
4231
- inputs: [
4232
- { indexed: true, internalType: "address", name: "user", type: "address" },
4233
- { indexed: false, internalType: "uint256", name: "amount", type: "uint256" }
4234
- ],
4235
- name: "EmergencyWithdraw",
4236
- type: "event"
4237
- },
4238
- {
4239
- anonymous: false,
4240
- inputs: [{ indexed: false, internalType: "uint256", name: "poolLimitPerUser", type: "uint256" }],
4241
- name: "NewPoolLimit",
4242
- type: "event"
4243
- },
4244
- {
4245
- anonymous: false,
4246
- inputs: [{ indexed: false, internalType: "uint256", name: "rewardPerSecond", type: "uint256" }],
4247
- name: "NewRewardPerSecond",
4248
- type: "event"
4249
- },
4250
- {
4251
- anonymous: false,
4252
- inputs: [
4253
- { indexed: false, internalType: "uint256", name: "startTimestamp", type: "uint256" },
4254
- { indexed: false, internalType: "uint256", name: "endTimestamp", type: "uint256" }
4255
- ],
4256
- name: "NewStartAndEndTimestamp",
4257
- type: "event"
4258
- },
4259
- {
4260
- anonymous: false,
4261
- inputs: [
4262
- { indexed: true, internalType: "address", name: "previousOwner", type: "address" },
4263
- { indexed: true, internalType: "address", name: "newOwner", type: "address" }
4264
- ],
4265
- name: "OwnershipTransferred",
4266
- type: "event"
4267
- },
4268
- {
4269
- anonymous: false,
4270
- inputs: [{ indexed: false, internalType: "uint256", name: "blockNumber", type: "uint256" }],
4271
- name: "RewardsStop",
4272
- type: "event"
4273
- },
4274
- {
4275
- anonymous: false,
4276
- inputs: [
4277
- { indexed: true, internalType: "address", name: "token", type: "address" },
4278
- { indexed: false, internalType: "uint256", name: "amount", type: "uint256" }
4279
- ],
4280
- name: "TokenRecovery",
4281
- type: "event"
4282
- },
4283
- {
4284
- anonymous: false,
4285
- inputs: [
4286
- { indexed: false, internalType: "bool", name: "isProfileRequested", type: "bool" },
4287
- { indexed: false, internalType: "uint256", name: "thresholdPoints", type: "uint256" }
4288
- ],
4289
- name: "UpdateProfileAndThresholdPointsRequirement",
4290
- type: "event"
4291
- },
4292
- {
4293
- anonymous: false,
4294
- inputs: [
4295
- { indexed: true, internalType: "address", name: "user", type: "address" },
4296
- { indexed: false, internalType: "uint256", name: "amount", type: "uint256" }
4297
- ],
4298
- name: "Withdraw",
4299
- type: "event"
4300
- },
4226
+ // src/abis/ISousChefV2.ts
4227
+ var sousChefV2ABI = [
4301
4228
  {
4302
4229
  inputs: [],
4303
4230
  name: "PRECISION_FACTOR",
4304
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
4305
- stateMutability: "view",
4306
- type: "function"
4307
- },
4308
- {
4309
- inputs: [],
4310
- name: "SMART_CHEF_FACTORY",
4311
- outputs: [{ internalType: "address", name: "", type: "address" }],
4231
+ outputs: [
4232
+ {
4233
+ internalType: "uint256",
4234
+ name: "",
4235
+ type: "uint256"
4236
+ }
4237
+ ],
4312
4238
  stateMutability: "view",
4313
4239
  type: "function"
4314
4240
  },
4315
4241
  {
4316
4242
  inputs: [],
4317
4243
  name: "accTokenPerShare",
4318
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
4319
- stateMutability: "view",
4320
- type: "function"
4321
- },
4322
- {
4323
- inputs: [{ internalType: "uint256", name: "_amount", type: "uint256" }],
4324
- name: "deposit",
4325
- outputs: [],
4326
- stateMutability: "nonpayable",
4327
- type: "function"
4328
- },
4329
- {
4330
- inputs: [{ internalType: "uint256", name: "_amount", type: "uint256" }],
4331
- name: "emergencyRewardWithdraw",
4332
- outputs: [],
4333
- stateMutability: "nonpayable",
4334
- type: "function"
4335
- },
4336
- { inputs: [], name: "emergencyWithdraw", outputs: [], stateMutability: "nonpayable", type: "function" },
4337
- {
4338
- inputs: [],
4339
- name: "endTimestamp",
4340
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
4244
+ outputs: [
4245
+ {
4246
+ internalType: "uint256",
4247
+ name: "",
4248
+ type: "uint256"
4249
+ }
4250
+ ],
4341
4251
  stateMutability: "view",
4342
4252
  type: "function"
4343
4253
  },
4344
4254
  {
4345
4255
  inputs: [],
4346
- name: "hasUserLimit",
4347
- outputs: [{ internalType: "bool", name: "", type: "bool" }],
4256
+ name: "bonusEndBlock",
4257
+ outputs: [
4258
+ {
4259
+ internalType: "uint256",
4260
+ name: "",
4261
+ type: "uint256"
4262
+ }
4263
+ ],
4348
4264
  stateMutability: "view",
4349
4265
  type: "function"
4350
4266
  },
4351
4267
  {
4352
4268
  inputs: [
4353
- { internalType: "contract IERC20Metadata", name: "_stakedToken", type: "address" },
4354
- { internalType: "contract IERC20Metadata", name: "_rewardToken", type: "address" },
4355
- { internalType: "uint256", name: "_rewardPerSecond", type: "uint256" },
4356
- { internalType: "uint256", name: "_startTimestamp", type: "uint256" },
4357
- { internalType: "uint256", name: "_endTimestamp", type: "uint256" },
4358
- { internalType: "uint256", name: "_poolLimitPerUser", type: "uint256" },
4359
- { internalType: "uint256", name: "_numberSecondsForUserLimit", type: "uint256" },
4360
- { internalType: "address", name: "_admin", type: "address" }
4269
+ {
4270
+ internalType: "uint256",
4271
+ name: "_amount",
4272
+ type: "uint256"
4273
+ }
4361
4274
  ],
4362
- name: "initialize",
4275
+ name: "deposit",
4363
4276
  outputs: [],
4364
4277
  stateMutability: "nonpayable",
4365
4278
  type: "function"
4366
4279
  },
4367
4280
  {
4368
- inputs: [],
4369
- name: "isInitialized",
4370
- outputs: [{ internalType: "bool", name: "", type: "bool" }],
4371
- stateMutability: "view",
4372
- type: "function"
4373
- },
4374
- {
4375
- inputs: [],
4376
- name: "lastRewardTimestamp",
4377
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
4378
- stateMutability: "view",
4281
+ inputs: [
4282
+ {
4283
+ internalType: "uint256",
4284
+ name: "_amount",
4285
+ type: "uint256"
4286
+ }
4287
+ ],
4288
+ name: "emergencyRewardWithdraw",
4289
+ outputs: [],
4290
+ stateMutability: "nonpayable",
4379
4291
  type: "function"
4380
4292
  },
4381
4293
  {
4382
4294
  inputs: [],
4383
- name: "numberSecondsForUserLimit",
4384
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
4385
- stateMutability: "view",
4295
+ name: "emergencyWithdraw",
4296
+ outputs: [],
4297
+ stateMutability: "nonpayable",
4386
4298
  type: "function"
4387
4299
  },
4388
4300
  {
4389
4301
  inputs: [],
4390
- name: "owner",
4391
- outputs: [{ internalType: "address", name: "", type: "address" }],
4302
+ name: "hasUserLimit",
4303
+ outputs: [
4304
+ {
4305
+ internalType: "bool",
4306
+ name: "",
4307
+ type: "bool"
4308
+ }
4309
+ ],
4392
4310
  stateMutability: "view",
4393
4311
  type: "function"
4394
4312
  },
4395
4313
  {
4396
4314
  inputs: [],
4397
- name: "pancakeProfile",
4398
- outputs: [{ internalType: "address", name: "", type: "address" }],
4315
+ name: "lastRewardBlock",
4316
+ outputs: [
4317
+ {
4318
+ internalType: "uint256",
4319
+ name: "",
4320
+ type: "uint256"
4321
+ }
4322
+ ],
4399
4323
  stateMutability: "view",
4400
4324
  type: "function"
4401
4325
  },
4402
4326
  {
4403
4327
  inputs: [],
4404
- name: "pancakeProfileIsRequested",
4405
- outputs: [{ internalType: "bool", name: "", type: "bool" }],
4328
+ name: "numberBlocksForUserLimit",
4329
+ outputs: [
4330
+ {
4331
+ internalType: "uint256",
4332
+ name: "",
4333
+ type: "uint256"
4334
+ }
4335
+ ],
4406
4336
  stateMutability: "view",
4407
4337
  type: "function"
4408
4338
  },
4409
4339
  {
4410
4340
  inputs: [],
4411
- name: "pancakeProfileThresholdPoints",
4412
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
4341
+ name: "owner",
4342
+ outputs: [
4343
+ {
4344
+ internalType: "address",
4345
+ name: "",
4346
+ type: "address"
4347
+ }
4348
+ ],
4413
4349
  stateMutability: "view",
4414
4350
  type: "function"
4415
4351
  },
4416
4352
  {
4417
- inputs: [{ internalType: "address", name: "_user", type: "address" }],
4353
+ inputs: [
4354
+ {
4355
+ internalType: "address",
4356
+ name: "_user",
4357
+ type: "address"
4358
+ }
4359
+ ],
4418
4360
  name: "pendingReward",
4419
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
4361
+ outputs: [
4362
+ {
4363
+ internalType: "uint256",
4364
+ name: "",
4365
+ type: "uint256"
4366
+ }
4367
+ ],
4420
4368
  stateMutability: "view",
4421
4369
  type: "function"
4422
4370
  },
4423
4371
  {
4424
4372
  inputs: [],
4425
4373
  name: "poolLimitPerUser",
4426
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
4374
+ outputs: [
4375
+ {
4376
+ internalType: "uint256",
4377
+ name: "",
4378
+ type: "uint256"
4379
+ }
4380
+ ],
4427
4381
  stateMutability: "view",
4428
4382
  type: "function"
4429
4383
  },
4430
4384
  {
4431
- inputs: [{ internalType: "address", name: "_token", type: "address" }],
4432
- name: "recoverToken",
4385
+ inputs: [
4386
+ {
4387
+ internalType: "address",
4388
+ name: "_tokenAddress",
4389
+ type: "address"
4390
+ },
4391
+ {
4392
+ internalType: "uint256",
4393
+ name: "_tokenAmount",
4394
+ type: "uint256"
4395
+ }
4396
+ ],
4397
+ name: "recoverWrongTokens",
4433
4398
  outputs: [],
4434
4399
  stateMutability: "nonpayable",
4435
4400
  type: "function"
4436
4401
  },
4437
- { inputs: [], name: "renounceOwnership", outputs: [], stateMutability: "nonpayable", type: "function" },
4438
4402
  {
4439
4403
  inputs: [],
4440
- name: "rewardPerSecond",
4441
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
4404
+ name: "renounceOwnership",
4405
+ outputs: [],
4406
+ stateMutability: "nonpayable",
4407
+ type: "function"
4408
+ },
4409
+ {
4410
+ inputs: [],
4411
+ name: "rewardPerBlock",
4412
+ outputs: [
4413
+ {
4414
+ internalType: "uint256",
4415
+ name: "",
4416
+ type: "uint256"
4417
+ }
4418
+ ],
4442
4419
  stateMutability: "view",
4443
4420
  type: "function"
4444
4421
  },
4445
4422
  {
4446
4423
  inputs: [],
4447
4424
  name: "rewardToken",
4448
- outputs: [{ internalType: "contract IERC20Metadata", name: "", type: "address" }],
4425
+ outputs: [
4426
+ {
4427
+ internalType: "contract IBEP20",
4428
+ name: "",
4429
+ type: "address"
4430
+ }
4431
+ ],
4449
4432
  stateMutability: "view",
4450
4433
  type: "function"
4451
4434
  },
4452
4435
  {
4453
4436
  inputs: [],
4454
4437
  name: "stakedToken",
4455
- outputs: [{ internalType: "contract IERC20Metadata", name: "", type: "address" }],
4438
+ outputs: [
4439
+ {
4440
+ internalType: "contract IBEP20",
4441
+ name: "",
4442
+ type: "address"
4443
+ }
4444
+ ],
4456
4445
  stateMutability: "view",
4457
4446
  type: "function"
4458
4447
  },
4459
4448
  {
4460
4449
  inputs: [],
4461
- name: "startTimestamp",
4462
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
4450
+ name: "startBlock",
4451
+ outputs: [
4452
+ {
4453
+ internalType: "uint256",
4454
+ name: "",
4455
+ type: "uint256"
4456
+ }
4457
+ ],
4463
4458
  stateMutability: "view",
4464
4459
  type: "function"
4465
4460
  },
4466
- { inputs: [], name: "stopReward", outputs: [], stateMutability: "nonpayable", type: "function" },
4467
4461
  {
4468
- inputs: [{ internalType: "address", name: "newOwner", type: "address" }],
4469
- name: "transferOwnership",
4462
+ inputs: [],
4463
+ name: "stopReward",
4470
4464
  outputs: [],
4471
4465
  stateMutability: "nonpayable",
4472
4466
  type: "function"
4473
4467
  },
4474
4468
  {
4475
4469
  inputs: [
4476
- { internalType: "bool", name: "_userLimit", type: "bool" },
4477
- { internalType: "uint256", name: "_poolLimitPerUser", type: "uint256" }
4470
+ {
4471
+ internalType: "address",
4472
+ name: "newOwner",
4473
+ type: "address"
4474
+ }
4478
4475
  ],
4479
- name: "updatePoolLimitPerUser",
4476
+ name: "transferOwnership",
4480
4477
  outputs: [],
4481
4478
  stateMutability: "nonpayable",
4482
4479
  type: "function"
4483
4480
  },
4484
4481
  {
4485
4482
  inputs: [
4486
- { internalType: "bool", name: "_isRequested", type: "bool" },
4487
- { internalType: "uint256", name: "_thresholdPoints", type: "uint256" }
4483
+ {
4484
+ internalType: "bool",
4485
+ name: "_hasUserLimit",
4486
+ type: "bool"
4487
+ },
4488
+ {
4489
+ internalType: "uint256",
4490
+ name: "_poolLimitPerUser",
4491
+ type: "uint256"
4492
+ }
4488
4493
  ],
4489
- name: "updateProfileAndThresholdPointsRequirement",
4494
+ name: "updatePoolLimitPerUser",
4490
4495
  outputs: [],
4491
4496
  stateMutability: "nonpayable",
4492
4497
  type: "function"
4493
4498
  },
4494
4499
  {
4495
- inputs: [{ internalType: "uint256", name: "_rewardPerSecond", type: "uint256" }],
4496
- name: "updateRewardPerSecond",
4500
+ inputs: [
4501
+ {
4502
+ internalType: "uint256",
4503
+ name: "_rewardPerBlock",
4504
+ type: "uint256"
4505
+ }
4506
+ ],
4507
+ name: "updateRewardPerBlock",
4497
4508
  outputs: [],
4498
4509
  stateMutability: "nonpayable",
4499
4510
  type: "function"
4500
4511
  },
4501
4512
  {
4502
4513
  inputs: [
4503
- { internalType: "uint256", name: "_startTimestamp", type: "uint256" },
4504
- { internalType: "uint256", name: "_endTimestamp", type: "uint256" }
4514
+ {
4515
+ internalType: "uint256",
4516
+ name: "_startBlock",
4517
+ type: "uint256"
4518
+ },
4519
+ {
4520
+ internalType: "uint256",
4521
+ name: "_bonusEndBlock",
4522
+ type: "uint256"
4523
+ }
4505
4524
  ],
4506
- name: "updateStartAndEndTimestamp",
4525
+ name: "updateStartAndEndBlocks",
4507
4526
  outputs: [],
4508
4527
  stateMutability: "nonpayable",
4509
4528
  type: "function"
4510
4529
  },
4511
4530
  {
4512
- inputs: [{ internalType: "address", name: "", type: "address" }],
4531
+ inputs: [
4532
+ {
4533
+ internalType: "address",
4534
+ name: "",
4535
+ type: "address"
4536
+ }
4537
+ ],
4513
4538
  name: "userInfo",
4514
4539
  outputs: [
4515
- { internalType: "uint256", name: "amount", type: "uint256" },
4516
- { internalType: "uint256", name: "rewardDebt", type: "uint256" }
4540
+ {
4541
+ internalType: "uint256",
4542
+ name: "amount",
4543
+ type: "uint256"
4544
+ },
4545
+ {
4546
+ internalType: "uint256",
4547
+ name: "rewardDebt",
4548
+ type: "uint256"
4549
+ }
4517
4550
  ],
4518
4551
  stateMutability: "view",
4519
4552
  type: "function"
4520
4553
  },
4521
4554
  {
4522
- inputs: [],
4523
- name: "userLimit",
4524
- outputs: [{ internalType: "bool", name: "", type: "bool" }],
4525
- stateMutability: "view",
4526
- type: "function"
4527
- },
4528
- {
4529
- inputs: [{ internalType: "uint256", name: "_amount", type: "uint256" }],
4555
+ inputs: [
4556
+ {
4557
+ internalType: "uint256",
4558
+ name: "_amount",
4559
+ type: "uint256"
4560
+ }
4561
+ ],
4530
4562
  name: "withdraw",
4531
4563
  outputs: [],
4532
4564
  stateMutability: "nonpayable",
@@ -5074,8 +5106,10 @@ function getSousChefBNBContract({
5074
5106
  ...viem.getContract({
5075
5107
  abi: sousChefBnbABI,
5076
5108
  address,
5077
- walletClient: signer,
5078
- publicClient
5109
+ client: {
5110
+ public: publicClient,
5111
+ wallet: signer
5112
+ }
5079
5113
  }),
5080
5114
  abi: sousChefBnbABI,
5081
5115
  address,
@@ -5092,8 +5126,10 @@ function getSousChefV2Contract({
5092
5126
  ...viem.getContract({
5093
5127
  abi: sousChefV2ABI,
5094
5128
  address,
5095
- walletClient: signer,
5096
- publicClient
5129
+ client: {
5130
+ public: publicClient,
5131
+ wallet: signer
5132
+ }
5097
5133
  }),
5098
5134
  abi: sousChefV2ABI,
5099
5135
  address,
@@ -5110,8 +5146,10 @@ function getSmartChefChefV2Contract({
5110
5146
  ...viem.getContract({
5111
5147
  abi: smartChefABI,
5112
5148
  address,
5113
- walletClient: signer,
5114
- publicClient
5149
+ client: {
5150
+ public: publicClient,
5151
+ wallet: signer
5152
+ }
5115
5153
  }),
5116
5154
  abi: smartChefABI,
5117
5155
  address,
@@ -5332,7 +5370,7 @@ var fetchPoolsTotalStaking = async (chainId, provider) => {
5332
5370
  }
5333
5371
  const poolsBalanceOf = poolsConfig.map(({ contractAddress, stakingToken }) => {
5334
5372
  return {
5335
- abi: wagmi.erc20ABI,
5373
+ abi: viem.erc20Abi,
5336
5374
  address: stakingToken.address,
5337
5375
  functionName: "balanceOf",
5338
5376
  args: [contractAddress]
@@ -5483,7 +5521,7 @@ var fetchPoolsAllowance = async ({ account, chainId, provider }) => {
5483
5521
  contracts: nonBnbPools.map(
5484
5522
  ({ contractAddress, stakingToken }) => ({
5485
5523
  address: stakingToken.address,
5486
- abi: wagmi.erc20ABI,
5524
+ abi: viem.erc20Abi,
5487
5525
  functionName: "allowance",
5488
5526
  args: [account, contractAddress]
5489
5527
  })
@@ -5518,7 +5556,7 @@ var fetchUserBalances = async ({ account, chainId, provider }) => {
5518
5556
  },
5519
5557
  ...tokens.map(
5520
5558
  (token) => ({
5521
- abi: wagmi.erc20ABI,
5559
+ abi: viem.erc20Abi,
5522
5560
  address: token,
5523
5561
  functionName: "balanceOf",
5524
5562
  args: [account]