Skip to content

Commit

Permalink
Bunch of things transferred to the shared package
Browse files Browse the repository at this point in the history
  • Loading branch information
toml01 committed Mar 14, 2021
1 parent b9805b7 commit 3170950
Show file tree
Hide file tree
Showing 12 changed files with 192 additions and 267 deletions.
122 changes: 19 additions & 103 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions contracts/lp-staking/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ default = []
backtraces = ["cosmwasm-std/backtraces"]

[dependencies]
cosmwasm-schema = { git = "https://github.com/enigmampc/SecretNetwork", tag = "v1.0.0" }
cosmwasm-std = { git = "https://github.com/enigmampc/SecretNetwork", tag = "v1.0.0" }
cosmwasm-storage = { git = "https://github.com/enigmampc/SecretNetwork", tag = "v1.0.0" }
secret-toolkit = { git = "https://github.com/enigmampc/secret-toolkit", branch = "debug-print" }
cosmwasm-storage = { git = "https://github.com/enigmampc/SecretNetwork", rev = "004c6bc" }
cosmwasm-std = { git = "https://github.com/enigmampc/SecretNetwork", rev = "004c6bc" }
schemars = "0.7"
serde = { version = "1.0.103", default-features = false, features = ["derive"] }
snafu = { version = "0.6.3" }
secret-toolkit = { git = "https://github.com/enigmampc/secret-toolkit" }
scrt-finance = { path = "../../packages/scrt-finance", version = "0.1.0" }
base64 = "0.12.3"
subtle = { version = "2.2.3", default-features = false }

Expand Down
2 changes: 1 addition & 1 deletion contracts/lp-staking/src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ pub const VIEWING_KEY_KEY: &[u8] = b"viewingkey";
pub const RESPONSE_BLOCK_SIZE: usize = 256;

// TODO: get those as an input for specific coins, as some coins might require different scales than others
pub const INC_TOKEN_SCALE: u128 = 1_000_000_000_000; // 10 ^ 12
pub const INC_TOKEN_SCALE: u128 = 1; // LP Tokens and Gov Token is at the same scale
pub const REWARD_SCALE: u128 = 1_000_000_000_000; // 10 ^ 12
Loading

0 comments on commit 3170950

Please sign in to comment.