TO NOTE
Store collateral and provide interest MXX or burn MXX
Interest (contractFee, penaltyFee etc) is always represented 10 power 6 times the actual value
Note that only 4 decimal precision is allowed for interest
If interest is 5%, then value to input is 0.05 * 10 pow 6 = 5000
mFactor or mintFactor is represented 10 power 18 times the actual value.
If value of 1 ETH is 380 USD, then mFactor of ETH is (380 * (10 power 18))
Collateral should always be in its lowest denomination (based on the coin or Token)
If collateral is 6 USDT, then value is 6 * (10 power 6) as USDT supports 6 decimals
startTime and endTime are represented in Unix time
tenure for contract is represented in days (90, 180, 270) etc
mxxToBeMinted or mxxToBeMinted is always in its lowest denomination (8 decimals)
For e.g if mxxToBeMinted = 6 MXX, then actual value is 6 * (10 power 8)
spanzy98/SmartContracts
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|