Bugfix to do with sellCoin

Some variable names got confused while I was refactoring my first
attempt. The script still worked, but was using the wrong variables.