This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import "StablecoinTokenAPI.sol"; | |
/// @title Simple bet contract using USD Stablecoins. | |
/// @author Hadrien Charlanes - <[email protected]> | |
contract USDPool { | |
//Address of the private stablecoin Contract previously ordered by the SimpleBet dapp. | |
address public stablecoinLicensedAddress; | |
//Private Stablecoin service Contract Instance. | |
StablecoinTokenAPI public licensedStablecoin; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// @title Stablecoin Token API. Extension of the Token standard (https://github.com/ethereum/EIPs/issues/20) | |
/// @author Hadrien Charlanes - <[email protected]> | |
contract StablecoinTokenAPI { | |
/// @dev Getters of the conversion rates between USDcents and Wei | |
function getUSDcentstoWEIPrice(uint amountInUSDCents) constant returns (uint purchasePricesInWei); | |
function getWEItoUSDCentsPrice(uint amountinWei) constant returns (uint purchasePriceinUSDCents); | |
///@dev Return if a convertion ETH -> USD will be successful | |
///@param amountInWei WEI amount willing to be converted |