kLP
to it. Liquidities will be handled by the Keep3r Liquidity Pools.kLPs
are added to a job with addLiquidityToJob
, the job starts immediately to mine new KP3R credits, that can be collectable only by the keepers, in reward for working the job. The credit mining system requires no further action from the jobOwner
.inflationPeriod
, thereby minting the proportional amount each rewardPeriod
as KP3R credits for the job. These credits are only to be earned by keepers when working the job, and by the end of each rewardPeriod
, unused credits older than previous rewardPeriodStart
are meant to expire.rewardPeriod
starts, the first keeper to work the first job will:worked()
transaction that has to update quotes and reward the job is more gas-consuming, therefore has a higher keeper rewardquoteLiquidity
will use the average quote for the last epoch
for the given liquidityrewardPeriod
startsjobLiquidityCredits
) and pending mined credits to be rewarded (aggregated with current credits in totalJobCredits
). totalJobCredits
is greater than the payment. If jobLiquidityCredits
are not enough to pay the keeper, then the keeper will have to reward the job by rewarding the job with its mined credits.rewardPeriod
.totalJobCredits
to reward the keeper for working the job (and some extra to pay the keeper for rewarding the credits), the transaction will revert with InsufficientFunds
.jobPeriodCredits
, as long as all the credits minted have not yet expired. jobPeriodCredits
.jobOwner
can withdraw the liquidity bonded to the job, provided he either removes the total of it, or that he remains a minimum allowed amount. unbondLiquidityFromJob
, instantly diminishing the job KP3R credits proportional to the impact of removing such liquidity. After an unbondPeriod
passes, the jobOwner
can withdraw the liquidity tokens from the protocol with withdrawLiquidityFromJob
.