Skip to content

Commit

Permalink
Merge pull request #423 from astroport-fi/merge/features_210624
Browse files Browse the repository at this point in the history
feat(tf tracker): allow to track over blocks or seconds
  • Loading branch information
epanchee authored Jun 21, 2024
2 parents 4b3bff8 + 4523e4a commit ea2bcae
Show file tree
Hide file tree
Showing 27 changed files with 341 additions and 138 deletions.
104 changes: 59 additions & 45 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion contracts/pair/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "astroport-pair"
version = "2.0.0"
version = "2.0.1"
authors = ["Astroport"]
edition = "2021"
description = "The Astroport constant product pool contract implementation"
Expand Down
1 change: 1 addition & 0 deletions contracts/pair/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ pub fn reply(deps: DepsMut, env: Env, msg: Reply) -> Result<Response, ContractEr
.token_factory_addr
.to_string(),
tracked_denom: new_token_denom.clone(),
track_over_seconds: false,
})?,
funds: vec![],
label: format!("{new_token_denom} tracking contract"),
Expand Down
4 changes: 2 additions & 2 deletions contracts/pair/tests/integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2411,7 +2411,7 @@ fn test_tracker_contract() {
.wrap()
.query_wasm_smart(
tracker_addr.clone(),
&TrackerQueryMsg::TotalSupplyAt { timestamp: None },
&TrackerQueryMsg::TotalSupplyAt { unit: None },
)
.unwrap();

Expand All @@ -2423,7 +2423,7 @@ fn test_tracker_contract() {
tracker_addr,
&TrackerQueryMsg::BalanceAt {
address: alice.to_string(),
timestamp: None,
unit: None,
},
)
.unwrap();
Expand Down
Loading

0 comments on commit ea2bcae

Please sign in to comment.