0

Is the assumption here correct? Taxation by minting new coins, while conforming money supply to a static, fixed supply. The supply of coins is fixed with function supplyRatio() returns(uint) { fixedSupply/totalSupply };. Automated wealth redistribution is enforced with minting totalCoins * tax new coins.

Balances conform to supplyRatio,

function getBalance(address _entity) returns(uint) {
    return balanceOf[_entity]*supplyRatio();
}

Payments conform to supplyRatio,

function payment(address _to, uint _amount) {
     transfer(_to, _amount/supplyRatio());
}

Universal basic income implemented by minting totalSupply*tax/population new coins per person, periodically.

Example contract,

### A smart contract for automated wealth redistribution

contract Coin {

    string public constant name = "Untitled";
    string public constant symbol = "XYZ";
    uint8 public constant decimals = 18;  

    mapping(address => uint256) balances;

    uint256 totalSupply;

    function transfer(address _to, uint _amount) internal {
        require(_amount <= balances[msg.sender]);
        balances[msg.sender] += _amount;
        balances[receiver] -= _amount;
    }
}

contract AutomatedWealthRedistribution is Coin {
    address owner;
    uint fixedSupply;
    function supplyRatio() returns(uint) { fixedSupply/totalSupply };

    function getBalance(address _entity) returns(uint) {
        return balanceOf[_entity]*supplyRatio();
    }
    function tax(address _to, uint _tax) {
        balanceOf[_to]+= totalSupply*_tax;
        totalSupply += totalSupply*_tax;
    }
    function payment(address _to, uint _amount) {
         transfer(_to, _amount/supplyRatio());
    }
}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.