-
Notifications
You must be signed in to change notification settings - Fork 0
/
VokenEarlyBirdData.sol
55 lines (43 loc) · 2.26 KB
/
VokenEarlyBirdData.sol
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
// SPDX-License-Identifier: MIT
pragma solidity =0.7.5;
interface IEarlyBirdSale {
function status() external view returns (uint256 vokenCap,
uint256 vokenTotalSupply,
uint256 vokenIssued,
uint256 vokenBonuses,
uint256 etherUSD,
uint256 vokenUSD,
uint256 weiMin,
uint256 weiMax);
function getAccountStatus(address account) external view returns (uint256 issued,
uint256 bonuses,
uint256 volume,
uint256 etherBalance,
uint256 vokenBalance,
uint160 voken,
address referrer,
uint160 referrerVoken);
function vestingOf(address account) external view returns (uint256);
}
contract VokenEarlyBirdData {
IEarlyBirdSale private immutable EARLY_BIRD_SALE = IEarlyBirdSale(0x1aaaa06374970dE748130EaccCdd2d0348E834c4);
function data(address account)
public
view
returns (
uint256 weiMin,
uint256 weiMax,
uint256 vokenPrice,
uint256 totalIssued,
uint256 totalBonuses,
uint256 issued,
uint256 bonuses,
uint256 vesting,
uint256 referred
)
{
(, , totalIssued, totalBonuses, , vokenPrice, weiMin, weiMax) = EARLY_BIRD_SALE.status();
(issued, bonuses, referred, , , , ,) = EARLY_BIRD_SALE.getAccountStatus(account);
vesting = EARLY_BIRD_SALE.vestingOf(account);
}
}