Platform: Code4rena
Start Date: 28/09/2023
Pot Size: $36,500 USDC
Total HM: 5
Participants: 115
Period: 6 days
Judge: 0xDjango
Total Solo HM: 1
Id: 290
League: ETH
Rank: 71/115
Findings: 1
Award: $17.24
π Selected for report: 0
π Solo Findings: 0
π Selected for report: 3agle
Also found by: 0x3b, 0xDetermination, 0xweb3boy, ArmedGoose, Bauchibred, Breeje, J4X, hunter_w3b, jamshed, kaveyjoe, oakcobalt, radev_sw, versiyonbir
17.244 USDC - $17.24
Venus Protocol is rolling out something called Venus Prime, which is like a super cool incentive program. Their goal is to get more people involved and boost the protocol's growth. Venus Prime is a big deal in Venus Tokenomics v3.1βit's all about making things more rewarding and encouraging people to stake $XVS. They're honing in on markets involving USDT, USDC, BTC, and ETH.
Soulbound Token: - This is a special token created within the context of the Venus Protocol. It seems to have a unique purpose, likely tied to special privileges or rewards. - Accruing Rewards: - Holders of the Soulbound token will gradually accumulate rewards. These rewards are generated using a portion of the income derived from specific markets within the Venus Protocol. - Staking Requirement for Regular Users: - Regular users who want to get their hands on the Soulbound token need to stake a minimum of 1,000 XVS (Venus native token) for a period of at least 90 days. - Eligibility for Prime Token: - After staking the required amount of XVS for the specified duration, users become eligible for a Prime token. This token likely signifies a higher or privileged status within the protocol. - Claiming the Prime Token: - Once users meet the staking requirements, they can claim their Prime token. This might involve executing a specific transaction or interacting with a smart contract. - Commencement of Reward Accrual: - Upon successfully claiming the Prime token, the process of accruing rewards begins for the token holder. These rewards are likely a share of the income generated by designated markets. - Flexibility in Claiming Rewards: - Prime token holders have the flexibility to claim their accrued rewards at a time of their choosing. This implies that they are not bound by a specific timeframe and can decide when it's most advantageous for them to claim the rewards.
Prime Program:
Sources of Tokens:
Second Source: PrimeLiquidityProvider Contract:
Distribution Method:
Uniform Distribution:
In summary, the PrimeLiquidityProvider contract serves as a dedicated source of tokens for the Prime program. It will distribute a fixed quantity of tokens evenly among Prime holders over a set timeframe. This additional source complements the tokens generated from Venus markets, providing a diverse mechanism for token distribution within the Prime program.
- What is the overall line coverage percentage provided by your tests?: 96%
Due to its capacity, test coverage is expected to be 100%.
for rewards, they use Goldfinch rewards mechanism. for simplicity, I like to explain Goldfinch rewards in the following way.
Goldfinch has a system that appreciates your involvement. Here's the scoop: When you lend money using Goldfinch or do other helpful things in their world, they shower you with extra tokens as a way of saying, "Thanks for being awesome!" It's like getting a bonus for being an active member of the Goldfinch community. The process encourages people to participate more and contributes to the overall growth and success of Goldfinch. So, the more you engage, the more rewards you can rack upβit's a pretty sweet deal!
this whole mechanism ensures a smooth and fair distribution of rewards to Prime token holders, with careful consideration of configuration changes and timely accrual of interest.
let's see step-by-step :
Interest Reserves and PSR:
Configuration and Prime Markets:
PSR Functions:
releaseFunds
: This function needs to be activated to release the funds from the PSR to the Prime contract.getUnreleasedFunds
: This function retrieves the unreleased funds for a specified destination target.Prime Contract and Distribution:
Claiming Rewards and Triggering Fund Release:
Integration Points with PSR and Prime Contract:
accrueInterest
on the Prime contract. It releases funds to Prime, ensuring that pending funds are distributed based on the existing configuration before applying new changes.accrueInterest
, and after sending funds, it calls updateAssetsState
.The analysis process spanned approximately 15-17 hours, encompassing initial project familiarization, compiling this comprehensive report
17hours
17 hours
#0 - c4-pre-sort
2023-10-07T06:15:06Z
0xRobocop marked the issue as low quality report
#1 - c4-judge
2023-11-03T20:18:38Z
fatherGoose1 marked the issue as grade-b