aboutsummaryrefslogtreecommitdiff
path: root/multicoin.sol
blob: 97d9cdd334c0d7dfc8e490699f49eb9ee7cab7ad (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
pragma solidity >=0.6.0;

library MultiCoin {
    function transfer(address payable recipient, uint256 amount, uint256 coinid, uint256 amount2) public {
        recipient.transferex(amount, coinid, amount2);
    }

    function getBalance(uint256 coinid) public view returns (uint256) {
        return address(this).balancemc(coinid);
    }
}