-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2231e50
commit 72f8304
Showing
21 changed files
with
3,760 additions
and
851 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
96 changes: 48 additions & 48 deletions
96
legacy-contracts/farm-staking-proxy-legacy/tests/constants/mod.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,48 @@ | ||
// Pair constants | ||
|
||
pub const PAIR_WASM_PATH: &str = "pair/output/pair.wasm"; | ||
pub const WEGLD_TOKEN_ID: &[u8] = b"WEGLD-abcdef"; | ||
pub const RIDE_TOKEN_ID: &[u8] = b"RIDE-abcdef"; | ||
pub const LP_TOKEN_ID: &[u8] = b"LPTOK-abcdef"; // also farming token ID for LP farm | ||
|
||
pub const USER_TOTAL_WEGLD_TOKENS: u64 = 2_000_000_000; | ||
pub const USER_TOTAL_RIDE_TOKENS: u64 = 2_000_000_000; | ||
pub const USER_TOTAL_LP_TOKENS: u64 = 1_001_000_000; | ||
|
||
pub const BLOCK_NONCE_FIRST_ADD_LIQ: u64 = 5; | ||
pub const BLOCK_NONCE_SECOND_ADD_LIQ: u64 = 6; | ||
pub const BLOCK_NONCE_AFTER_PAIR_SETUP: u64 = 100; | ||
|
||
// LP farm constants | ||
|
||
pub const FARM_WASM_PATH: &str = "farm/output/farm.wasm"; | ||
pub const LP_FARM_TOKEN_ID: &[u8] = b"LPFARM-abcdef"; | ||
pub const DIVISION_SAFETY_CONSTANT: u64 = 1_000_000_000_000; | ||
pub const MIN_FARMING_EPOCHS: u8 = 2; | ||
pub const PENALTY_PERCENT: u64 = 10; | ||
pub const LP_FARM_PER_BLOCK_REWARD_AMOUNT: u64 = 5_000; | ||
|
||
// Energy factory constants | ||
|
||
pub const EPOCHS_IN_YEAR: u64 = 360; | ||
pub static MEX_TOKEN_ID: &[u8] = b"MEX-123456"; | ||
pub static LOCKED_TOKEN_ID: &[u8] = b"LOCKED-123456"; | ||
pub static LEGACY_LOCKED_TOKEN_ID: &[u8] = b"LEGACY-123456"; | ||
pub static LOCK_OPTIONS: &[u64] = &[EPOCHS_IN_YEAR, 5 * EPOCHS_IN_YEAR, 10 * EPOCHS_IN_YEAR]; // 1, 5 or 10 years | ||
pub static PENALTY_PERCENTAGES: &[u64] = &[4_000, 6_000, 8_000]; | ||
|
||
// Staking farm constants | ||
|
||
pub const STAKING_FARM_WASM_PATH: &str = "farm-staking/output/farm-staking.wasm"; | ||
pub const STAKING_REWARD_TOKEN_ID: &[u8] = RIDE_TOKEN_ID; | ||
pub const STAKING_TOKEN_ID: &[u8] = RIDE_TOKEN_ID; | ||
pub const STAKING_FARM_TOKEN_ID: &[u8] = b"STKFARM-abcdef"; | ||
pub const MAX_APR: u64 = 5_000; // 50% | ||
pub const UNBOND_EPOCHS: u64 = 10; | ||
pub const STAKING_FARM_PER_BLOCK_REWARD_AMOUNT: u64 = 1_000; | ||
pub const REWARD_CAPACITY: u64 = 1_000_000_000_000; | ||
|
||
// Proxy constants | ||
|
||
pub const PROXY_WASM_PATH: &str = "farm-staking-proxy/output/farm-staking-proxy"; | ||
pub const DUAL_YIELD_TOKEN_ID: &[u8] = b"DYIELD-abcdef"; | ||
// // Pair constants | ||
|
||
// pub const PAIR_WASM_PATH: &str = "pair/output/pair.wasm"; | ||
// pub const WEGLD_TOKEN_ID: &[u8] = b"WEGLD-abcdef"; | ||
// pub const RIDE_TOKEN_ID: &[u8] = b"RIDE-abcdef"; | ||
// pub const LP_TOKEN_ID: &[u8] = b"LPTOK-abcdef"; // also farming token ID for LP farm | ||
|
||
// pub const USER_TOTAL_WEGLD_TOKENS: u64 = 2_000_000_000; | ||
// pub const USER_TOTAL_RIDE_TOKENS: u64 = 2_000_000_000; | ||
// pub const USER_TOTAL_LP_TOKENS: u64 = 1_001_000_000; | ||
|
||
// pub const BLOCK_NONCE_FIRST_ADD_LIQ: u64 = 5; | ||
// pub const BLOCK_NONCE_SECOND_ADD_LIQ: u64 = 6; | ||
// pub const BLOCK_NONCE_AFTER_PAIR_SETUP: u64 = 100; | ||
|
||
// // LP farm constants | ||
|
||
// pub const FARM_WASM_PATH: &str = "farm/output/farm.wasm"; | ||
// pub const LP_FARM_TOKEN_ID: &[u8] = b"LPFARM-abcdef"; | ||
// pub const DIVISION_SAFETY_CONSTANT: u64 = 1_000_000_000_000; | ||
// pub const MIN_FARMING_EPOCHS: u8 = 2; | ||
// pub const PENALTY_PERCENT: u64 = 10; | ||
// pub const LP_FARM_PER_BLOCK_REWARD_AMOUNT: u64 = 5_000; | ||
|
||
// // Energy factory constants | ||
|
||
// pub const EPOCHS_IN_YEAR: u64 = 360; | ||
// pub static MEX_TOKEN_ID: &[u8] = b"MEX-123456"; | ||
// pub static LOCKED_TOKEN_ID: &[u8] = b"LOCKED-123456"; | ||
// pub static LEGACY_LOCKED_TOKEN_ID: &[u8] = b"LEGACY-123456"; | ||
// pub static LOCK_OPTIONS: &[u64] = &[EPOCHS_IN_YEAR, 5 * EPOCHS_IN_YEAR, 10 * EPOCHS_IN_YEAR]; // 1, 5 or 10 years | ||
// pub static PENALTY_PERCENTAGES: &[u64] = &[4_000, 6_000, 8_000]; | ||
|
||
// // Staking farm constants | ||
|
||
// pub const STAKING_FARM_WASM_PATH: &str = "farm-staking/output/farm-staking.wasm"; | ||
// pub const STAKING_REWARD_TOKEN_ID: &[u8] = RIDE_TOKEN_ID; | ||
// pub const STAKING_TOKEN_ID: &[u8] = RIDE_TOKEN_ID; | ||
// pub const STAKING_FARM_TOKEN_ID: &[u8] = b"STKFARM-abcdef"; | ||
// pub const MAX_APR: u64 = 5_000; // 50% | ||
// pub const UNBOND_EPOCHS: u64 = 10; | ||
// pub const STAKING_FARM_PER_BLOCK_REWARD_AMOUNT: u64 = 1_000; | ||
// pub const REWARD_CAPACITY: u64 = 1_000_000_000_000; | ||
|
||
// // Proxy constants | ||
|
||
// pub const PROXY_WASM_PATH: &str = "farm-staking-proxy/output/farm-staking-proxy"; | ||
// pub const DUAL_YIELD_TOKEN_ID: &[u8] = b"DYIELD-abcdef"; |
Oops, something went wrong.