CookieVendor
State Variables
cookie
Cookie public cookie;
CK
mapping(address => uint256) internal CK;
Functions
constructor
constructor();
buyCookie
function buyCookie(uint256 _amount) public payable;
sellCookie
function sellCookie(uint256 _amount) public;
increaseCookie
function increaseCookie(uint256 _amount) internal;
decreaseCookie
function decreaseCookie(uint256 _amount) internal;
getCookiePrice
function getCookiePrice() public pure returns (uint256);
getCookieBalance
function getCookieBalance() public view returns (uint256);
Errors
InsufficientFunds
error InsufficientFunds();
TransferFailed
error TransferFailed();