Skip to content

RateContract

asandanov edited this page Jan 9, 2019 · 3 revisions

RateContract

PMC

DAO PlayMarket 2.0 Currency is the virtual units (like conventional units).

At this moment: 1PMC = 1$.

RateContract events

addCurrencyEvent

event addCurrencyEvent(bytes32 code, string name, uint number3, uint decimal, uint timeadd);

updateCurrencyEvent

event updateCurrencyEvent(bytes32 code, string name, uint number3, uint decimal, uint timeupdate);

updateRateEvent

event updateRateEvent(bytes32 code, uint value);

donationEvent

event donationEvent(address from, uint value);

RateContract methods

getRate

returns Rate of coin to PMC, with the exception of rate["ETH"].

getRate(
     bytes32 code     // currency code
) returns (
     uint rate)       // current rate
Clone this wiki locally