-
Notifications
You must be signed in to change notification settings - Fork 3.8k
feat(cosmwasm): introduce escrow vault for fungibility layer #4937
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
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
3e80ab3
to
9237d5f
Compare
9237d5f
to
b0723cc
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.
lgtm, just a few questions. also I hate to say it but some documentation on how this works would be great (either in code or a small readme)
let fee = order | ||
.base_amount | ||
.checked_sub(order.quote_amount) | ||
.expect("impossible"); |
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.
perhaps I'm missing some context but why is this impossible?
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.
we check that base covers quote in term of amount just before
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.
ah ok i missed that line. maybe good to do the comparison as the checked_sub call then? then we can match on the result, instead of doing the check twice?
value.as_bytes().into() | ||
} | ||
|
||
fn decode_value(raw: &Bytes) -> StdResult<Addr> { |
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.
Todo for me: add a default addr value codec impl somehow in depolama
type Encoding = Bincode; | ||
} | ||
|
||
pub type BaseToken = Bytes; |
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.
either newtype wrapped or don't use an alias
A CosmWasm contract that acts as a solver in the zkgm protocol, enabling fungible token transfers across IBC channels by managing escrowed assets.
Key Features
How It Works
Security