# Automatic Refund

Zoe v0.18.1. Last updated 2021-09-13.
# View the code on Github (opens new window)
# View all contracts on Github (opens new window)

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.