ITADN

Add ability to send funds to an account then have them committed to a market.

#2659OpenSpicyLemon 创建于 2026-04-01
exchange
S
SpicyLemoncommented
## Summary Add the ability to send funds to an account where, once at the destination, the funds are committed to a market. ## Problem Definition When distributing `YLDS` interest, we want to be able to send the `YLDS` to the destination and have it committed to the market so that the interest can be re-invested. Currently, to do this, we have to mint the `YLDS` to a service account, then commit the funds from there and then ask the market to kindly distribute the funds appropriately. ## Proposal In the exchange module, create a `SendAndCommit` endpoint. The request msg will essentially be a `MsgSend` with an added field for `market_id`. When the msg server receives this message, it'll essentially do the send part, then commit the funds to the provided market. ____ #### For Admin Use - [ ] Not duplicate issue - [ ] Appropriate labels applied - [ ] Appropriate contributors tagged - [ ] Contributor assigned/self-assigned
0 条评论