Skip to content

Commit

Permalink
changing ClayBonds deposit close/maturation date for testing (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
KohliSuraj authored Feb 28, 2023
1 parent c743690 commit 057a054
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions contracts/ClayBonds.sol
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ contract ClayBonds is ERC20("zClay Token", "zCLAY"), Ownable {
// uint256 public constant MATURATION_PERIOD = (1 days * 365) * 3;

// TODO: test claybonds for short duration
uint256 public constant BONDS_ISSUANCE_PERIOD = 1 days * 30;
uint256 public constant MATURATION_PERIOD = 1 days * 32;
uint256 public constant BONDS_ISSUANCE_PERIOD = 1 days * 7;
uint256 public constant MATURATION_PERIOD = 1 days * 21;

// minimum staking amount must be 100 wei
uint256 public constant MIN_ISSUANCE_AMOUNT = 100;
Expand Down
8 changes: 4 additions & 4 deletions test/002_clay_bond_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,10 @@ describe("Clay Bonds Contract", function () {
let multiplier = ethers.BigNumber.from("1000000000000000000")
let dailyYield = multiplier.mul(apy_percent).div(365)

// 32 days in seconds: 2764800
expect(maturationDate.sub(depositStartDate)).to.be.eq(2764800)
// 30 days in seconds: 2592000
expect(depositCloseDate.sub(depositStartDate)).to.be.eq(2592000)
// 21 days in seconds: 1814400
expect(maturationDate.sub(depositStartDate)).to.be.eq(1814400)
// 7 days in seconds: 604800
expect(depositCloseDate.sub(depositStartDate)).to.be.eq(604800)
expect(dailyYield).to.be.eq(dailyYieldPercent)
});
it("Issues zCLAY bonds ", async () => {
Expand Down

0 comments on commit 057a054

Please sign in to comment.