Skip to content
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ members = [
# "contracts/snip20_staking", //TODO: migrate to v1

# Mock contracts
# "contracts/mock/mock_band", //TODO: migrate to v1
"contracts/mock/mock_band",
# "contracts/mock/mock_secretswap_pair", //TODO: migrate to v1
"contracts/mock/mock_sienna_pair",
# "contracts/mock/mock_adapter", //TODO: migrate to v1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
use shade_protocol::c_std::{
to_binary,
Api,
Binary,
Env,
DepsMut,
Response,
Querier,
StdError,
StdResult,
Storage,
Deps,
};
use schemars::JsonSchema;
use serde::{Deserialize, Serialize};
use shade_protocol::contract_interfaces::oracles::band::{InstantiateMsg, ReferenceData};
use shade_protocol::c_std::Uint128;
Expand All @@ -27,7 +25,7 @@ pub fn price_w(storage: &mut dyn Storage) -> Bucket<Uint128> {
bucket(storage, PRICE)
}

pub fn init(
pub fn instantiate(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add #[shd_entry_point] to this, execute & query

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

_deps: DepsMut,
_env: Env,
_msg: InstantiateMsg,
Expand Down Expand Up @@ -100,7 +98,6 @@ pub fn query(
} else {
return Err(StdError::GenericErr {
msg: "Missing Price Feed".to_string(),
backtrace: None,
});
}
}
Expand Down