Liquidity, Lending Period, and Withdrawal Window #7
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
addCover
function toaddCover
anddeployVault
.VaultDeployed
getCoverFeeInfoInternal
which caused revert exceptions because of zero values due to precision loss (uint division)_getCoverFeeRate
getCoverableInternal
togetStablecoinBalanceOfCoverPoolInternal
getPriceInternal
mustBeDuringWithdrawalPeriod
in RoutineInvokerLibV1withdrawRewardsInternal
ofStakingPoolLib
now sending correct fee to the treasury addressmustHaveStoppedCoverStatus
in ValidationLibV1calculateLiquidityInternal
getInfoInternal
ofVaultLibV1
.MinLiquidityPeriodSet
addLiquidityInternalOnly
from the Vault contractgetInfo
function; deleted lockup period and added withdrawal open and close dates.getCoverable
togetAvailableLiquidity
minLiquidityPeriod
configuration constant from protocol initialization functionsetClaimPeriod
function to also accept cover keys. If a cover key is not specified, it sets the default/fallback claim period.ClaimPeriodSet
event. #subgraph #frontend_finalize
logic to NOT RESET staking information_resolve
function to get claim period by cover key. In other words, each cover now has its own claim period.unstakeWithClaim
to IUnstakableunstakeWithClaim
in Unstakable to be an overrideaddCover
input arguments. Dropped: initialLiquidity. Added: floor, ceiling, claimPeriod.addCover
which now checks the NPM input against minimum cover creation stake instead of minium first reporting stake.getUnstakeInfoFor
. Now returns 0 as reward if called after finalization.IUniswapV2RouterLike
FakeUniswapV2RouterLike
@notes
Subgraph:
Frontend: