Skip to content

Commit c2855b8

Browse files
committed
2 parents 86e70fc + 6156ac7 commit c2855b8

File tree

2 files changed

+29
-20
lines changed

2 files changed

+29
-20
lines changed

src/localServer/workers/utilities/utilV2.ts

Lines changed: 27 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
// --------------------------------------------------------------------------------------------
32

43
const conet_holesky_rpc = 'https://rpc.conet.network'
@@ -16,6 +15,7 @@ const _ethRpc = ['https://rpc.ankr.com/eth', 'https://eth.llamarpc.com', 'https:
1615
const blast_mainnet1 = ['https://blast.din.dev/rpc', 'https://rpc.ankr.com/blast', 'https://blastl2-mainnet.public.blastapi.io', 'https://blast.blockpi.network/v1/rpc/public']
1716
const bsc_mainchain = 'https://bsc-dataseed.binance.org/'
1817
const tron_mainnet = 'https://api.trongrid.io/jsonrpc'
18+
1919
// --------------------------------------------------------------------------------------------
2020

2121
const ReferralsAddress_cancun = '0xbd67716ab31fc9691482a839117004497761D0b9'.toLowerCase()
@@ -38,8 +38,6 @@ const christmas2024ContractAddress = "0xb188e707f4544835aEe28E4206C65edfF23221C0
3838
const airdropContractAddress = "0xa0822b9fe34f81dd926ff1c182cb17baf50004f7";
3939
const conetDepinContractAddress = "0xc4C9927516db9BBe42DC0b003A7AB0946AC649C1";
4040

41-
const CONETIAN_PRICE = 100
42-
const GUARDIAN_PRICE = 1250
4341

4442
//const CNTPB_contract = '0x6056473ADD8bC89a95325845F6a431CCD7A849bb'
4543
// const Claimable_ETHUSDTv3 = '0x79E2EdE2F479fA7E44C89Bbaa721EB1f0d529b7B'.toLowerCase()
@@ -51,20 +49,6 @@ const GUARDIAN_PRICE = 1250
5149

5250
// --------------------------------------------------------------------------------------------
5351

54-
const FragmentNameDeriveChildIndex = 65536;
55-
const blast_mainnet = () => blast_mainnet1[Math.round(Math.random() * (blast_mainnet1.length - 1))];
56-
const ethRpc = () => _ethRpc[Math.round(Math.random() * (_ethRpc.length - 1))];
57-
let allNodes;
58-
let authorization_key = ''
59-
60-
const initV2 = async (profile) => {
61-
const url = `${apiv4_endpoint}initV3`
62-
const result = await postToEndpoint(url, true, { walletAddress: profile.keyID })
63-
return result
64-
}
65-
66-
// ******************************************************************
67-
6852
const cCNTP_Holesky_Addr = '0xa4b389994A591735332A67f3561D60ce96409347'.toLocaleLowerCase()
6953
const cCNTP_cancun_Addr = '0x6C7C575010F86A311673432319299F3D68e4b522'.toLocaleLowerCase()
7054
const profile_ver_addr = '0x20f8B4De2922d2e9d83B73f4561221d9278Af181'.toLowerCase()
@@ -92,6 +76,14 @@ const claimable_Arb_ETH = '0xF406385E1A0389Ae35684D27c3Ef2799E88E2c4A'
9276
const claimable_Arb_USDT = '0xF40A8EFc8Dd47929ba8Ee9d5B3f1534239E930Fe'
9377
const CONETianPlanAddr = "0x4F1F5c25429Ea458C9e4363F05110f668f20D58B";
9478

79+
//const CNTPB_contract = '0x6056473ADD8bC89a95325845F6a431CCD7A849bb'
80+
// const Claimable_ETHUSDTv3 = '0x79E2EdE2F479fA7E44C89Bbaa721EB1f0d529b7B'.toLowerCase()
81+
// const Claimable_BNBUSDTv3 = '0xd008D56aa9A963FAD8FB1FbA1997C28dB85933e6'.toLowerCase()
82+
// const Claimable_BlastUSDBv3 = '0x16cDB3C07Db1d58330FF0e930C3C58935CB6Cc97'.toLowerCase()
83+
//const Claimable_BlastETH = '0x47A10d4BBF904BCd550200CcBB6266fB88EB9804'.toLowerCase()
84+
// const Claimable_BNB = '0x8E7B1D5f6DF4B0d7576B7430ECB1bEEE0b612382'.toLowerCase()
85+
// const Claimable_ETH = '0x6Eb683B666310cC4E08f32896ad620E5F204c8f8'.toLowerCase()
86+
9587
const ConetianNftId = 0
9688
const ConetianReferrerNftId = 10
9789
const maxConetianNft = 30000
@@ -102,7 +94,24 @@ const GuardianReferrerNftId = 2
10294

10395
const GuardianPriceUSDT = 100
10496

105-
// ******************************************************************
97+
const CONETIAN_PRICE = 100;
98+
const GUARDIAN_PRICE = 1250;
99+
100+
// --------------------------------------------------------------------------------------------
101+
102+
const FragmentNameDeriveChildIndex = 65536;
103+
const blast_mainnet = () => blast_mainnet1[Math.round(Math.random() * (blast_mainnet1.length - 1))];
104+
const ethRpc = () => _ethRpc[Math.round(Math.random() * (_ethRpc.length - 1))];
105+
let allNodes;
106+
let authorization_key = ''
107+
108+
const initV2 = async (profile) => {
109+
const url = `${apiv4_endpoint}initV3`
110+
const result = await postToEndpoint(url, true, { walletAddress: profile.keyID })
111+
return result
112+
}
113+
114+
// --------------------------------------------------------------------------------------------
106115

107116
const nfts = {
108117
conetiannft: {

src/localServer/workers/utilities/web3Util.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3525,7 +3525,7 @@ const redeemAirdrop = async (cmd) => {
35253525

35263526
if (!profile?.tokens?.cCNTP?.balance) throw new Error("FAILURE");
35273527

3528-
if (parseFloat(profile?.tokens?.cCNTP?.balance) >= 0.001) {
3528+
if (parseFloat(profile?.tokens?.cCNTP?.balance) >= 0.00001) {
35293529
const ethInWei = ethers.parseEther(profile?.tokens?.cCNTP?.balance);
35303530
const approveTx = await cntpContract.approve(airdropContractAddress, ethInWei);
35313531
const approveReceipt = await approveTx.wait()
@@ -3541,7 +3541,7 @@ const redeemAirdrop = async (cmd) => {
35413541
try {
35423542
if (
35433543
canCntpAirdropTotal > 0 &&
3544-
parseFloat(profile?.tokens?.cCNTP?.balance) >= 0.001
3544+
parseFloat(profile?.tokens?.cCNTP?.balance) >= 0.00001
35453545
) {
35463546
const pendingCntpAirdropTx = await conetContract.CNTPAirBridgeAirdrop();
35473547
cmd.data.push(true);

0 commit comments

Comments
 (0)