|
|
@@ -166,7 +166,7 @@ class NewSwap(New):
|
|
|
[f'vault,{args.send_amt}', chg_output.mmid, f'data:{memo}'] if args.send_amt else
|
|
|
['vault', f'data:{memo}'])
|
|
|
|
|
|
- def process_swap_options(self):
|
|
|
+ def init_swap_cfg(self):
|
|
|
if s := self.cfg.trade_limit:
|
|
|
self.usr_trade_limit = (
|
|
|
1 - float(s[:-1]) / 100 if s.endswith('%') else
|
|
|
@@ -199,10 +199,10 @@ class NewSwap(New):
|
|
|
while True:
|
|
|
self.cfg._util.qmsg(f'Retrieving data from {c.rpc.host}...')
|
|
|
c.get_quote()
|
|
|
- await self.set_gas(to_addr=c.router if self.is_token else None)
|
|
|
+ self.cfg._util.qmsg('OK')
|
|
|
self.swap_quote_refresh_time = time.time()
|
|
|
+ await self.set_gas(to_addr=c.router if self.is_token else None)
|
|
|
trade_limit = get_trade_limit()
|
|
|
- self.cfg._util.qmsg('OK')
|
|
|
msg(await c.format_quote(trade_limit, self.usr_trade_limit, deduct_est_fee=deduct_est_fee))
|
|
|
ch = get_char('Press ‘r’ to refresh quote, any other key to continue: ')
|
|
|
msg('')
|