From 1bfdd3600ffab94f29ba5ab41bf9410eea03f335 Mon Sep 17 00:00:00 2001 From: aalavandhann <6264334+aalavandhan@users.noreply.github.com> Date: Mon, 1 Apr 2024 15:59:21 -0400 Subject: [PATCH 1/2] updated sigmoid bound for 20% yearly rollover rate --- spot-contracts/contracts/FeePolicy.sol | 4 ++-- spot-contracts/test/FeePolicy.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/spot-contracts/contracts/FeePolicy.sol b/spot-contracts/contracts/FeePolicy.sol index 3ae82605..82cdd2f0 100644 --- a/spot-contracts/contracts/FeePolicy.sol +++ b/spot-contracts/contracts/FeePolicy.sol @@ -68,8 +68,8 @@ contract FeePolicy is IFeePolicy, OwnableUpgradeable { uint256 public constant ONE = (1 * 10 ** DECIMALS); /// @notice Sigmoid asymptote bound. - /// @dev Set to 0.01 or 1%, i.e) the rollover fee can be at most 1% on either direction. - uint256 public constant SIGMOID_BOUND = ONE / 100; + /// @dev Set to 0.05 or 5%, i.e) the rollover fee can be at most 5% on either direction. + uint256 public constant SIGMOID_BOUND = ONE / 20; /// @notice Target subscription ratio lower bound, 0.75 or 75%. uint256 public constant TARGET_SR_LOWER_BOUND = (ONE * 75) / 100; diff --git a/spot-contracts/test/FeePolicy.ts b/spot-contracts/test/FeePolicy.ts index a4660029..b3eea137 100644 --- a/spot-contracts/test/FeePolicy.ts +++ b/spot-contracts/test/FeePolicy.ts @@ -177,7 +177,7 @@ describe("FeePolicy", function () { it("should revert", async function () { await expect( feePolicy.connect(deployer).updatePerpRolloverFees({ - lower: toPerc("-0.011"), + lower: toPerc("-0.051"), upper: toPerc("0.01"), growth: toPerc("3"), }), @@ -187,7 +187,7 @@ describe("FeePolicy", function () { await expect( feePolicy.connect(deployer).updatePerpRolloverFees({ lower: toPerc("-0.01"), - upper: toPerc("0.011"), + upper: toPerc("0.051"), growth: toPerc("3"), }), ).to.be.revertedWithCustomError(feePolicy, "InvalidSigmoidAsymptotes"); From b8ac23079056e7599d8b812b27c3cbd47ec1ece4 Mon Sep 17 00:00:00 2001 From: aalavandhann <6264334+aalavandhan@users.noreply.github.com> Date: Mon, 1 Apr 2024 15:59:39 -0400 Subject: [PATCH 2/2] updated LICENSE --- LICENSE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index 0e9f50c5..04204fba 100644 --- a/LICENSE +++ b/LICENSE @@ -15,7 +15,7 @@ Licensed Work: Ampleforth Spot Additional Use Grant: Any uses listed and defined at spot-license-grants.ampleforthorg.eth -Change Date: The earlier of 2025-01-01 or a date specified at +Change Date: The earlier of 2027-01-01 or a date specified at spot-license-date.ampleforthorg.eth Change License: GNU General Public License v3.0 or later