How it worksCompetitionsReviewsGuildsBountiesPortfolioBlog
Sign in

ZeroLend / incentive-contracts

zerolendzerolendxyz

Overview

Leaderboard

Zerolend Competition

ZeroLend is the leading lending market on zkSync!

What are ZeroLend governance contracts

A walkthrough of the governance contracts will be done on 9th of January.

Prize distribution and scoring

The prize distribution works as follows:

  • Security reviewers will score points for each finding.
  • Prizes are distributed proportionally to the number of points scored.
  • A High Severity is worth 10 points, and a Medium Severity 3 points.
  • Duplicate findings will be resolved using a scoring formula that incentivizes unique findings.
  • Duplicate findings will be resolved using the following scoring formula that incentivizes unique findings:
    • Each duplicate finding will be scaled down by 0.9n1/n0.9^{n - 1} / n0.9n1/n, where nnn is the # of duplicates.
  • 10% of the prize pot is reserved for Low Severity or informational findings. These reports are judged based on quality and researchers are then ranked from 1st to 5th for the purpose of prize allocation:
    • 1st: $4k
    • 2nd: $2k
    • 3rd: $1k
    • 4th: $500
    • 5th: $500

Scope

Basic POC test

  • zerolend/incentive-contracts/blob/master/test/Basic.ts
import { loadFixture } from "@nomicfoundation/hardhat-toolbox/network-helpers";
import { expect } from "chai";
import { deployFixture } from "./fixtures/core";

describe("Basic", function () {
  it("Should deploy token properly", async function () {
    const { token, owner } = await loadFixture(deployFixture);
    expect(await token.owner()).to.equal(owner.address);
    expect(await token.owner()).to.equal(owner.address);
  });
});

Zerolend incentive-contracts

Fileblankcommentcode
./ZeroLocker.sol123268732
./ZLRewardsController.sol89215512
./ZeroLockerTimelock.sol46179297
./FeeDistributor.sol6811228
./StreamedVesting.sol5022186
./interfaces/IZLRewardsController.sol39973
./interfaces/IZeroLocker.sol24463
./Epoch.sol201458
./interfaces/IStreamedVesting.sol9143
./StakingEmissions.sol111040
./VestedZeroLend.sol121039
./BonusPool.sol91035
./ZeroLend.sol81027
./interfaces/IZeroLend.sol31015
./interfaces/IFeeDistributor.sol61015
./utils/RecoverERC20.sol4811
./interfaces/IIncentivesController.sol219
./interfaces/IBonusPool.sol517
./interfaces/IERC20Burnable.sol316
./interfaces/IWETH.sol215
SUM:5337952401

Out of Scope issues

  • Previous security reviews.
  • Automated findings from 4naly3er.

Summary

Status

Completed

Total reward:

$80,000 USDC

Start date:

8 Jan 2024 8:00pm (local time)

End date:

25 Jan 2024 8:00pm (local time)

The first marketplace for web3 security. We've aggregated the security talent and solutions so you don't have to.

Services

CompetitionsReviewsBountiesGuilds

© 2024 Cantina. All rights reserved.