Skip to content

Repository

asandanov edited this page Jan 10, 2019 · 6 revisions

Repository global variable

WithdrawIsBlockedByFund - public - when withdraw is blocked, you can get tokens in PMFoundation.

Repository methods

makeDeposit

make deposit PMT

make sure, approve (ERC20.approve(...)) tokens to this contract first!

makeDeposit(
    uint value                // number of PMT tokens
) 

refund

refund deposit PMT to msg.sender address.

WithdrawIsBlockedByFund must be false and output only free tokens (not locked).

refund (
    uint value                // number of PMT tokens
) 

getVoted

getVoted(
    uint propID,              // proposal number 
    address voter)            // address of voter  
returns (
    uint)                     // number of votes (number of PMT tokens)

getBalance

get a full balance

getBalance(
    address owner             // owner address
) 

getNotLockedBalance

get a free balance, excluding voting tokens

getNotLockedBalance(
    address owner             // owner address
) 
Clone this wiki locally