--- tags: ideas --- # notes from wyre xdai onramp jack jia here from wyre so basically what i was thinking was https://docs.sendwyre.com/docs/white-label-card-processing-api Wyre API Reference Card Processing API ยท Wyre API Reference Accept card payments using Wyre's API take the wyre card processing api and fork stripe payment form then point the dest of each order to the 0x address associated with a master merchant wyre account https://www.sendwyre.com/legacy-docs/#account-details ^every wyre account/v2 comes with her own unique deposit address this is done offchain you can think of it as wyre's own layer2 solution with 1 validator=wyre so the first leg of the transaction is now complete usd->eth/usdc/dai into a wyre custodial wallet offchain using the webhooks of that wallet order and track order endpoint think of this as a source of truth or oracle system where wyre tells you that an order is completed/funds are deposited into a reserve account https://docs.sendwyre.com/docs/wyre-checkout-installation#wallet-order-webhook https://docs.sendwyre.com/docs/track-wallet-order so after this first leg of the transaction is done, let's revisit what's happened so far 1. you've reserved an order 2. you;'ve displayed your own widget design/ui on top of wyre card processing api 3. end-user went through payment form purchase flow 4. wyre compliance/fraud runs her checks during a few secs 5. an order is completed with fired off webhooks 6. dai is now sitting in a wyre wallet associated with your master merchant account on wyre next we have a "hub wallet" on xdai this is the part that i need some help with ideally the equivalent amount of xdai is then sent to the end user from this hub wallet, but the way to set it up is unclear to me someone would need to setup a smart contract wallet on xdai that has multisig for wyre to have 1/x keys then someone (from xdai team?) can operate as a software provider that provides the service of programmtically sending the last mile to the end-user based on the wyre api webhooks as an oracle let me know if this makes sense, basically we are decoupling the payment processing from the order fulfillment basically simultaenously when a usd->dai order is completed via wyre, xdai is sent from a hub wallet on layer2 controlled by wyre/xdai/[team]