hydrachain/examples/native/fungible/fungible_contract.py
def issue_funds(ctx, amount='uint256', rtgs_hash='bytes32', returns=STATUS):
        "In the IOU fungible the supply is set by Issuer, who issue funds."
        # allocate new issue as result of a new cash entry
        ctx.accounts[ctx.msg_sender] += amount
        ctx.issued_amounts[ctx.msg_sender] += amount
        # Store hash(rtgs)
        ctx.Issuance(ctx.msg_sender, rtgs_hash, amount)
        return OK
def issue_funds(ctx, amount='uint256', rtgs_hash='bytes32', returns=STATUS):
        "In the IOU fungible the supply is set by Issuer, who issue funds."
        # allocate new issue as result of a new cash entry
        ctx.accounts[ctx.msg_sender] += amount
        ctx.issued_amounts[ctx.msg_sender] += amount
        # Store hash(rtgs)
        ctx.Issuance(ctx.msg_sender, rtgs_hash, amount)
        return OK
In the IOU fungible the supply is set by Issuer, who issue funds.