-
Notifications
You must be signed in to change notification settings - Fork 20
/
constants.ts
84 lines (78 loc) · 2.44 KB
/
constants.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
import { WalletEndpoint } from '@parrotfi/wallets'
import { web3 } from '@project-serum/anchor'
import BigNumber from 'bignumber.js'
import moment from 'moment'
export const NETWORK = process.env.NEXT_PUBLIC_NETWORK
export const VERSION = process.env.NEXT_PUBLIC_VERSION
/**
* Used for lending page countdown
*/
export const IDO_STARTS = moment(process.env.NEXT_PUBLIC_IDO_START)
export const RPC_ENDPOINTS: WalletEndpoint[] = [
{
id: 'parrot2',
network: 'mainnet-beta' as web3.Cluster,
rpcURL: 'https://lokidfxnwlabdq.main.genesysgo.net:8899/',
rpcName: 'GenesysGo RPC',
commitment: 'processed' as web3.Commitment,
},
{
id: 'parrot',
network: 'mainnet-beta' as web3.Cluster,
rpcURL: 'https://parrot.rpcpool.com',
rpcName: 'Triton RPC',
commitment: 'processed' as web3.Commitment,
},
{
id: 'serum',
network: 'mainnet-beta' as web3.Cluster,
rpcURL: 'https://solana-api.projectserum.com',
rpcName: 'Serum RPC',
commitment: 'processed' as web3.Commitment,
},
{
id: 'custom',
network: 'mainnet-beta' as web3.Cluster,
rpcURL: '',
rpcName: 'Custom RPC',
commitment: 'processed' as web3.Commitment,
},
// {
// id: 'devnet',
// network: 'devnet' as web3.Cluster,
// rpcURL: 'https://api.devnet.solana.com',
// rpcName: 'Solana Devnet',
// commitment: 'processed' as web3.Commitment,
// },
]
export const IDO_RESULTS = {
'5JGWQPf6zLhuxL4bXa8aWKPxakqVJMWbMf9TBaVWfpXD': {
contributed: 69229456.78,
allocation: new BigNumber(2.1).multipliedBy(0.8).multipliedBy(10 ** 9),
},
'9U8xzksWyGkKCAdf4yS49VftTKXk5sSurJn8xF1hcdqd': {
contributed: 15544369.99,
allocation: new BigNumber(2.1).multipliedBy(0.2).multipliedBy(10 ** 9),
},
}
export const IDO_ENDPOINTS = [
{
network: 'mainnet-beta' as web3.Cluster,
programId: '7r2chJLUU87eaM7T1aBi6f7g9BbtbgnwQ9kPbMGxJQWV',
usdcMint: 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v',
pools: [
'5JGWQPf6zLhuxL4bXa8aWKPxakqVJMWbMf9TBaVWfpXD', //Round 1
'9U8xzksWyGkKCAdf4yS49VftTKXk5sSurJn8xF1hcdqd', //Round 2
],
},
{
network: 'devnet' as web3.Cluster,
programId: '5s48HdiM1PjxqHDpGvZUVnX6eKbGbvN15rFHJ7RwxCv4',
usdcMint: 'G1Z261S3B2XQWCZo1qXJkEbeqkrcY1mVW3B3vMj5uqRq',
pools: [
'3ah8jT2jkHb3vhKGSxNK4Dm1XDY842vmJaTG8YaFtdyB',
'4qkLCR7JrkLCqfJ8iPKTBHGSsqvbY2EjVNeHx9iTdDSR',
],
},
]
export const DEFAULT_RPC = RPC_ENDPOINTS.find((i) => i.id === 'parrot2')