JaxNode March 2021
Paul Krugman
Bolivarian Republic of Venezuela
Inflation rate of 2665% this year
Was 350000% in 2019,
slowed to 2900%
in 2020
Was the richest nation in South America 20 years ago
Largest oil reserves in the world
20% of all US Dollars in circulation were minted in the last year
pragma solidity >= 0.7.0 <0.8.0;
contract Coin {
// The keyword "public" makes variables accessible from other contracts
address public minter;
mapping (address => uint) public balances;
// Events allow clients to react to specific
event Sent (address from, address to, uint amount);
// Constructor code is only run when the contract
// is created
constructor() public {
minter = msg.sender;
}
// Sends an amount of newly created coins to an address
// Can only be called by the contract creator
function mint(address receiver, uint amount) public {
require(msg.sender == minter);
require(amount < 1e60);
balances[receiver] += amount;
}
// Sends an amount of existing coins
// from any caller to an address
function send(address receiver, uint amount) public {
require(amount <= balances[msg.sender], "Insufficient balance.");
balances[msg.sender] -= amount;
balances[receiver] += amount;
emit Sent (msg.sender, receiver, amount);
}
}
Kings of Leon