Automatic Refund Contract
Zoe v0.24.0. Last updated August 25, 2022.
View the code on Github (Last updated: Jan 31, 2022)
View all contracts on Github
This is a very trivial contract to explain and test Zoe. AutomaticRefund just gives you back what you put in. AutomaticRefund tells Zoe to exit the seat, which gives the user their payout through Zoe. Other contracts use these same steps, but they have more sophisticated logic and interfaces.
Since the contract doesn't attempt any reallocation, the offer can contain anything in give
and want
. The amounts in give
will be returned, and want
will be ignored.