Crowdpool Structs
Description
The Crowdpool Structs
library defines the shared data structures used in the contract.
Structures
CrowdPoolInfo
struct CrowdPoolInfo {
address payable crowdpool_owner;
address pool_token;
uint256 token_rate;
uint256 pooled_min;
uint256 pooled_max;
uint256 hardcap;
uint256 softcap;
uint256 liqudity_percent;
uint256 listing_rate;
uint256 lock_end;
uint256 lock_start;
uint256 crowdpool_end;
uint256 crowdpool_start;
}
Represents the information related to a crowd pool.
crowdpool_owner
: The address of the crowd pool owner.pool_token
: The address of the token contract.token_rate
: The rate at which tokens are exchanged for 1 ETH.pooled_min
: The minimum ETH contribution per wallet.pooled_max
: The maximum ETH contribution per wallet.hardcap
: The maximum size of the ETH pool.softcap
: The minimum size of the ETH pool.liquidity_percent
: The percentage of the pool used for LP (divided by 1000).listing_rate
: The rate at which tokens are exchanged for 1 ETH at LP start.lock_end
: The timestamp for the end of the Uniswap lock period (e.g., 4 weeks).lock_start
: The timestamp for the start of the Uniswap lock period.crowdpool_end
: The end timestamp of the crowd pool period.crowdpool_start
: The start timestamp of the crowd pool period.
CrowdPoolLink
struct CrowdPoolLink {
string color;
string website_link;
string twitter_link;
string key_val;
string telegram_link;
}
Represents the links associated with a crowd pool.
color
: The token color used in auto token creation.website_link
: The URL for the token's website.twitter_link
: The Twitter URL for the token.key_val
: Optional key-value storage for future upgrades.telegram_link
: The Telegram URL for the token.