Skip to content

Instantly share code, notes, and snippets.

@littledivy
littledivy / pst.uwu
Last active February 8, 2021 03:31 — forked from t8/pst.uwu
A Profit-Sharing Token Contract built using uwu.
function handle(state, action) {
let input = action.input
let caller = action.caller
if (input.function == "transfer") {
let target = input.target;
let quantity = input.quantity;
let balances = state.balances;
if (!target) {
return