Display different views
prompt :-
get(view, form),
show [
text('ETH -> WETH'),
input(eth, eth),
button('WRAP', [
get(input/eth, ETH),
call_fn(weth, deposit, [ value(eth(ETH)) ], []),
set(view, success).
])
].prompt :-
get(view, success),
show[
text('ETH successfully swapped!'),
button('New Swap', [ set(view, form) ])
].Last updated