Skip to content
Merged
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
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions spot-contracts/contracts/FeePolicy.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions spot-contracts/test/FeePolicy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
}),
Expand All @@ -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");
Expand Down