-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: cosmwasm contracts #10
base: main
Are you sure you want to change the base?
Conversation
} | ||
|
||
pub fn is_native(&self, deps: Deps, denom: &String) -> bool { | ||
if let Ok(addr) = deps.api.addr_validate(denom) { |
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.
What happens in case of invalid token address? Also the func param name denom seems misleading.
self.nid.load(storage) | ||
} | ||
|
||
pub fn get_protocol_fee(&self, storage: &dyn Storage) -> StdResult<u8> { |
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.
u8 will only allow for [0,255] out of 10,000 scale. Is this an issue?
msg: ExecuteMsg, | ||
) -> Result<Response, ContractError> { | ||
let call_service = CwIntentV1Service::default(); | ||
match msg { |
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.
Are we missing CancelMsg?
solver_address: order.creator.clone(), | ||
}; | ||
let msg = OrderMsg { | ||
msg_type: ORDER_CANCEL, |
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 the message type should ORDER_FILL.
Description:
Commit Message
see the guidelines for commit messages.
Changelog Entry
Checklist: