-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IBC Rate Limit Changes For Neutron #716
IBC Rate Limit Changes For Neutron #716
Conversation
cbbe6f8
to
124320a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
overall LGTM. just a couple of questions and preferences that may be fixed after the merge when working with the base branch
let response: QuerySupplyOfResponse = deps.querier.query(&cosmwasm_std::QueryRequest::Grpc({ | ||
GrpcQuery { | ||
path: "/cosmos.bank.v1beta1.Query/SupplyOf".to_string(), | ||
data: Binary::from_base64( | ||
&to_base64(self.local_denom(direction)) | ||
)? | ||
} | ||
}))?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can reuse the grpc query helpers here just as it is done here https://github.com/neutron-org/neutron-dev-contracts/blob/2589bbdda4496608626d457902d548e36134945a/contracts/grpc_querier/src/contract.rs#L68
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense and that would simplify the function a lot, should I remove and change to
pub fn channel_value(&self, deps: Deps, direction: &FlowType) -> Result<Uint256, StdError> {
Ok(Uint256::from_uint128(deps.querier.query_supply(self.local_denom(direction))?.amount))
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, that should work
0c0dffb
into
neutron-org:feat/ibc-rate-limit
Overview
Adds changes needed to make the osmosis ibc rate limit contract compatible with neutron
Changes Made
Notes
Some comments in the code in the code mention "osmosis" however I wasn't sure whether or not to change this, so please let me know if I should do this.