Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions packages/protocol/contracts/stability/ExchangeBRL.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
pragma solidity ^0.5.13;

import "./Exchange.sol";

contract ExchangeBRL is Exchange {
/**
* @notice Sets initialized == true on implementation contracts
* @param test Set to true to skip implementation initialization
*/
constructor(bool test) public Exchange(test) {}

/**
* @notice Returns the storage, major, minor, and patch version of the contract.
* @dev This function is overloaded to maintain a distinct version from Exchange.sol.
* @return The storage, major, minor, and patch version of the contract.
*/
function getVersionNumber() external pure returns (uint256, uint256, uint256, uint256) {
return (1, 1, 0, 0);
}
}
20 changes: 20 additions & 0 deletions packages/protocol/contracts/stability/StableTokenBRL.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
pragma solidity ^0.5.13;

import "./StableToken.sol";

contract StableTokenBRL is StableToken {
/**
* @notice Sets initialized == true on implementation contracts.
* @param test Set to true to skip implementation initialization.
*/
constructor(bool test) public StableToken(test) {}

/**
* @notice Returns the storage, major, minor, and patch version of the contract.
* @dev This function is overloaded to maintain a distinct version from StableToken.sol.
* @return The storage, major, minor, and patch version of the contract.
*/
function getVersionNumber() external pure returns (uint256, uint256, uint256, uint256) {
return (1, 1, 0, 0);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
pragma solidity ^0.5.13;

import "../../common/Proxy.sol";

/* solhint-disable no-empty-blocks */
contract ExchangeBRLProxy is Proxy {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
pragma solidity ^0.5.13;

import "../../common/Proxy.sol";

/* solhint-disable no-empty-blocks */
contract StableTokenBRLProxy is Proxy {}
18 changes: 18 additions & 0 deletions packages/protocol/migrationsConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,10 @@ const DefaultConfig = {
min: '40000000000000000000000', // 40,000
max: '40000000000000000000000000', // 40,000,000
},
StableTokenBRL: {
min: '40000000000000000000000', // 40,000
max: '40000000000000000000000000', // 40,000,000
},
},
},
lockedGold: {
Expand Down Expand Up @@ -192,6 +196,20 @@ const DefaultConfig = {
oracles: [network.from],
frozen: false,
},
stableTokenBRL: {
decimals: 18,
goldPrice: 2,
tokenName: 'Celo Real',
tokenSymbol: 'cBRL',
inflationRate: 1,
inflationPeriod: 1.5 * YEAR,
initialBalances: {
addresses: [network.from],
values: ['5000000000000000000000000'],
},
oracles: [network.from],
frozen: false,
},
transferWhitelist: {
addresses: [],
registryIds: [],
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
{}
{
"StableTokenBRL": ["Celo Real", "cBRL", 18, "0x000000000000000000000000000000000000ce10", "1000000000000000000000000", "47304000", ["0xD533Ca259b330c7A88f74E000a3FaEa2d63B7972", "0x989e1a3B344A43911e02cCC609D469fbc15AB1F1"], ["2000000000000000000000000", "6000000000000000000000000"], "ExchangeBRL"],
"ExchangeBRL": ["0x000000000000000000000000000000000000ce10", "0x0000000000000000000000000000000000000000", "5000000000000000000000", "1300000000000000000000", "300", "5"]
}