TBTCConstants update order and comment
@@ -7,6 +7,7 @@ library TBTCConstants {
// System Parameters
uint256 public constant LOT_SIZE = 100; // satoshi TODO: decreased for testing, set it back original value `10 ** 8`
+ uint256 public constant SATOSHI_MULTIPLIER = 10 ** 10; // multiplier to convert satoshi to TBTC token units
uint256 public constant SIGNER_FEE_DIVISOR = 200; // 1/200 == 50bps == 0.5% == 0.005
uint256 public constant BENEFICIARY_FEE_DIVISOR = 1000; // 1/1000 = 10 bps = 0.1% = 0.001
uint256 public constant FUNDING_FRAUD_PARTIAL_SLASH_DIVISOR = 2; // 1/2 = 5000bps = 50% = 0.5
@@ -14,7 +15,6 @@ library TBTCConstants {
uint256 public constant UNDERCOLLATERALIZED_THRESHOLD_PERCENT = 140; // percent
uint256 public constant SEVERELY_UNDERCOLLATERALIZED_THRESHOLD_PERCENT = 120; // percent
uint256 public constant TX_PROOF_DIFFICULTY_FACTOR = 1; // TODO: decreased for testing, original value: `6`
- uint256 public constant SATOSHI_MULTIPLIER = 10 ** 10; // multiple
// Redemption Flow
uint256 public constant REDEMPTION_SIGNATURE_TIMEOUT = 2 * 60 * 60; // seconds
@@ -36,6 +36,7 @@ library TBTCConstants {
// Getters for easy access
function getLotSize() public pure returns (uint256) { return LOT_SIZE; }
+ function getSatoshiMultiplier() public pure returns (uint256) { return SATOSHI_MULTIPLIER; }
function getSignerFeeDivisor() public pure returns (uint256) { return SIGNER_FEE_DIVISOR; }
function getBeneficiaryRewardDivisor() public pure returns (uint256) { return BENEFICIARY_FEE_DIVISOR; }
function getFundingFraudPartialSlashDivisor() public pure returns (uint256) { return FUNDING_FRAUD_PARTIAL_SLASH_DIVISOR; }
@@ -43,7 +44,6 @@ library TBTCConstants {
function getUndercollateralizedPercent() public pure returns (uint256) { return UNDERCOLLATERALIZED_THRESHOLD_PERCENT; }
function getSeverelyUndercollateralizedPercent() public pure returns (uint256) { return SEVERELY_UNDERCOLLATERALIZED_THRESHOLD_PERCENT; }
function getTxProofDifficultyFactor() public pure returns (uint256) { return TX_PROOF_DIFFICULTY_FACTOR; }
- function getSatoshiMultiplier() public pure returns (uint256) { return SATOSHI_MULTIPLIER; }
function getSignatureTimeout() public pure returns (uint256) { return REDEMPTION_SIGNATURE_TIMEOUT; }
function getIncreaseFeeTimer() public pure returns (uint256) { return INCREASE_FEE_TIMER; }
