@pancakeswap/pools 5.1.17 → 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.mjs CHANGED
@@ -1,10 +1,9 @@
1
1
  import { ChainId } from '@pancakeswap/chains';
2
2
  import { ethereumTokens, polygonZkEvmTestnetTokens, opBnbTokens, zkSyncTestnetTokens, zksyncTokens, arbitrumTokens, arbitrumGoerliTokens, bscTokens, lineaTestnetTokens, baseTestnetTokens, bscTestnetTokens, CAKE } from '@pancakeswap/tokens';
3
- import { getAddress, getContract } from 'viem';
3
+ import { getAddress, getContract, erc20Abi } from 'viem';
4
4
  import BigNumber7 from 'bignumber.js';
5
- import fromPairs2 from 'lodash/fromPairs';
6
5
  import chunk from 'lodash/chunk';
7
- import { erc20ABI } from 'wagmi';
6
+ import fromPairs2 from 'lodash/fromPairs';
8
7
  import uniq from 'lodash/uniq';
9
8
 
10
9
  // src/constants/pools/index.ts
@@ -3763,11 +3762,115 @@ new BigNumber7(9);
3763
3762
  new BigNumber7(10);
3764
3763
  new BigNumber7(100);
3765
3764
 
3766
- // src/abis/ISousChef.ts
3767
- var sousChefABI = [
3765
+ // src/abis/ISmartChef.ts
3766
+ var smartChefABI = [
3767
+ {
3768
+ inputs: [
3769
+ { internalType: "address", name: "_pancakeProfile", type: "address" },
3770
+ { internalType: "bool", name: "_pancakeProfileIsRequested", type: "bool" },
3771
+ { internalType: "uint256", name: "_pancakeProfileThresholdPoints", type: "uint256" }
3772
+ ],
3773
+ stateMutability: "nonpayable",
3774
+ type: "constructor"
3775
+ },
3776
+ {
3777
+ anonymous: false,
3778
+ inputs: [
3779
+ { indexed: true, internalType: "address", name: "user", type: "address" },
3780
+ { indexed: false, internalType: "uint256", name: "amount", type: "uint256" }
3781
+ ],
3782
+ name: "Deposit",
3783
+ type: "event"
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: "EmergencyWithdraw",
3792
+ type: "event"
3793
+ },
3794
+ {
3795
+ anonymous: false,
3796
+ inputs: [{ indexed: false, internalType: "uint256", name: "poolLimitPerUser", type: "uint256" }],
3797
+ name: "NewPoolLimit",
3798
+ type: "event"
3799
+ },
3800
+ {
3801
+ anonymous: false,
3802
+ inputs: [{ indexed: false, internalType: "uint256", name: "rewardPerSecond", type: "uint256" }],
3803
+ name: "NewRewardPerSecond",
3804
+ type: "event"
3805
+ },
3806
+ {
3807
+ anonymous: false,
3808
+ inputs: [
3809
+ { indexed: false, internalType: "uint256", name: "startTimestamp", type: "uint256" },
3810
+ { indexed: false, internalType: "uint256", name: "endTimestamp", type: "uint256" }
3811
+ ],
3812
+ name: "NewStartAndEndTimestamp",
3813
+ type: "event"
3814
+ },
3815
+ {
3816
+ anonymous: false,
3817
+ inputs: [
3818
+ { indexed: true, internalType: "address", name: "previousOwner", type: "address" },
3819
+ { indexed: true, internalType: "address", name: "newOwner", type: "address" }
3820
+ ],
3821
+ name: "OwnershipTransferred",
3822
+ type: "event"
3823
+ },
3824
+ {
3825
+ anonymous: false,
3826
+ inputs: [{ indexed: false, internalType: "uint256", name: "blockNumber", type: "uint256" }],
3827
+ name: "RewardsStop",
3828
+ type: "event"
3829
+ },
3830
+ {
3831
+ anonymous: false,
3832
+ inputs: [
3833
+ { indexed: true, internalType: "address", name: "token", type: "address" },
3834
+ { indexed: false, internalType: "uint256", name: "amount", type: "uint256" }
3835
+ ],
3836
+ name: "TokenRecovery",
3837
+ type: "event"
3838
+ },
3839
+ {
3840
+ anonymous: false,
3841
+ inputs: [
3842
+ { indexed: false, internalType: "bool", name: "isProfileRequested", type: "bool" },
3843
+ { indexed: false, internalType: "uint256", name: "thresholdPoints", type: "uint256" }
3844
+ ],
3845
+ name: "UpdateProfileAndThresholdPointsRequirement",
3846
+ type: "event"
3847
+ },
3848
+ {
3849
+ anonymous: false,
3850
+ inputs: [
3851
+ { indexed: true, internalType: "address", name: "user", type: "address" },
3852
+ { indexed: false, internalType: "uint256", name: "amount", type: "uint256" }
3853
+ ],
3854
+ name: "Withdraw",
3855
+ type: "event"
3856
+ },
3768
3857
  {
3769
3858
  inputs: [],
3770
- name: "bonusEndBlock",
3859
+ name: "PRECISION_FACTOR",
3860
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
3861
+ stateMutability: "view",
3862
+ type: "function"
3863
+ },
3864
+ {
3865
+ inputs: [],
3866
+ name: "SMART_CHEF_FACTORY",
3867
+ outputs: [{ internalType: "address", name: "", type: "address" }],
3868
+ stateMutability: "view",
3869
+ type: "function"
3870
+ },
3871
+ {
3872
+ inputs: [],
3873
+ name: "accTokenPerShare",
3771
3874
  outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
3772
3875
  stateMutability: "view",
3773
3876
  type: "function"
@@ -3787,17 +3890,57 @@ var sousChefABI = [
3787
3890
  type: "function"
3788
3891
  },
3789
3892
  { inputs: [], name: "emergencyWithdraw", outputs: [], stateMutability: "nonpayable", type: "function" },
3893
+ {
3894
+ inputs: [],
3895
+ name: "endTimestamp",
3896
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
3897
+ stateMutability: "view",
3898
+ type: "function"
3899
+ },
3900
+ {
3901
+ inputs: [],
3902
+ name: "hasUserLimit",
3903
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
3904
+ stateMutability: "view",
3905
+ type: "function"
3906
+ },
3790
3907
  {
3791
3908
  inputs: [
3792
- { internalType: "uint256", name: "_from", type: "uint256" },
3793
- { internalType: "uint256", name: "_to", type: "uint256" }
3909
+ { internalType: "contract IERC20Metadata", name: "_stakedToken", type: "address" },
3910
+ { internalType: "contract IERC20Metadata", name: "_rewardToken", type: "address" },
3911
+ { internalType: "uint256", name: "_rewardPerSecond", type: "uint256" },
3912
+ { internalType: "uint256", name: "_startTimestamp", type: "uint256" },
3913
+ { internalType: "uint256", name: "_endTimestamp", type: "uint256" },
3914
+ { internalType: "uint256", name: "_poolLimitPerUser", type: "uint256" },
3915
+ { internalType: "uint256", name: "_numberSecondsForUserLimit", type: "uint256" },
3916
+ { internalType: "address", name: "_admin", type: "address" }
3794
3917
  ],
3795
- name: "getMultiplier",
3918
+ name: "initialize",
3919
+ outputs: [],
3920
+ stateMutability: "nonpayable",
3921
+ type: "function"
3922
+ },
3923
+ {
3924
+ inputs: [],
3925
+ name: "isInitialized",
3926
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
3927
+ stateMutability: "view",
3928
+ type: "function"
3929
+ },
3930
+ {
3931
+ inputs: [],
3932
+ name: "lastRewardTimestamp",
3933
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
3934
+ stateMutability: "view",
3935
+ type: "function"
3936
+ },
3937
+ {
3938
+ inputs: [],
3939
+ name: "numberSecondsForUserLimit",
3796
3940
  outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
3797
3941
  stateMutability: "view",
3798
3942
  type: "function"
3799
3943
  },
3800
- { inputs: [], name: "massUpdatePools", outputs: [], stateMutability: "nonpayable", type: "function" },
3801
3944
  {
3802
3945
  inputs: [],
3803
3946
  name: "owner",
@@ -3805,6 +3948,27 @@ var sousChefABI = [
3805
3948
  stateMutability: "view",
3806
3949
  type: "function"
3807
3950
  },
3951
+ {
3952
+ inputs: [],
3953
+ name: "pancakeProfile",
3954
+ outputs: [{ internalType: "address", name: "", type: "address" }],
3955
+ stateMutability: "view",
3956
+ type: "function"
3957
+ },
3958
+ {
3959
+ inputs: [],
3960
+ name: "pancakeProfileIsRequested",
3961
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
3962
+ stateMutability: "view",
3963
+ type: "function"
3964
+ },
3965
+ {
3966
+ inputs: [],
3967
+ name: "pancakeProfileThresholdPoints",
3968
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
3969
+ stateMutability: "view",
3970
+ type: "function"
3971
+ },
3808
3972
  {
3809
3973
  inputs: [{ internalType: "address", name: "_user", type: "address" }],
3810
3974
  name: "pendingReward",
@@ -3813,21 +3977,23 @@ var sousChefABI = [
3813
3977
  type: "function"
3814
3978
  },
3815
3979
  {
3816
- inputs: [{ internalType: "uint256", name: "", type: "uint256" }],
3817
- name: "poolInfo",
3818
- outputs: [
3819
- { internalType: "contract IBEP20", name: "lpToken", type: "address" },
3820
- { internalType: "uint256", name: "allocPoint", type: "uint256" },
3821
- { internalType: "uint256", name: "lastRewardBlock", type: "uint256" },
3822
- { internalType: "uint256", name: "accCakePerShare", type: "uint256" }
3823
- ],
3980
+ inputs: [],
3981
+ name: "poolLimitPerUser",
3982
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
3824
3983
  stateMutability: "view",
3825
3984
  type: "function"
3826
3985
  },
3986
+ {
3987
+ inputs: [{ internalType: "address", name: "_token", type: "address" }],
3988
+ name: "recoverToken",
3989
+ outputs: [],
3990
+ stateMutability: "nonpayable",
3991
+ type: "function"
3992
+ },
3827
3993
  { inputs: [], name: "renounceOwnership", outputs: [], stateMutability: "nonpayable", type: "function" },
3828
3994
  {
3829
3995
  inputs: [],
3830
- name: "rewardPerBlock",
3996
+ name: "rewardPerSecond",
3831
3997
  outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
3832
3998
  stateMutability: "view",
3833
3999
  type: "function"
@@ -3835,25 +4001,25 @@ var sousChefABI = [
3835
4001
  {
3836
4002
  inputs: [],
3837
4003
  name: "rewardToken",
3838
- outputs: [{ internalType: "contract IBEP20", name: "", type: "address" }],
4004
+ outputs: [{ internalType: "contract IERC20Metadata", name: "", type: "address" }],
3839
4005
  stateMutability: "view",
3840
4006
  type: "function"
3841
4007
  },
3842
4008
  {
3843
4009
  inputs: [],
3844
- name: "startBlock",
3845
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
4010
+ name: "stakedToken",
4011
+ outputs: [{ internalType: "contract IERC20Metadata", name: "", type: "address" }],
3846
4012
  stateMutability: "view",
3847
4013
  type: "function"
3848
4014
  },
3849
- { inputs: [], name: "stopReward", outputs: [], stateMutability: "nonpayable", type: "function" },
3850
4015
  {
3851
4016
  inputs: [],
3852
- name: "syrup",
3853
- outputs: [{ internalType: "contract IBEP20", name: "", type: "address" }],
4017
+ name: "startTimestamp",
4018
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
3854
4019
  stateMutability: "view",
3855
4020
  type: "function"
3856
4021
  },
4022
+ { inputs: [], name: "stopReward", outputs: [], stateMutability: "nonpayable", type: "function" },
3857
4023
  {
3858
4024
  inputs: [{ internalType: "address", name: "newOwner", type: "address" }],
3859
4025
  name: "transferOwnership",
@@ -3862,8 +4028,38 @@ var sousChefABI = [
3862
4028
  type: "function"
3863
4029
  },
3864
4030
  {
3865
- inputs: [{ internalType: "uint256", name: "_pid", type: "uint256" }],
3866
- name: "updatePool",
4031
+ inputs: [
4032
+ { internalType: "bool", name: "_userLimit", type: "bool" },
4033
+ { internalType: "uint256", name: "_poolLimitPerUser", type: "uint256" }
4034
+ ],
4035
+ name: "updatePoolLimitPerUser",
4036
+ outputs: [],
4037
+ stateMutability: "nonpayable",
4038
+ type: "function"
4039
+ },
4040
+ {
4041
+ inputs: [
4042
+ { internalType: "bool", name: "_isRequested", type: "bool" },
4043
+ { internalType: "uint256", name: "_thresholdPoints", type: "uint256" }
4044
+ ],
4045
+ name: "updateProfileAndThresholdPointsRequirement",
4046
+ outputs: [],
4047
+ stateMutability: "nonpayable",
4048
+ type: "function"
4049
+ },
4050
+ {
4051
+ inputs: [{ internalType: "uint256", name: "_rewardPerSecond", type: "uint256" }],
4052
+ name: "updateRewardPerSecond",
4053
+ outputs: [],
4054
+ stateMutability: "nonpayable",
4055
+ type: "function"
4056
+ },
4057
+ {
4058
+ inputs: [
4059
+ { internalType: "uint256", name: "_startTimestamp", type: "uint256" },
4060
+ { internalType: "uint256", name: "_endTimestamp", type: "uint256" }
4061
+ ],
4062
+ name: "updateStartAndEndTimestamp",
3867
4063
  outputs: [],
3868
4064
  stateMutability: "nonpayable",
3869
4065
  type: "function"
@@ -3878,6 +4074,13 @@ var sousChefABI = [
3878
4074
  stateMutability: "view",
3879
4075
  type: "function"
3880
4076
  },
4077
+ {
4078
+ inputs: [],
4079
+ name: "userLimit",
4080
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
4081
+ stateMutability: "view",
4082
+ type: "function"
4083
+ },
3881
4084
  {
3882
4085
  inputs: [{ internalType: "uint256", name: "_amount", type: "uint256" }],
3883
4086
  name: "withdraw",
@@ -3887,8 +4090,132 @@ var sousChefABI = [
3887
4090
  }
3888
4091
  ];
3889
4092
 
3890
- // src/abis/ISousChefV2.ts
3891
- var sousChefV2ABI = [
4093
+ // src/abis/ISousChef.ts
4094
+ var sousChefABI = [
4095
+ {
4096
+ inputs: [],
4097
+ name: "bonusEndBlock",
4098
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
4099
+ stateMutability: "view",
4100
+ type: "function"
4101
+ },
4102
+ {
4103
+ inputs: [{ internalType: "uint256", name: "_amount", type: "uint256" }],
4104
+ name: "deposit",
4105
+ outputs: [],
4106
+ stateMutability: "nonpayable",
4107
+ type: "function"
4108
+ },
4109
+ {
4110
+ inputs: [{ internalType: "uint256", name: "_amount", type: "uint256" }],
4111
+ name: "emergencyRewardWithdraw",
4112
+ outputs: [],
4113
+ stateMutability: "nonpayable",
4114
+ type: "function"
4115
+ },
4116
+ { inputs: [], name: "emergencyWithdraw", outputs: [], stateMutability: "nonpayable", type: "function" },
4117
+ {
4118
+ inputs: [
4119
+ { internalType: "uint256", name: "_from", type: "uint256" },
4120
+ { internalType: "uint256", name: "_to", type: "uint256" }
4121
+ ],
4122
+ name: "getMultiplier",
4123
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
4124
+ stateMutability: "view",
4125
+ type: "function"
4126
+ },
4127
+ { inputs: [], name: "massUpdatePools", outputs: [], stateMutability: "nonpayable", type: "function" },
4128
+ {
4129
+ inputs: [],
4130
+ name: "owner",
4131
+ outputs: [{ internalType: "address", name: "", type: "address" }],
4132
+ stateMutability: "view",
4133
+ type: "function"
4134
+ },
4135
+ {
4136
+ inputs: [{ internalType: "address", name: "_user", type: "address" }],
4137
+ name: "pendingReward",
4138
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
4139
+ stateMutability: "view",
4140
+ type: "function"
4141
+ },
4142
+ {
4143
+ inputs: [{ internalType: "uint256", name: "", type: "uint256" }],
4144
+ name: "poolInfo",
4145
+ outputs: [
4146
+ { internalType: "contract IBEP20", name: "lpToken", type: "address" },
4147
+ { internalType: "uint256", name: "allocPoint", type: "uint256" },
4148
+ { internalType: "uint256", name: "lastRewardBlock", type: "uint256" },
4149
+ { internalType: "uint256", name: "accCakePerShare", type: "uint256" }
4150
+ ],
4151
+ stateMutability: "view",
4152
+ type: "function"
4153
+ },
4154
+ { inputs: [], name: "renounceOwnership", outputs: [], stateMutability: "nonpayable", type: "function" },
4155
+ {
4156
+ inputs: [],
4157
+ name: "rewardPerBlock",
4158
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
4159
+ stateMutability: "view",
4160
+ type: "function"
4161
+ },
4162
+ {
4163
+ inputs: [],
4164
+ name: "rewardToken",
4165
+ outputs: [{ internalType: "contract IBEP20", name: "", type: "address" }],
4166
+ stateMutability: "view",
4167
+ type: "function"
4168
+ },
4169
+ {
4170
+ inputs: [],
4171
+ name: "startBlock",
4172
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
4173
+ stateMutability: "view",
4174
+ type: "function"
4175
+ },
4176
+ { inputs: [], name: "stopReward", outputs: [], stateMutability: "nonpayable", type: "function" },
4177
+ {
4178
+ inputs: [],
4179
+ name: "syrup",
4180
+ outputs: [{ internalType: "contract IBEP20", name: "", type: "address" }],
4181
+ stateMutability: "view",
4182
+ type: "function"
4183
+ },
4184
+ {
4185
+ inputs: [{ internalType: "address", name: "newOwner", type: "address" }],
4186
+ name: "transferOwnership",
4187
+ outputs: [],
4188
+ stateMutability: "nonpayable",
4189
+ type: "function"
4190
+ },
4191
+ {
4192
+ inputs: [{ internalType: "uint256", name: "_pid", type: "uint256" }],
4193
+ name: "updatePool",
4194
+ outputs: [],
4195
+ stateMutability: "nonpayable",
4196
+ type: "function"
4197
+ },
4198
+ {
4199
+ inputs: [{ internalType: "address", name: "", type: "address" }],
4200
+ name: "userInfo",
4201
+ outputs: [
4202
+ { internalType: "uint256", name: "amount", type: "uint256" },
4203
+ { internalType: "uint256", name: "rewardDebt", type: "uint256" }
4204
+ ],
4205
+ stateMutability: "view",
4206
+ type: "function"
4207
+ },
4208
+ {
4209
+ inputs: [{ internalType: "uint256", name: "_amount", type: "uint256" }],
4210
+ name: "withdraw",
4211
+ outputs: [],
4212
+ stateMutability: "nonpayable",
4213
+ type: "function"
4214
+ }
4215
+ ];
4216
+
4217
+ // src/abis/ISousChefV2.ts
4218
+ var sousChefV2ABI = [
3892
4219
  {
3893
4220
  inputs: [],
3894
4221
  name: "PRECISION_FACTOR",
@@ -4230,334 +4557,6 @@ var sousChefV2ABI = [
4230
4557
  }
4231
4558
  ];
4232
4559
 
4233
- // src/abis/ISmartChef.ts
4234
- var smartChefABI = [
4235
- {
4236
- inputs: [
4237
- { internalType: "address", name: "_pancakeProfile", type: "address" },
4238
- { internalType: "bool", name: "_pancakeProfileIsRequested", type: "bool" },
4239
- { internalType: "uint256", name: "_pancakeProfileThresholdPoints", type: "uint256" }
4240
- ],
4241
- stateMutability: "nonpayable",
4242
- type: "constructor"
4243
- },
4244
- {
4245
- anonymous: false,
4246
- inputs: [
4247
- { indexed: true, internalType: "address", name: "user", type: "address" },
4248
- { indexed: false, internalType: "uint256", name: "amount", type: "uint256" }
4249
- ],
4250
- name: "Deposit",
4251
- type: "event"
4252
- },
4253
- {
4254
- anonymous: false,
4255
- inputs: [
4256
- { indexed: true, internalType: "address", name: "user", type: "address" },
4257
- { indexed: false, internalType: "uint256", name: "amount", type: "uint256" }
4258
- ],
4259
- name: "EmergencyWithdraw",
4260
- type: "event"
4261
- },
4262
- {
4263
- anonymous: false,
4264
- inputs: [{ indexed: false, internalType: "uint256", name: "poolLimitPerUser", type: "uint256" }],
4265
- name: "NewPoolLimit",
4266
- type: "event"
4267
- },
4268
- {
4269
- anonymous: false,
4270
- inputs: [{ indexed: false, internalType: "uint256", name: "rewardPerSecond", type: "uint256" }],
4271
- name: "NewRewardPerSecond",
4272
- type: "event"
4273
- },
4274
- {
4275
- anonymous: false,
4276
- inputs: [
4277
- { indexed: false, internalType: "uint256", name: "startTimestamp", type: "uint256" },
4278
- { indexed: false, internalType: "uint256", name: "endTimestamp", type: "uint256" }
4279
- ],
4280
- name: "NewStartAndEndTimestamp",
4281
- type: "event"
4282
- },
4283
- {
4284
- anonymous: false,
4285
- inputs: [
4286
- { indexed: true, internalType: "address", name: "previousOwner", type: "address" },
4287
- { indexed: true, internalType: "address", name: "newOwner", type: "address" }
4288
- ],
4289
- name: "OwnershipTransferred",
4290
- type: "event"
4291
- },
4292
- {
4293
- anonymous: false,
4294
- inputs: [{ indexed: false, internalType: "uint256", name: "blockNumber", type: "uint256" }],
4295
- name: "RewardsStop",
4296
- type: "event"
4297
- },
4298
- {
4299
- anonymous: false,
4300
- inputs: [
4301
- { indexed: true, internalType: "address", name: "token", type: "address" },
4302
- { indexed: false, internalType: "uint256", name: "amount", type: "uint256" }
4303
- ],
4304
- name: "TokenRecovery",
4305
- type: "event"
4306
- },
4307
- {
4308
- anonymous: false,
4309
- inputs: [
4310
- { indexed: false, internalType: "bool", name: "isProfileRequested", type: "bool" },
4311
- { indexed: false, internalType: "uint256", name: "thresholdPoints", type: "uint256" }
4312
- ],
4313
- name: "UpdateProfileAndThresholdPointsRequirement",
4314
- type: "event"
4315
- },
4316
- {
4317
- anonymous: false,
4318
- inputs: [
4319
- { indexed: true, internalType: "address", name: "user", type: "address" },
4320
- { indexed: false, internalType: "uint256", name: "amount", type: "uint256" }
4321
- ],
4322
- name: "Withdraw",
4323
- type: "event"
4324
- },
4325
- {
4326
- inputs: [],
4327
- name: "PRECISION_FACTOR",
4328
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
4329
- stateMutability: "view",
4330
- type: "function"
4331
- },
4332
- {
4333
- inputs: [],
4334
- name: "SMART_CHEF_FACTORY",
4335
- outputs: [{ internalType: "address", name: "", type: "address" }],
4336
- stateMutability: "view",
4337
- type: "function"
4338
- },
4339
- {
4340
- inputs: [],
4341
- name: "accTokenPerShare",
4342
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
4343
- stateMutability: "view",
4344
- type: "function"
4345
- },
4346
- {
4347
- inputs: [{ internalType: "uint256", name: "_amount", type: "uint256" }],
4348
- name: "deposit",
4349
- outputs: [],
4350
- stateMutability: "nonpayable",
4351
- type: "function"
4352
- },
4353
- {
4354
- inputs: [{ internalType: "uint256", name: "_amount", type: "uint256" }],
4355
- name: "emergencyRewardWithdraw",
4356
- outputs: [],
4357
- stateMutability: "nonpayable",
4358
- type: "function"
4359
- },
4360
- { inputs: [], name: "emergencyWithdraw", outputs: [], stateMutability: "nonpayable", type: "function" },
4361
- {
4362
- inputs: [],
4363
- name: "endTimestamp",
4364
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
4365
- stateMutability: "view",
4366
- type: "function"
4367
- },
4368
- {
4369
- inputs: [],
4370
- name: "hasUserLimit",
4371
- outputs: [{ internalType: "bool", name: "", type: "bool" }],
4372
- stateMutability: "view",
4373
- type: "function"
4374
- },
4375
- {
4376
- inputs: [
4377
- { internalType: "contract IERC20Metadata", name: "_stakedToken", type: "address" },
4378
- { internalType: "contract IERC20Metadata", name: "_rewardToken", type: "address" },
4379
- { internalType: "uint256", name: "_rewardPerSecond", type: "uint256" },
4380
- { internalType: "uint256", name: "_startTimestamp", type: "uint256" },
4381
- { internalType: "uint256", name: "_endTimestamp", type: "uint256" },
4382
- { internalType: "uint256", name: "_poolLimitPerUser", type: "uint256" },
4383
- { internalType: "uint256", name: "_numberSecondsForUserLimit", type: "uint256" },
4384
- { internalType: "address", name: "_admin", type: "address" }
4385
- ],
4386
- name: "initialize",
4387
- outputs: [],
4388
- stateMutability: "nonpayable",
4389
- type: "function"
4390
- },
4391
- {
4392
- inputs: [],
4393
- name: "isInitialized",
4394
- outputs: [{ internalType: "bool", name: "", type: "bool" }],
4395
- stateMutability: "view",
4396
- type: "function"
4397
- },
4398
- {
4399
- inputs: [],
4400
- name: "lastRewardTimestamp",
4401
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
4402
- stateMutability: "view",
4403
- type: "function"
4404
- },
4405
- {
4406
- inputs: [],
4407
- name: "numberSecondsForUserLimit",
4408
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
4409
- stateMutability: "view",
4410
- type: "function"
4411
- },
4412
- {
4413
- inputs: [],
4414
- name: "owner",
4415
- outputs: [{ internalType: "address", name: "", type: "address" }],
4416
- stateMutability: "view",
4417
- type: "function"
4418
- },
4419
- {
4420
- inputs: [],
4421
- name: "pancakeProfile",
4422
- outputs: [{ internalType: "address", name: "", type: "address" }],
4423
- stateMutability: "view",
4424
- type: "function"
4425
- },
4426
- {
4427
- inputs: [],
4428
- name: "pancakeProfileIsRequested",
4429
- outputs: [{ internalType: "bool", name: "", type: "bool" }],
4430
- stateMutability: "view",
4431
- type: "function"
4432
- },
4433
- {
4434
- inputs: [],
4435
- name: "pancakeProfileThresholdPoints",
4436
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
4437
- stateMutability: "view",
4438
- type: "function"
4439
- },
4440
- {
4441
- inputs: [{ internalType: "address", name: "_user", type: "address" }],
4442
- name: "pendingReward",
4443
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
4444
- stateMutability: "view",
4445
- type: "function"
4446
- },
4447
- {
4448
- inputs: [],
4449
- name: "poolLimitPerUser",
4450
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
4451
- stateMutability: "view",
4452
- type: "function"
4453
- },
4454
- {
4455
- inputs: [{ internalType: "address", name: "_token", type: "address" }],
4456
- name: "recoverToken",
4457
- outputs: [],
4458
- stateMutability: "nonpayable",
4459
- type: "function"
4460
- },
4461
- { inputs: [], name: "renounceOwnership", outputs: [], stateMutability: "nonpayable", type: "function" },
4462
- {
4463
- inputs: [],
4464
- name: "rewardPerSecond",
4465
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
4466
- stateMutability: "view",
4467
- type: "function"
4468
- },
4469
- {
4470
- inputs: [],
4471
- name: "rewardToken",
4472
- outputs: [{ internalType: "contract IERC20Metadata", name: "", type: "address" }],
4473
- stateMutability: "view",
4474
- type: "function"
4475
- },
4476
- {
4477
- inputs: [],
4478
- name: "stakedToken",
4479
- outputs: [{ internalType: "contract IERC20Metadata", name: "", type: "address" }],
4480
- stateMutability: "view",
4481
- type: "function"
4482
- },
4483
- {
4484
- inputs: [],
4485
- name: "startTimestamp",
4486
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
4487
- stateMutability: "view",
4488
- type: "function"
4489
- },
4490
- { inputs: [], name: "stopReward", outputs: [], stateMutability: "nonpayable", type: "function" },
4491
- {
4492
- inputs: [{ internalType: "address", name: "newOwner", type: "address" }],
4493
- name: "transferOwnership",
4494
- outputs: [],
4495
- stateMutability: "nonpayable",
4496
- type: "function"
4497
- },
4498
- {
4499
- inputs: [
4500
- { internalType: "bool", name: "_userLimit", type: "bool" },
4501
- { internalType: "uint256", name: "_poolLimitPerUser", type: "uint256" }
4502
- ],
4503
- name: "updatePoolLimitPerUser",
4504
- outputs: [],
4505
- stateMutability: "nonpayable",
4506
- type: "function"
4507
- },
4508
- {
4509
- inputs: [
4510
- { internalType: "bool", name: "_isRequested", type: "bool" },
4511
- { internalType: "uint256", name: "_thresholdPoints", type: "uint256" }
4512
- ],
4513
- name: "updateProfileAndThresholdPointsRequirement",
4514
- outputs: [],
4515
- stateMutability: "nonpayable",
4516
- type: "function"
4517
- },
4518
- {
4519
- inputs: [{ internalType: "uint256", name: "_rewardPerSecond", type: "uint256" }],
4520
- name: "updateRewardPerSecond",
4521
- outputs: [],
4522
- stateMutability: "nonpayable",
4523
- type: "function"
4524
- },
4525
- {
4526
- inputs: [
4527
- { internalType: "uint256", name: "_startTimestamp", type: "uint256" },
4528
- { internalType: "uint256", name: "_endTimestamp", type: "uint256" }
4529
- ],
4530
- name: "updateStartAndEndTimestamp",
4531
- outputs: [],
4532
- stateMutability: "nonpayable",
4533
- type: "function"
4534
- },
4535
- {
4536
- inputs: [{ internalType: "address", name: "", type: "address" }],
4537
- name: "userInfo",
4538
- outputs: [
4539
- { internalType: "uint256", name: "amount", type: "uint256" },
4540
- { internalType: "uint256", name: "rewardDebt", type: "uint256" }
4541
- ],
4542
- stateMutability: "view",
4543
- type: "function"
4544
- },
4545
- {
4546
- inputs: [],
4547
- name: "userLimit",
4548
- outputs: [{ internalType: "bool", name: "", type: "bool" }],
4549
- stateMutability: "view",
4550
- type: "function"
4551
- },
4552
- {
4553
- inputs: [{ internalType: "uint256", name: "_amount", type: "uint256" }],
4554
- name: "withdraw",
4555
- outputs: [],
4556
- stateMutability: "nonpayable",
4557
- type: "function"
4558
- }
4559
- ];
4560
-
4561
4560
  // src/abis/ISousChefV3.ts
4562
4561
  var sousChefV3ABI = [
4563
4562
  {
@@ -5098,8 +5097,10 @@ function getSousChefBNBContract({
5098
5097
  ...getContract({
5099
5098
  abi: sousChefBnbABI,
5100
5099
  address,
5101
- walletClient: signer,
5102
- publicClient
5100
+ client: {
5101
+ public: publicClient,
5102
+ wallet: signer
5103
+ }
5103
5104
  }),
5104
5105
  abi: sousChefBnbABI,
5105
5106
  address,
@@ -5116,8 +5117,10 @@ function getSousChefV2Contract({
5116
5117
  ...getContract({
5117
5118
  abi: sousChefV2ABI,
5118
5119
  address,
5119
- walletClient: signer,
5120
- publicClient
5120
+ client: {
5121
+ public: publicClient,
5122
+ wallet: signer
5123
+ }
5121
5124
  }),
5122
5125
  abi: sousChefV2ABI,
5123
5126
  address,
@@ -5134,8 +5137,10 @@ function getSmartChefChefV2Contract({
5134
5137
  ...getContract({
5135
5138
  abi: smartChefABI,
5136
5139
  address,
5137
- walletClient: signer,
5138
- publicClient
5140
+ client: {
5141
+ public: publicClient,
5142
+ wallet: signer
5143
+ }
5139
5144
  }),
5140
5145
  abi: smartChefABI,
5141
5146
  address,
@@ -5356,7 +5361,7 @@ var fetchPoolsTotalStaking = async (chainId, provider) => {
5356
5361
  }
5357
5362
  const poolsBalanceOf = poolsConfig.map(({ contractAddress, stakingToken }) => {
5358
5363
  return {
5359
- abi: erc20ABI,
5364
+ abi: erc20Abi,
5360
5365
  address: stakingToken.address,
5361
5366
  functionName: "balanceOf",
5362
5367
  args: [contractAddress]
@@ -5507,7 +5512,7 @@ var fetchPoolsAllowance = async ({ account, chainId, provider }) => {
5507
5512
  contracts: nonBnbPools.map(
5508
5513
  ({ contractAddress, stakingToken }) => ({
5509
5514
  address: stakingToken.address,
5510
- abi: erc20ABI,
5515
+ abi: erc20Abi,
5511
5516
  functionName: "allowance",
5512
5517
  args: [account, contractAddress]
5513
5518
  })
@@ -5542,7 +5547,7 @@ var fetchUserBalances = async ({ account, chainId, provider }) => {
5542
5547
  },
5543
5548
  ...tokens.map(
5544
5549
  (token) => ({
5545
- abi: erc20ABI,
5550
+ abi: erc20Abi,
5546
5551
  address: token,
5547
5552
  functionName: "balanceOf",
5548
5553
  args: [account]