@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/constants/pools/324.d.ts.map +1 -1
- package/dist/constants/pools/56.d.ts.map +1 -1
- package/dist/index.js +514 -476
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +514 -476
- package/dist/index.mjs.map +1 -1
- package/dist/queries/fetchPools.d.ts +1 -1
- package/dist/queries/fetchPools.d.ts.map +1 -1
- package/dist/queries/fetchUserPoolsData.d.ts.map +1 -1
- package/dist/utils/getPoolContractBySousId.d.ts +2 -2
- package/dist/utils/getPoolContractBySousId.d.ts.map +1 -1
- package/package.json +7 -7
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
|
|
6
|
+
import fromPairs2 from 'lodash/fromPairs';
|
|
8
7
|
import uniq from 'lodash/uniq';
|
|
9
8
|
|
|
10
9
|
// src/constants/pools/index.ts
|
|
@@ -222,7 +221,22 @@ var livePools5 = [
|
|
|
222
221
|
}));
|
|
223
222
|
var finishedPools5 = [];
|
|
224
223
|
var pools5 = [...livePools5, ...finishedPools5];
|
|
225
|
-
var livePools6 = [
|
|
224
|
+
var livePools6 = [
|
|
225
|
+
{
|
|
226
|
+
sousId: 2,
|
|
227
|
+
stakingToken: zksyncTokens.cake,
|
|
228
|
+
earningToken: zksyncTokens.meow,
|
|
229
|
+
contractAddress: "0x3BF2521A44502eDC06efA069be66694ec4d3AB65",
|
|
230
|
+
poolCategory: "Core" /* CORE */,
|
|
231
|
+
tokenPerSecond: "765.8656",
|
|
232
|
+
version: 3
|
|
233
|
+
}
|
|
234
|
+
].map((p) => ({
|
|
235
|
+
...p,
|
|
236
|
+
contractAddress: getAddress(p.contractAddress),
|
|
237
|
+
stakingToken: p.stakingToken.serialize,
|
|
238
|
+
earningToken: p.earningToken.serialize
|
|
239
|
+
}));
|
|
226
240
|
var finishedPools6 = [
|
|
227
241
|
{
|
|
228
242
|
sousId: 1,
|
|
@@ -349,6 +363,24 @@ var livePools9 = [
|
|
|
349
363
|
tokenPerBlock: "10",
|
|
350
364
|
isFinished: false
|
|
351
365
|
},
|
|
366
|
+
{
|
|
367
|
+
sousId: 377,
|
|
368
|
+
stakingToken: bscTokens.cake,
|
|
369
|
+
earningToken: bscTokens.pepe,
|
|
370
|
+
contractAddress: "0x625079cE28FaBe21F032083426288a82a69a2344",
|
|
371
|
+
poolCategory: "Core" /* CORE */,
|
|
372
|
+
tokenPerBlock: "1407",
|
|
373
|
+
version: 3
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
sousId: 376,
|
|
377
|
+
stakingToken: bscTokens.cake,
|
|
378
|
+
earningToken: bscTokens.via,
|
|
379
|
+
contractAddress: "0x0043bc9b395245B63eA548Bb11c7d2609Bf7B327",
|
|
380
|
+
poolCategory: "Core" /* CORE */,
|
|
381
|
+
tokenPerBlock: "0.01157",
|
|
382
|
+
version: 3
|
|
383
|
+
},
|
|
352
384
|
{
|
|
353
385
|
sousId: 375,
|
|
354
386
|
stakingToken: bscTokens.cake,
|
|
@@ -3730,11 +3762,115 @@ new BigNumber7(9);
|
|
|
3730
3762
|
new BigNumber7(10);
|
|
3731
3763
|
new BigNumber7(100);
|
|
3732
3764
|
|
|
3733
|
-
// src/abis/
|
|
3734
|
-
var
|
|
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
|
+
},
|
|
3735
3857
|
{
|
|
3736
3858
|
inputs: [],
|
|
3737
|
-
name: "
|
|
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",
|
|
3738
3874
|
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
3739
3875
|
stateMutability: "view",
|
|
3740
3876
|
type: "function"
|
|
@@ -3755,441 +3891,322 @@ var sousChefABI = [
|
|
|
3755
3891
|
},
|
|
3756
3892
|
{ inputs: [], name: "emergencyWithdraw", outputs: [], stateMutability: "nonpayable", type: "function" },
|
|
3757
3893
|
{
|
|
3758
|
-
inputs: [
|
|
3759
|
-
|
|
3760
|
-
{ internalType: "uint256", name: "_to", type: "uint256" }
|
|
3761
|
-
],
|
|
3762
|
-
name: "getMultiplier",
|
|
3894
|
+
inputs: [],
|
|
3895
|
+
name: "endTimestamp",
|
|
3763
3896
|
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
3764
3897
|
stateMutability: "view",
|
|
3765
3898
|
type: "function"
|
|
3766
3899
|
},
|
|
3767
|
-
{ inputs: [], name: "massUpdatePools", outputs: [], stateMutability: "nonpayable", type: "function" },
|
|
3768
3900
|
{
|
|
3769
3901
|
inputs: [],
|
|
3770
|
-
name: "
|
|
3771
|
-
outputs: [{ internalType: "
|
|
3902
|
+
name: "hasUserLimit",
|
|
3903
|
+
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
3772
3904
|
stateMutability: "view",
|
|
3773
3905
|
type: "function"
|
|
3774
3906
|
},
|
|
3775
3907
|
{
|
|
3776
|
-
inputs: [
|
|
3777
|
-
|
|
3778
|
-
|
|
3908
|
+
inputs: [
|
|
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" }
|
|
3917
|
+
],
|
|
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" }],
|
|
3779
3927
|
stateMutability: "view",
|
|
3780
3928
|
type: "function"
|
|
3781
3929
|
},
|
|
3782
3930
|
{
|
|
3783
|
-
inputs: [
|
|
3784
|
-
name: "
|
|
3785
|
-
outputs: [
|
|
3786
|
-
{ internalType: "contract IBEP20", name: "lpToken", type: "address" },
|
|
3787
|
-
{ internalType: "uint256", name: "allocPoint", type: "uint256" },
|
|
3788
|
-
{ internalType: "uint256", name: "lastRewardBlock", type: "uint256" },
|
|
3789
|
-
{ internalType: "uint256", name: "accCakePerShare", type: "uint256" }
|
|
3790
|
-
],
|
|
3931
|
+
inputs: [],
|
|
3932
|
+
name: "lastRewardTimestamp",
|
|
3933
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
3791
3934
|
stateMutability: "view",
|
|
3792
3935
|
type: "function"
|
|
3793
3936
|
},
|
|
3794
|
-
{ inputs: [], name: "renounceOwnership", outputs: [], stateMutability: "nonpayable", type: "function" },
|
|
3795
3937
|
{
|
|
3796
3938
|
inputs: [],
|
|
3797
|
-
name: "
|
|
3939
|
+
name: "numberSecondsForUserLimit",
|
|
3798
3940
|
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
3799
3941
|
stateMutability: "view",
|
|
3800
3942
|
type: "function"
|
|
3801
3943
|
},
|
|
3802
3944
|
{
|
|
3803
3945
|
inputs: [],
|
|
3804
|
-
name: "
|
|
3805
|
-
outputs: [{ internalType: "
|
|
3946
|
+
name: "owner",
|
|
3947
|
+
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
3806
3948
|
stateMutability: "view",
|
|
3807
3949
|
type: "function"
|
|
3808
3950
|
},
|
|
3809
3951
|
{
|
|
3810
3952
|
inputs: [],
|
|
3811
|
-
name: "
|
|
3812
|
-
outputs: [{ internalType: "
|
|
3953
|
+
name: "pancakeProfile",
|
|
3954
|
+
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
3813
3955
|
stateMutability: "view",
|
|
3814
3956
|
type: "function"
|
|
3815
3957
|
},
|
|
3816
|
-
{ inputs: [], name: "stopReward", outputs: [], stateMutability: "nonpayable", type: "function" },
|
|
3817
3958
|
{
|
|
3818
3959
|
inputs: [],
|
|
3819
|
-
name: "
|
|
3820
|
-
outputs: [{ internalType: "
|
|
3960
|
+
name: "pancakeProfileIsRequested",
|
|
3961
|
+
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
3821
3962
|
stateMutability: "view",
|
|
3822
3963
|
type: "function"
|
|
3823
3964
|
},
|
|
3824
3965
|
{
|
|
3825
|
-
inputs: [
|
|
3826
|
-
name: "
|
|
3827
|
-
outputs: [],
|
|
3828
|
-
stateMutability: "
|
|
3966
|
+
inputs: [],
|
|
3967
|
+
name: "pancakeProfileThresholdPoints",
|
|
3968
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
3969
|
+
stateMutability: "view",
|
|
3829
3970
|
type: "function"
|
|
3830
3971
|
},
|
|
3831
3972
|
{
|
|
3832
|
-
inputs: [{ internalType: "
|
|
3833
|
-
name: "
|
|
3834
|
-
outputs: [],
|
|
3835
|
-
stateMutability: "
|
|
3973
|
+
inputs: [{ internalType: "address", name: "_user", type: "address" }],
|
|
3974
|
+
name: "pendingReward",
|
|
3975
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
3976
|
+
stateMutability: "view",
|
|
3836
3977
|
type: "function"
|
|
3837
3978
|
},
|
|
3838
3979
|
{
|
|
3839
|
-
inputs: [
|
|
3840
|
-
name: "
|
|
3841
|
-
outputs: [
|
|
3842
|
-
{ internalType: "uint256", name: "amount", type: "uint256" },
|
|
3843
|
-
{ internalType: "uint256", name: "rewardDebt", type: "uint256" }
|
|
3844
|
-
],
|
|
3980
|
+
inputs: [],
|
|
3981
|
+
name: "poolLimitPerUser",
|
|
3982
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
3845
3983
|
stateMutability: "view",
|
|
3846
3984
|
type: "function"
|
|
3847
3985
|
},
|
|
3848
3986
|
{
|
|
3849
|
-
inputs: [{ internalType: "
|
|
3850
|
-
name: "
|
|
3987
|
+
inputs: [{ internalType: "address", name: "_token", type: "address" }],
|
|
3988
|
+
name: "recoverToken",
|
|
3851
3989
|
outputs: [],
|
|
3852
3990
|
stateMutability: "nonpayable",
|
|
3853
3991
|
type: "function"
|
|
3854
|
-
}
|
|
3855
|
-
]
|
|
3856
|
-
|
|
3857
|
-
// src/abis/ISousChefV2.ts
|
|
3858
|
-
var sousChefV2ABI = [
|
|
3992
|
+
},
|
|
3993
|
+
{ inputs: [], name: "renounceOwnership", outputs: [], stateMutability: "nonpayable", type: "function" },
|
|
3859
3994
|
{
|
|
3860
3995
|
inputs: [],
|
|
3861
|
-
name: "
|
|
3862
|
-
outputs: [
|
|
3863
|
-
{
|
|
3864
|
-
internalType: "uint256",
|
|
3865
|
-
name: "",
|
|
3866
|
-
type: "uint256"
|
|
3867
|
-
}
|
|
3868
|
-
],
|
|
3996
|
+
name: "rewardPerSecond",
|
|
3997
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
3869
3998
|
stateMutability: "view",
|
|
3870
3999
|
type: "function"
|
|
3871
4000
|
},
|
|
3872
4001
|
{
|
|
3873
4002
|
inputs: [],
|
|
3874
|
-
name: "
|
|
3875
|
-
outputs: [
|
|
3876
|
-
{
|
|
3877
|
-
internalType: "uint256",
|
|
3878
|
-
name: "",
|
|
3879
|
-
type: "uint256"
|
|
3880
|
-
}
|
|
3881
|
-
],
|
|
4003
|
+
name: "rewardToken",
|
|
4004
|
+
outputs: [{ internalType: "contract IERC20Metadata", name: "", type: "address" }],
|
|
3882
4005
|
stateMutability: "view",
|
|
3883
4006
|
type: "function"
|
|
3884
4007
|
},
|
|
3885
4008
|
{
|
|
3886
4009
|
inputs: [],
|
|
3887
|
-
name: "
|
|
3888
|
-
outputs: [
|
|
3889
|
-
{
|
|
3890
|
-
internalType: "uint256",
|
|
3891
|
-
name: "",
|
|
3892
|
-
type: "uint256"
|
|
3893
|
-
}
|
|
3894
|
-
],
|
|
4010
|
+
name: "stakedToken",
|
|
4011
|
+
outputs: [{ internalType: "contract IERC20Metadata", name: "", type: "address" }],
|
|
3895
4012
|
stateMutability: "view",
|
|
3896
4013
|
type: "function"
|
|
3897
4014
|
},
|
|
3898
4015
|
{
|
|
3899
|
-
inputs: [
|
|
3900
|
-
|
|
3901
|
-
|
|
3902
|
-
|
|
3903
|
-
|
|
3904
|
-
|
|
3905
|
-
|
|
3906
|
-
|
|
4016
|
+
inputs: [],
|
|
4017
|
+
name: "startTimestamp",
|
|
4018
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
4019
|
+
stateMutability: "view",
|
|
4020
|
+
type: "function"
|
|
4021
|
+
},
|
|
4022
|
+
{ inputs: [], name: "stopReward", outputs: [], stateMutability: "nonpayable", type: "function" },
|
|
4023
|
+
{
|
|
4024
|
+
inputs: [{ internalType: "address", name: "newOwner", type: "address" }],
|
|
4025
|
+
name: "transferOwnership",
|
|
3907
4026
|
outputs: [],
|
|
3908
4027
|
stateMutability: "nonpayable",
|
|
3909
4028
|
type: "function"
|
|
3910
4029
|
},
|
|
3911
4030
|
{
|
|
3912
4031
|
inputs: [
|
|
3913
|
-
{
|
|
3914
|
-
|
|
3915
|
-
name: "_amount",
|
|
3916
|
-
type: "uint256"
|
|
3917
|
-
}
|
|
4032
|
+
{ internalType: "bool", name: "_userLimit", type: "bool" },
|
|
4033
|
+
{ internalType: "uint256", name: "_poolLimitPerUser", type: "uint256" }
|
|
3918
4034
|
],
|
|
3919
|
-
name: "
|
|
4035
|
+
name: "updatePoolLimitPerUser",
|
|
3920
4036
|
outputs: [],
|
|
3921
4037
|
stateMutability: "nonpayable",
|
|
3922
4038
|
type: "function"
|
|
3923
4039
|
},
|
|
3924
4040
|
{
|
|
3925
|
-
inputs: [
|
|
3926
|
-
|
|
4041
|
+
inputs: [
|
|
4042
|
+
{ internalType: "bool", name: "_isRequested", type: "bool" },
|
|
4043
|
+
{ internalType: "uint256", name: "_thresholdPoints", type: "uint256" }
|
|
4044
|
+
],
|
|
4045
|
+
name: "updateProfileAndThresholdPointsRequirement",
|
|
3927
4046
|
outputs: [],
|
|
3928
4047
|
stateMutability: "nonpayable",
|
|
3929
4048
|
type: "function"
|
|
3930
4049
|
},
|
|
3931
4050
|
{
|
|
3932
|
-
inputs: [],
|
|
3933
|
-
name: "
|
|
3934
|
-
outputs: [
|
|
3935
|
-
|
|
3936
|
-
internalType: "bool",
|
|
3937
|
-
name: "",
|
|
3938
|
-
type: "bool"
|
|
3939
|
-
}
|
|
3940
|
-
],
|
|
3941
|
-
stateMutability: "view",
|
|
4051
|
+
inputs: [{ internalType: "uint256", name: "_rewardPerSecond", type: "uint256" }],
|
|
4052
|
+
name: "updateRewardPerSecond",
|
|
4053
|
+
outputs: [],
|
|
4054
|
+
stateMutability: "nonpayable",
|
|
3942
4055
|
type: "function"
|
|
3943
4056
|
},
|
|
3944
4057
|
{
|
|
3945
|
-
inputs: [
|
|
3946
|
-
|
|
3947
|
-
|
|
3948
|
-
{
|
|
3949
|
-
internalType: "uint256",
|
|
3950
|
-
name: "",
|
|
3951
|
-
type: "uint256"
|
|
3952
|
-
}
|
|
4058
|
+
inputs: [
|
|
4059
|
+
{ internalType: "uint256", name: "_startTimestamp", type: "uint256" },
|
|
4060
|
+
{ internalType: "uint256", name: "_endTimestamp", type: "uint256" }
|
|
3953
4061
|
],
|
|
3954
|
-
|
|
4062
|
+
name: "updateStartAndEndTimestamp",
|
|
4063
|
+
outputs: [],
|
|
4064
|
+
stateMutability: "nonpayable",
|
|
3955
4065
|
type: "function"
|
|
3956
4066
|
},
|
|
3957
4067
|
{
|
|
3958
|
-
inputs: [],
|
|
3959
|
-
name: "
|
|
4068
|
+
inputs: [{ internalType: "address", name: "", type: "address" }],
|
|
4069
|
+
name: "userInfo",
|
|
3960
4070
|
outputs: [
|
|
3961
|
-
{
|
|
3962
|
-
|
|
3963
|
-
name: "",
|
|
3964
|
-
type: "uint256"
|
|
3965
|
-
}
|
|
4071
|
+
{ internalType: "uint256", name: "amount", type: "uint256" },
|
|
4072
|
+
{ internalType: "uint256", name: "rewardDebt", type: "uint256" }
|
|
3966
4073
|
],
|
|
3967
4074
|
stateMutability: "view",
|
|
3968
4075
|
type: "function"
|
|
3969
4076
|
},
|
|
3970
4077
|
{
|
|
3971
4078
|
inputs: [],
|
|
3972
|
-
name: "
|
|
3973
|
-
outputs: [
|
|
3974
|
-
{
|
|
3975
|
-
internalType: "address",
|
|
3976
|
-
name: "",
|
|
3977
|
-
type: "address"
|
|
3978
|
-
}
|
|
3979
|
-
],
|
|
4079
|
+
name: "userLimit",
|
|
4080
|
+
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
3980
4081
|
stateMutability: "view",
|
|
3981
4082
|
type: "function"
|
|
3982
4083
|
},
|
|
3983
4084
|
{
|
|
3984
|
-
inputs: [
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
type: "address"
|
|
3989
|
-
}
|
|
3990
|
-
],
|
|
3991
|
-
name: "pendingReward",
|
|
3992
|
-
outputs: [
|
|
3993
|
-
{
|
|
3994
|
-
internalType: "uint256",
|
|
3995
|
-
name: "",
|
|
3996
|
-
type: "uint256"
|
|
3997
|
-
}
|
|
3998
|
-
],
|
|
3999
|
-
stateMutability: "view",
|
|
4085
|
+
inputs: [{ internalType: "uint256", name: "_amount", type: "uint256" }],
|
|
4086
|
+
name: "withdraw",
|
|
4087
|
+
outputs: [],
|
|
4088
|
+
stateMutability: "nonpayable",
|
|
4000
4089
|
type: "function"
|
|
4001
|
-
}
|
|
4090
|
+
}
|
|
4091
|
+
];
|
|
4092
|
+
|
|
4093
|
+
// src/abis/ISousChef.ts
|
|
4094
|
+
var sousChefABI = [
|
|
4002
4095
|
{
|
|
4003
4096
|
inputs: [],
|
|
4004
|
-
name: "
|
|
4005
|
-
outputs: [
|
|
4006
|
-
{
|
|
4007
|
-
internalType: "uint256",
|
|
4008
|
-
name: "",
|
|
4009
|
-
type: "uint256"
|
|
4010
|
-
}
|
|
4011
|
-
],
|
|
4097
|
+
name: "bonusEndBlock",
|
|
4098
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
4012
4099
|
stateMutability: "view",
|
|
4013
4100
|
type: "function"
|
|
4014
4101
|
},
|
|
4015
4102
|
{
|
|
4016
|
-
inputs: [
|
|
4017
|
-
|
|
4018
|
-
internalType: "address",
|
|
4019
|
-
name: "_tokenAddress",
|
|
4020
|
-
type: "address"
|
|
4021
|
-
},
|
|
4022
|
-
{
|
|
4023
|
-
internalType: "uint256",
|
|
4024
|
-
name: "_tokenAmount",
|
|
4025
|
-
type: "uint256"
|
|
4026
|
-
}
|
|
4027
|
-
],
|
|
4028
|
-
name: "recoverWrongTokens",
|
|
4103
|
+
inputs: [{ internalType: "uint256", name: "_amount", type: "uint256" }],
|
|
4104
|
+
name: "deposit",
|
|
4029
4105
|
outputs: [],
|
|
4030
4106
|
stateMutability: "nonpayable",
|
|
4031
4107
|
type: "function"
|
|
4032
4108
|
},
|
|
4033
4109
|
{
|
|
4034
|
-
inputs: [],
|
|
4035
|
-
name: "
|
|
4110
|
+
inputs: [{ internalType: "uint256", name: "_amount", type: "uint256" }],
|
|
4111
|
+
name: "emergencyRewardWithdraw",
|
|
4036
4112
|
outputs: [],
|
|
4037
4113
|
stateMutability: "nonpayable",
|
|
4038
4114
|
type: "function"
|
|
4039
4115
|
},
|
|
4116
|
+
{ inputs: [], name: "emergencyWithdraw", outputs: [], stateMutability: "nonpayable", type: "function" },
|
|
4040
4117
|
{
|
|
4041
|
-
inputs: [
|
|
4042
|
-
|
|
4043
|
-
|
|
4044
|
-
{
|
|
4045
|
-
internalType: "uint256",
|
|
4046
|
-
name: "",
|
|
4047
|
-
type: "uint256"
|
|
4048
|
-
}
|
|
4118
|
+
inputs: [
|
|
4119
|
+
{ internalType: "uint256", name: "_from", type: "uint256" },
|
|
4120
|
+
{ internalType: "uint256", name: "_to", type: "uint256" }
|
|
4049
4121
|
],
|
|
4122
|
+
name: "getMultiplier",
|
|
4123
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
4050
4124
|
stateMutability: "view",
|
|
4051
4125
|
type: "function"
|
|
4052
4126
|
},
|
|
4127
|
+
{ inputs: [], name: "massUpdatePools", outputs: [], stateMutability: "nonpayable", type: "function" },
|
|
4053
4128
|
{
|
|
4054
4129
|
inputs: [],
|
|
4055
|
-
name: "
|
|
4056
|
-
outputs: [
|
|
4057
|
-
{
|
|
4058
|
-
internalType: "contract IBEP20",
|
|
4059
|
-
name: "",
|
|
4060
|
-
type: "address"
|
|
4061
|
-
}
|
|
4062
|
-
],
|
|
4130
|
+
name: "owner",
|
|
4131
|
+
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
4063
4132
|
stateMutability: "view",
|
|
4064
4133
|
type: "function"
|
|
4065
4134
|
},
|
|
4066
4135
|
{
|
|
4067
|
-
inputs: [],
|
|
4068
|
-
name: "
|
|
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",
|
|
4069
4145
|
outputs: [
|
|
4070
|
-
{
|
|
4071
|
-
|
|
4072
|
-
|
|
4073
|
-
|
|
4074
|
-
}
|
|
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" }
|
|
4075
4150
|
],
|
|
4076
4151
|
stateMutability: "view",
|
|
4077
4152
|
type: "function"
|
|
4078
4153
|
},
|
|
4154
|
+
{ inputs: [], name: "renounceOwnership", outputs: [], stateMutability: "nonpayable", type: "function" },
|
|
4079
4155
|
{
|
|
4080
4156
|
inputs: [],
|
|
4081
|
-
name: "
|
|
4082
|
-
outputs: [
|
|
4083
|
-
{
|
|
4084
|
-
internalType: "uint256",
|
|
4085
|
-
name: "",
|
|
4086
|
-
type: "uint256"
|
|
4087
|
-
}
|
|
4088
|
-
],
|
|
4157
|
+
name: "rewardPerBlock",
|
|
4158
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
4089
4159
|
stateMutability: "view",
|
|
4090
4160
|
type: "function"
|
|
4091
4161
|
},
|
|
4092
4162
|
{
|
|
4093
4163
|
inputs: [],
|
|
4094
|
-
name: "
|
|
4095
|
-
outputs: [],
|
|
4096
|
-
stateMutability: "
|
|
4164
|
+
name: "rewardToken",
|
|
4165
|
+
outputs: [{ internalType: "contract IBEP20", name: "", type: "address" }],
|
|
4166
|
+
stateMutability: "view",
|
|
4097
4167
|
type: "function"
|
|
4098
4168
|
},
|
|
4099
4169
|
{
|
|
4100
|
-
inputs: [
|
|
4101
|
-
|
|
4102
|
-
|
|
4103
|
-
|
|
4104
|
-
type: "address"
|
|
4105
|
-
}
|
|
4106
|
-
],
|
|
4107
|
-
name: "transferOwnership",
|
|
4108
|
-
outputs: [],
|
|
4109
|
-
stateMutability: "nonpayable",
|
|
4170
|
+
inputs: [],
|
|
4171
|
+
name: "startBlock",
|
|
4172
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
4173
|
+
stateMutability: "view",
|
|
4110
4174
|
type: "function"
|
|
4111
4175
|
},
|
|
4176
|
+
{ inputs: [], name: "stopReward", outputs: [], stateMutability: "nonpayable", type: "function" },
|
|
4112
4177
|
{
|
|
4113
|
-
inputs: [
|
|
4114
|
-
|
|
4115
|
-
|
|
4116
|
-
|
|
4117
|
-
type: "bool"
|
|
4118
|
-
},
|
|
4119
|
-
{
|
|
4120
|
-
internalType: "uint256",
|
|
4121
|
-
name: "_poolLimitPerUser",
|
|
4122
|
-
type: "uint256"
|
|
4123
|
-
}
|
|
4124
|
-
],
|
|
4125
|
-
name: "updatePoolLimitPerUser",
|
|
4126
|
-
outputs: [],
|
|
4127
|
-
stateMutability: "nonpayable",
|
|
4178
|
+
inputs: [],
|
|
4179
|
+
name: "syrup",
|
|
4180
|
+
outputs: [{ internalType: "contract IBEP20", name: "", type: "address" }],
|
|
4181
|
+
stateMutability: "view",
|
|
4128
4182
|
type: "function"
|
|
4129
4183
|
},
|
|
4130
4184
|
{
|
|
4131
|
-
inputs: [
|
|
4132
|
-
|
|
4133
|
-
internalType: "uint256",
|
|
4134
|
-
name: "_rewardPerBlock",
|
|
4135
|
-
type: "uint256"
|
|
4136
|
-
}
|
|
4137
|
-
],
|
|
4138
|
-
name: "updateRewardPerBlock",
|
|
4185
|
+
inputs: [{ internalType: "address", name: "newOwner", type: "address" }],
|
|
4186
|
+
name: "transferOwnership",
|
|
4139
4187
|
outputs: [],
|
|
4140
4188
|
stateMutability: "nonpayable",
|
|
4141
4189
|
type: "function"
|
|
4142
4190
|
},
|
|
4143
4191
|
{
|
|
4144
|
-
inputs: [
|
|
4145
|
-
|
|
4146
|
-
internalType: "uint256",
|
|
4147
|
-
name: "_startBlock",
|
|
4148
|
-
type: "uint256"
|
|
4149
|
-
},
|
|
4150
|
-
{
|
|
4151
|
-
internalType: "uint256",
|
|
4152
|
-
name: "_bonusEndBlock",
|
|
4153
|
-
type: "uint256"
|
|
4154
|
-
}
|
|
4155
|
-
],
|
|
4156
|
-
name: "updateStartAndEndBlocks",
|
|
4192
|
+
inputs: [{ internalType: "uint256", name: "_pid", type: "uint256" }],
|
|
4193
|
+
name: "updatePool",
|
|
4157
4194
|
outputs: [],
|
|
4158
4195
|
stateMutability: "nonpayable",
|
|
4159
4196
|
type: "function"
|
|
4160
4197
|
},
|
|
4161
4198
|
{
|
|
4162
|
-
inputs: [
|
|
4163
|
-
{
|
|
4164
|
-
internalType: "address",
|
|
4165
|
-
name: "",
|
|
4166
|
-
type: "address"
|
|
4167
|
-
}
|
|
4168
|
-
],
|
|
4199
|
+
inputs: [{ internalType: "address", name: "", type: "address" }],
|
|
4169
4200
|
name: "userInfo",
|
|
4170
4201
|
outputs: [
|
|
4171
|
-
{
|
|
4172
|
-
|
|
4173
|
-
name: "amount",
|
|
4174
|
-
type: "uint256"
|
|
4175
|
-
},
|
|
4176
|
-
{
|
|
4177
|
-
internalType: "uint256",
|
|
4178
|
-
name: "rewardDebt",
|
|
4179
|
-
type: "uint256"
|
|
4180
|
-
}
|
|
4202
|
+
{ internalType: "uint256", name: "amount", type: "uint256" },
|
|
4203
|
+
{ internalType: "uint256", name: "rewardDebt", type: "uint256" }
|
|
4181
4204
|
],
|
|
4182
4205
|
stateMutability: "view",
|
|
4183
4206
|
type: "function"
|
|
4184
4207
|
},
|
|
4185
4208
|
{
|
|
4186
|
-
inputs: [
|
|
4187
|
-
{
|
|
4188
|
-
internalType: "uint256",
|
|
4189
|
-
name: "_amount",
|
|
4190
|
-
type: "uint256"
|
|
4191
|
-
}
|
|
4192
|
-
],
|
|
4209
|
+
inputs: [{ internalType: "uint256", name: "_amount", type: "uint256" }],
|
|
4193
4210
|
name: "withdraw",
|
|
4194
4211
|
outputs: [],
|
|
4195
4212
|
stateMutability: "nonpayable",
|
|
@@ -4197,327 +4214,342 @@ var sousChefV2ABI = [
|
|
|
4197
4214
|
}
|
|
4198
4215
|
];
|
|
4199
4216
|
|
|
4200
|
-
// src/abis/
|
|
4201
|
-
var
|
|
4202
|
-
{
|
|
4203
|
-
inputs: [
|
|
4204
|
-
{ internalType: "address", name: "_pancakeProfile", type: "address" },
|
|
4205
|
-
{ internalType: "bool", name: "_pancakeProfileIsRequested", type: "bool" },
|
|
4206
|
-
{ internalType: "uint256", name: "_pancakeProfileThresholdPoints", type: "uint256" }
|
|
4207
|
-
],
|
|
4208
|
-
stateMutability: "nonpayable",
|
|
4209
|
-
type: "constructor"
|
|
4210
|
-
},
|
|
4211
|
-
{
|
|
4212
|
-
anonymous: false,
|
|
4213
|
-
inputs: [
|
|
4214
|
-
{ indexed: true, internalType: "address", name: "user", type: "address" },
|
|
4215
|
-
{ indexed: false, internalType: "uint256", name: "amount", type: "uint256" }
|
|
4216
|
-
],
|
|
4217
|
-
name: "Deposit",
|
|
4218
|
-
type: "event"
|
|
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: "EmergencyWithdraw",
|
|
4227
|
-
type: "event"
|
|
4228
|
-
},
|
|
4229
|
-
{
|
|
4230
|
-
anonymous: false,
|
|
4231
|
-
inputs: [{ indexed: false, internalType: "uint256", name: "poolLimitPerUser", type: "uint256" }],
|
|
4232
|
-
name: "NewPoolLimit",
|
|
4233
|
-
type: "event"
|
|
4234
|
-
},
|
|
4235
|
-
{
|
|
4236
|
-
anonymous: false,
|
|
4237
|
-
inputs: [{ indexed: false, internalType: "uint256", name: "rewardPerSecond", type: "uint256" }],
|
|
4238
|
-
name: "NewRewardPerSecond",
|
|
4239
|
-
type: "event"
|
|
4240
|
-
},
|
|
4241
|
-
{
|
|
4242
|
-
anonymous: false,
|
|
4243
|
-
inputs: [
|
|
4244
|
-
{ indexed: false, internalType: "uint256", name: "startTimestamp", type: "uint256" },
|
|
4245
|
-
{ indexed: false, internalType: "uint256", name: "endTimestamp", type: "uint256" }
|
|
4246
|
-
],
|
|
4247
|
-
name: "NewStartAndEndTimestamp",
|
|
4248
|
-
type: "event"
|
|
4249
|
-
},
|
|
4250
|
-
{
|
|
4251
|
-
anonymous: false,
|
|
4252
|
-
inputs: [
|
|
4253
|
-
{ indexed: true, internalType: "address", name: "previousOwner", type: "address" },
|
|
4254
|
-
{ indexed: true, internalType: "address", name: "newOwner", type: "address" }
|
|
4255
|
-
],
|
|
4256
|
-
name: "OwnershipTransferred",
|
|
4257
|
-
type: "event"
|
|
4258
|
-
},
|
|
4259
|
-
{
|
|
4260
|
-
anonymous: false,
|
|
4261
|
-
inputs: [{ indexed: false, internalType: "uint256", name: "blockNumber", type: "uint256" }],
|
|
4262
|
-
name: "RewardsStop",
|
|
4263
|
-
type: "event"
|
|
4264
|
-
},
|
|
4265
|
-
{
|
|
4266
|
-
anonymous: false,
|
|
4267
|
-
inputs: [
|
|
4268
|
-
{ indexed: true, internalType: "address", name: "token", type: "address" },
|
|
4269
|
-
{ indexed: false, internalType: "uint256", name: "amount", type: "uint256" }
|
|
4270
|
-
],
|
|
4271
|
-
name: "TokenRecovery",
|
|
4272
|
-
type: "event"
|
|
4273
|
-
},
|
|
4274
|
-
{
|
|
4275
|
-
anonymous: false,
|
|
4276
|
-
inputs: [
|
|
4277
|
-
{ indexed: false, internalType: "bool", name: "isProfileRequested", type: "bool" },
|
|
4278
|
-
{ indexed: false, internalType: "uint256", name: "thresholdPoints", type: "uint256" }
|
|
4279
|
-
],
|
|
4280
|
-
name: "UpdateProfileAndThresholdPointsRequirement",
|
|
4281
|
-
type: "event"
|
|
4282
|
-
},
|
|
4283
|
-
{
|
|
4284
|
-
anonymous: false,
|
|
4285
|
-
inputs: [
|
|
4286
|
-
{ indexed: true, internalType: "address", name: "user", type: "address" },
|
|
4287
|
-
{ indexed: false, internalType: "uint256", name: "amount", type: "uint256" }
|
|
4288
|
-
],
|
|
4289
|
-
name: "Withdraw",
|
|
4290
|
-
type: "event"
|
|
4291
|
-
},
|
|
4217
|
+
// src/abis/ISousChefV2.ts
|
|
4218
|
+
var sousChefV2ABI = [
|
|
4292
4219
|
{
|
|
4293
4220
|
inputs: [],
|
|
4294
4221
|
name: "PRECISION_FACTOR",
|
|
4295
|
-
outputs: [
|
|
4296
|
-
|
|
4297
|
-
|
|
4298
|
-
|
|
4299
|
-
|
|
4300
|
-
|
|
4301
|
-
|
|
4302
|
-
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
4222
|
+
outputs: [
|
|
4223
|
+
{
|
|
4224
|
+
internalType: "uint256",
|
|
4225
|
+
name: "",
|
|
4226
|
+
type: "uint256"
|
|
4227
|
+
}
|
|
4228
|
+
],
|
|
4303
4229
|
stateMutability: "view",
|
|
4304
4230
|
type: "function"
|
|
4305
4231
|
},
|
|
4306
4232
|
{
|
|
4307
4233
|
inputs: [],
|
|
4308
4234
|
name: "accTokenPerShare",
|
|
4309
|
-
outputs: [
|
|
4310
|
-
|
|
4311
|
-
|
|
4312
|
-
|
|
4313
|
-
|
|
4314
|
-
|
|
4315
|
-
|
|
4316
|
-
outputs: [],
|
|
4317
|
-
stateMutability: "nonpayable",
|
|
4318
|
-
type: "function"
|
|
4319
|
-
},
|
|
4320
|
-
{
|
|
4321
|
-
inputs: [{ internalType: "uint256", name: "_amount", type: "uint256" }],
|
|
4322
|
-
name: "emergencyRewardWithdraw",
|
|
4323
|
-
outputs: [],
|
|
4324
|
-
stateMutability: "nonpayable",
|
|
4325
|
-
type: "function"
|
|
4326
|
-
},
|
|
4327
|
-
{ inputs: [], name: "emergencyWithdraw", outputs: [], stateMutability: "nonpayable", type: "function" },
|
|
4328
|
-
{
|
|
4329
|
-
inputs: [],
|
|
4330
|
-
name: "endTimestamp",
|
|
4331
|
-
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
4235
|
+
outputs: [
|
|
4236
|
+
{
|
|
4237
|
+
internalType: "uint256",
|
|
4238
|
+
name: "",
|
|
4239
|
+
type: "uint256"
|
|
4240
|
+
}
|
|
4241
|
+
],
|
|
4332
4242
|
stateMutability: "view",
|
|
4333
4243
|
type: "function"
|
|
4334
4244
|
},
|
|
4335
4245
|
{
|
|
4336
4246
|
inputs: [],
|
|
4337
|
-
name: "
|
|
4338
|
-
outputs: [
|
|
4247
|
+
name: "bonusEndBlock",
|
|
4248
|
+
outputs: [
|
|
4249
|
+
{
|
|
4250
|
+
internalType: "uint256",
|
|
4251
|
+
name: "",
|
|
4252
|
+
type: "uint256"
|
|
4253
|
+
}
|
|
4254
|
+
],
|
|
4339
4255
|
stateMutability: "view",
|
|
4340
4256
|
type: "function"
|
|
4341
4257
|
},
|
|
4342
4258
|
{
|
|
4343
4259
|
inputs: [
|
|
4344
|
-
{
|
|
4345
|
-
|
|
4346
|
-
|
|
4347
|
-
|
|
4348
|
-
|
|
4349
|
-
{ internalType: "uint256", name: "_poolLimitPerUser", type: "uint256" },
|
|
4350
|
-
{ internalType: "uint256", name: "_numberSecondsForUserLimit", type: "uint256" },
|
|
4351
|
-
{ internalType: "address", name: "_admin", type: "address" }
|
|
4260
|
+
{
|
|
4261
|
+
internalType: "uint256",
|
|
4262
|
+
name: "_amount",
|
|
4263
|
+
type: "uint256"
|
|
4264
|
+
}
|
|
4352
4265
|
],
|
|
4353
|
-
name: "
|
|
4266
|
+
name: "deposit",
|
|
4354
4267
|
outputs: [],
|
|
4355
4268
|
stateMutability: "nonpayable",
|
|
4356
4269
|
type: "function"
|
|
4357
4270
|
},
|
|
4358
4271
|
{
|
|
4359
|
-
inputs: [
|
|
4360
|
-
|
|
4361
|
-
|
|
4362
|
-
|
|
4363
|
-
|
|
4364
|
-
|
|
4365
|
-
|
|
4366
|
-
|
|
4367
|
-
|
|
4368
|
-
|
|
4369
|
-
stateMutability: "view",
|
|
4272
|
+
inputs: [
|
|
4273
|
+
{
|
|
4274
|
+
internalType: "uint256",
|
|
4275
|
+
name: "_amount",
|
|
4276
|
+
type: "uint256"
|
|
4277
|
+
}
|
|
4278
|
+
],
|
|
4279
|
+
name: "emergencyRewardWithdraw",
|
|
4280
|
+
outputs: [],
|
|
4281
|
+
stateMutability: "nonpayable",
|
|
4370
4282
|
type: "function"
|
|
4371
4283
|
},
|
|
4372
4284
|
{
|
|
4373
4285
|
inputs: [],
|
|
4374
|
-
name: "
|
|
4375
|
-
outputs: [
|
|
4376
|
-
stateMutability: "
|
|
4286
|
+
name: "emergencyWithdraw",
|
|
4287
|
+
outputs: [],
|
|
4288
|
+
stateMutability: "nonpayable",
|
|
4377
4289
|
type: "function"
|
|
4378
4290
|
},
|
|
4379
4291
|
{
|
|
4380
4292
|
inputs: [],
|
|
4381
|
-
name: "
|
|
4382
|
-
outputs: [
|
|
4293
|
+
name: "hasUserLimit",
|
|
4294
|
+
outputs: [
|
|
4295
|
+
{
|
|
4296
|
+
internalType: "bool",
|
|
4297
|
+
name: "",
|
|
4298
|
+
type: "bool"
|
|
4299
|
+
}
|
|
4300
|
+
],
|
|
4383
4301
|
stateMutability: "view",
|
|
4384
4302
|
type: "function"
|
|
4385
4303
|
},
|
|
4386
4304
|
{
|
|
4387
4305
|
inputs: [],
|
|
4388
|
-
name: "
|
|
4389
|
-
outputs: [
|
|
4306
|
+
name: "lastRewardBlock",
|
|
4307
|
+
outputs: [
|
|
4308
|
+
{
|
|
4309
|
+
internalType: "uint256",
|
|
4310
|
+
name: "",
|
|
4311
|
+
type: "uint256"
|
|
4312
|
+
}
|
|
4313
|
+
],
|
|
4390
4314
|
stateMutability: "view",
|
|
4391
4315
|
type: "function"
|
|
4392
4316
|
},
|
|
4393
4317
|
{
|
|
4394
4318
|
inputs: [],
|
|
4395
|
-
name: "
|
|
4396
|
-
outputs: [
|
|
4319
|
+
name: "numberBlocksForUserLimit",
|
|
4320
|
+
outputs: [
|
|
4321
|
+
{
|
|
4322
|
+
internalType: "uint256",
|
|
4323
|
+
name: "",
|
|
4324
|
+
type: "uint256"
|
|
4325
|
+
}
|
|
4326
|
+
],
|
|
4397
4327
|
stateMutability: "view",
|
|
4398
4328
|
type: "function"
|
|
4399
4329
|
},
|
|
4400
4330
|
{
|
|
4401
4331
|
inputs: [],
|
|
4402
|
-
name: "
|
|
4403
|
-
outputs: [
|
|
4332
|
+
name: "owner",
|
|
4333
|
+
outputs: [
|
|
4334
|
+
{
|
|
4335
|
+
internalType: "address",
|
|
4336
|
+
name: "",
|
|
4337
|
+
type: "address"
|
|
4338
|
+
}
|
|
4339
|
+
],
|
|
4404
4340
|
stateMutability: "view",
|
|
4405
4341
|
type: "function"
|
|
4406
4342
|
},
|
|
4407
4343
|
{
|
|
4408
|
-
inputs: [
|
|
4344
|
+
inputs: [
|
|
4345
|
+
{
|
|
4346
|
+
internalType: "address",
|
|
4347
|
+
name: "_user",
|
|
4348
|
+
type: "address"
|
|
4349
|
+
}
|
|
4350
|
+
],
|
|
4409
4351
|
name: "pendingReward",
|
|
4410
|
-
outputs: [
|
|
4352
|
+
outputs: [
|
|
4353
|
+
{
|
|
4354
|
+
internalType: "uint256",
|
|
4355
|
+
name: "",
|
|
4356
|
+
type: "uint256"
|
|
4357
|
+
}
|
|
4358
|
+
],
|
|
4411
4359
|
stateMutability: "view",
|
|
4412
4360
|
type: "function"
|
|
4413
4361
|
},
|
|
4414
4362
|
{
|
|
4415
4363
|
inputs: [],
|
|
4416
4364
|
name: "poolLimitPerUser",
|
|
4417
|
-
outputs: [
|
|
4365
|
+
outputs: [
|
|
4366
|
+
{
|
|
4367
|
+
internalType: "uint256",
|
|
4368
|
+
name: "",
|
|
4369
|
+
type: "uint256"
|
|
4370
|
+
}
|
|
4371
|
+
],
|
|
4418
4372
|
stateMutability: "view",
|
|
4419
4373
|
type: "function"
|
|
4420
4374
|
},
|
|
4421
4375
|
{
|
|
4422
|
-
inputs: [
|
|
4423
|
-
|
|
4376
|
+
inputs: [
|
|
4377
|
+
{
|
|
4378
|
+
internalType: "address",
|
|
4379
|
+
name: "_tokenAddress",
|
|
4380
|
+
type: "address"
|
|
4381
|
+
},
|
|
4382
|
+
{
|
|
4383
|
+
internalType: "uint256",
|
|
4384
|
+
name: "_tokenAmount",
|
|
4385
|
+
type: "uint256"
|
|
4386
|
+
}
|
|
4387
|
+
],
|
|
4388
|
+
name: "recoverWrongTokens",
|
|
4424
4389
|
outputs: [],
|
|
4425
4390
|
stateMutability: "nonpayable",
|
|
4426
4391
|
type: "function"
|
|
4427
4392
|
},
|
|
4428
|
-
{ inputs: [], name: "renounceOwnership", outputs: [], stateMutability: "nonpayable", type: "function" },
|
|
4429
4393
|
{
|
|
4430
4394
|
inputs: [],
|
|
4431
|
-
name: "
|
|
4432
|
-
outputs: [
|
|
4395
|
+
name: "renounceOwnership",
|
|
4396
|
+
outputs: [],
|
|
4397
|
+
stateMutability: "nonpayable",
|
|
4398
|
+
type: "function"
|
|
4399
|
+
},
|
|
4400
|
+
{
|
|
4401
|
+
inputs: [],
|
|
4402
|
+
name: "rewardPerBlock",
|
|
4403
|
+
outputs: [
|
|
4404
|
+
{
|
|
4405
|
+
internalType: "uint256",
|
|
4406
|
+
name: "",
|
|
4407
|
+
type: "uint256"
|
|
4408
|
+
}
|
|
4409
|
+
],
|
|
4433
4410
|
stateMutability: "view",
|
|
4434
4411
|
type: "function"
|
|
4435
4412
|
},
|
|
4436
4413
|
{
|
|
4437
4414
|
inputs: [],
|
|
4438
4415
|
name: "rewardToken",
|
|
4439
|
-
outputs: [
|
|
4416
|
+
outputs: [
|
|
4417
|
+
{
|
|
4418
|
+
internalType: "contract IBEP20",
|
|
4419
|
+
name: "",
|
|
4420
|
+
type: "address"
|
|
4421
|
+
}
|
|
4422
|
+
],
|
|
4440
4423
|
stateMutability: "view",
|
|
4441
4424
|
type: "function"
|
|
4442
4425
|
},
|
|
4443
4426
|
{
|
|
4444
4427
|
inputs: [],
|
|
4445
4428
|
name: "stakedToken",
|
|
4446
|
-
outputs: [
|
|
4429
|
+
outputs: [
|
|
4430
|
+
{
|
|
4431
|
+
internalType: "contract IBEP20",
|
|
4432
|
+
name: "",
|
|
4433
|
+
type: "address"
|
|
4434
|
+
}
|
|
4435
|
+
],
|
|
4447
4436
|
stateMutability: "view",
|
|
4448
4437
|
type: "function"
|
|
4449
4438
|
},
|
|
4450
4439
|
{
|
|
4451
4440
|
inputs: [],
|
|
4452
|
-
name: "
|
|
4453
|
-
outputs: [
|
|
4441
|
+
name: "startBlock",
|
|
4442
|
+
outputs: [
|
|
4443
|
+
{
|
|
4444
|
+
internalType: "uint256",
|
|
4445
|
+
name: "",
|
|
4446
|
+
type: "uint256"
|
|
4447
|
+
}
|
|
4448
|
+
],
|
|
4454
4449
|
stateMutability: "view",
|
|
4455
4450
|
type: "function"
|
|
4456
4451
|
},
|
|
4457
|
-
{ inputs: [], name: "stopReward", outputs: [], stateMutability: "nonpayable", type: "function" },
|
|
4458
4452
|
{
|
|
4459
|
-
inputs: [
|
|
4460
|
-
name: "
|
|
4453
|
+
inputs: [],
|
|
4454
|
+
name: "stopReward",
|
|
4461
4455
|
outputs: [],
|
|
4462
4456
|
stateMutability: "nonpayable",
|
|
4463
4457
|
type: "function"
|
|
4464
4458
|
},
|
|
4465
4459
|
{
|
|
4466
4460
|
inputs: [
|
|
4467
|
-
{
|
|
4468
|
-
|
|
4461
|
+
{
|
|
4462
|
+
internalType: "address",
|
|
4463
|
+
name: "newOwner",
|
|
4464
|
+
type: "address"
|
|
4465
|
+
}
|
|
4469
4466
|
],
|
|
4470
|
-
name: "
|
|
4467
|
+
name: "transferOwnership",
|
|
4471
4468
|
outputs: [],
|
|
4472
4469
|
stateMutability: "nonpayable",
|
|
4473
4470
|
type: "function"
|
|
4474
4471
|
},
|
|
4475
4472
|
{
|
|
4476
4473
|
inputs: [
|
|
4477
|
-
{
|
|
4478
|
-
|
|
4474
|
+
{
|
|
4475
|
+
internalType: "bool",
|
|
4476
|
+
name: "_hasUserLimit",
|
|
4477
|
+
type: "bool"
|
|
4478
|
+
},
|
|
4479
|
+
{
|
|
4480
|
+
internalType: "uint256",
|
|
4481
|
+
name: "_poolLimitPerUser",
|
|
4482
|
+
type: "uint256"
|
|
4483
|
+
}
|
|
4479
4484
|
],
|
|
4480
|
-
name: "
|
|
4485
|
+
name: "updatePoolLimitPerUser",
|
|
4481
4486
|
outputs: [],
|
|
4482
4487
|
stateMutability: "nonpayable",
|
|
4483
4488
|
type: "function"
|
|
4484
4489
|
},
|
|
4485
4490
|
{
|
|
4486
|
-
inputs: [
|
|
4487
|
-
|
|
4491
|
+
inputs: [
|
|
4492
|
+
{
|
|
4493
|
+
internalType: "uint256",
|
|
4494
|
+
name: "_rewardPerBlock",
|
|
4495
|
+
type: "uint256"
|
|
4496
|
+
}
|
|
4497
|
+
],
|
|
4498
|
+
name: "updateRewardPerBlock",
|
|
4488
4499
|
outputs: [],
|
|
4489
4500
|
stateMutability: "nonpayable",
|
|
4490
4501
|
type: "function"
|
|
4491
4502
|
},
|
|
4492
4503
|
{
|
|
4493
4504
|
inputs: [
|
|
4494
|
-
{
|
|
4495
|
-
|
|
4505
|
+
{
|
|
4506
|
+
internalType: "uint256",
|
|
4507
|
+
name: "_startBlock",
|
|
4508
|
+
type: "uint256"
|
|
4509
|
+
},
|
|
4510
|
+
{
|
|
4511
|
+
internalType: "uint256",
|
|
4512
|
+
name: "_bonusEndBlock",
|
|
4513
|
+
type: "uint256"
|
|
4514
|
+
}
|
|
4496
4515
|
],
|
|
4497
|
-
name: "
|
|
4516
|
+
name: "updateStartAndEndBlocks",
|
|
4498
4517
|
outputs: [],
|
|
4499
4518
|
stateMutability: "nonpayable",
|
|
4500
4519
|
type: "function"
|
|
4501
4520
|
},
|
|
4502
4521
|
{
|
|
4503
|
-
inputs: [
|
|
4522
|
+
inputs: [
|
|
4523
|
+
{
|
|
4524
|
+
internalType: "address",
|
|
4525
|
+
name: "",
|
|
4526
|
+
type: "address"
|
|
4527
|
+
}
|
|
4528
|
+
],
|
|
4504
4529
|
name: "userInfo",
|
|
4505
4530
|
outputs: [
|
|
4506
|
-
{
|
|
4507
|
-
|
|
4531
|
+
{
|
|
4532
|
+
internalType: "uint256",
|
|
4533
|
+
name: "amount",
|
|
4534
|
+
type: "uint256"
|
|
4535
|
+
},
|
|
4536
|
+
{
|
|
4537
|
+
internalType: "uint256",
|
|
4538
|
+
name: "rewardDebt",
|
|
4539
|
+
type: "uint256"
|
|
4540
|
+
}
|
|
4508
4541
|
],
|
|
4509
4542
|
stateMutability: "view",
|
|
4510
4543
|
type: "function"
|
|
4511
4544
|
},
|
|
4512
4545
|
{
|
|
4513
|
-
inputs: [
|
|
4514
|
-
|
|
4515
|
-
|
|
4516
|
-
|
|
4517
|
-
|
|
4518
|
-
|
|
4519
|
-
|
|
4520
|
-
inputs: [{ internalType: "uint256", name: "_amount", type: "uint256" }],
|
|
4546
|
+
inputs: [
|
|
4547
|
+
{
|
|
4548
|
+
internalType: "uint256",
|
|
4549
|
+
name: "_amount",
|
|
4550
|
+
type: "uint256"
|
|
4551
|
+
}
|
|
4552
|
+
],
|
|
4521
4553
|
name: "withdraw",
|
|
4522
4554
|
outputs: [],
|
|
4523
4555
|
stateMutability: "nonpayable",
|
|
@@ -5065,8 +5097,10 @@ function getSousChefBNBContract({
|
|
|
5065
5097
|
...getContract({
|
|
5066
5098
|
abi: sousChefBnbABI,
|
|
5067
5099
|
address,
|
|
5068
|
-
|
|
5069
|
-
|
|
5100
|
+
client: {
|
|
5101
|
+
public: publicClient,
|
|
5102
|
+
wallet: signer
|
|
5103
|
+
}
|
|
5070
5104
|
}),
|
|
5071
5105
|
abi: sousChefBnbABI,
|
|
5072
5106
|
address,
|
|
@@ -5083,8 +5117,10 @@ function getSousChefV2Contract({
|
|
|
5083
5117
|
...getContract({
|
|
5084
5118
|
abi: sousChefV2ABI,
|
|
5085
5119
|
address,
|
|
5086
|
-
|
|
5087
|
-
|
|
5120
|
+
client: {
|
|
5121
|
+
public: publicClient,
|
|
5122
|
+
wallet: signer
|
|
5123
|
+
}
|
|
5088
5124
|
}),
|
|
5089
5125
|
abi: sousChefV2ABI,
|
|
5090
5126
|
address,
|
|
@@ -5101,8 +5137,10 @@ function getSmartChefChefV2Contract({
|
|
|
5101
5137
|
...getContract({
|
|
5102
5138
|
abi: smartChefABI,
|
|
5103
5139
|
address,
|
|
5104
|
-
|
|
5105
|
-
|
|
5140
|
+
client: {
|
|
5141
|
+
public: publicClient,
|
|
5142
|
+
wallet: signer
|
|
5143
|
+
}
|
|
5106
5144
|
}),
|
|
5107
5145
|
abi: smartChefABI,
|
|
5108
5146
|
address,
|
|
@@ -5323,7 +5361,7 @@ var fetchPoolsTotalStaking = async (chainId, provider) => {
|
|
|
5323
5361
|
}
|
|
5324
5362
|
const poolsBalanceOf = poolsConfig.map(({ contractAddress, stakingToken }) => {
|
|
5325
5363
|
return {
|
|
5326
|
-
abi:
|
|
5364
|
+
abi: erc20Abi,
|
|
5327
5365
|
address: stakingToken.address,
|
|
5328
5366
|
functionName: "balanceOf",
|
|
5329
5367
|
args: [contractAddress]
|
|
@@ -5474,7 +5512,7 @@ var fetchPoolsAllowance = async ({ account, chainId, provider }) => {
|
|
|
5474
5512
|
contracts: nonBnbPools.map(
|
|
5475
5513
|
({ contractAddress, stakingToken }) => ({
|
|
5476
5514
|
address: stakingToken.address,
|
|
5477
|
-
abi:
|
|
5515
|
+
abi: erc20Abi,
|
|
5478
5516
|
functionName: "allowance",
|
|
5479
5517
|
args: [account, contractAddress]
|
|
5480
5518
|
})
|
|
@@ -5509,7 +5547,7 @@ var fetchUserBalances = async ({ account, chainId, provider }) => {
|
|
|
5509
5547
|
},
|
|
5510
5548
|
...tokens.map(
|
|
5511
5549
|
(token) => ({
|
|
5512
|
-
abi:
|
|
5550
|
+
abi: erc20Abi,
|
|
5513
5551
|
address: token,
|
|
5514
5552
|
functionName: "balanceOf",
|
|
5515
5553
|
args: [account]
|