Points Program

For a potential futur airdrop.

Ready to see how your activity on FixedLend is rewarded? Our points system is simple: the more you contribute to the platform's success, the more points you earn.

How It Works:

Every time a loan you've funded is successfully repaid, you earn points. Here’s the breakdown:

  1. You Earn Yield: A borrower repays your loan with interest.

  2. A Small Fee Contributes to Points: A 1% APR platform fee is applied only to the interest you earned, paid by the borrower (your displayed APR is what you earn, the borrower pays 1% more)

  3. Your Points are Calculated: This fee amount is converted into points and boosted by two bonuses:

    • Early Adopter Bonus: You get more points for participating early! This multiplier will decrease over time.

    • Asset Bonus: Lending in certain asset markets may come with a higher points multiplier.

Check Your Score!

See your personal points total and how it compares to the rest of the community on the official Points page: View My Points

Important Notice: The points program is our way of keeping score of community contributions. Please be aware that points do not represent a promise or guarantee of a future airdrop or any financial compensation.


Points multiplier

Right now, here is the value of the total multiplier which decreases over time as the platform gets more popular, and the multiplier of each asset of the protocol

Total multiplier

Value
Date

10000

[Inception, Right now]

Eth markets multipliers

Asset
Value
Date

ETH

1000

[Inception, Right now]

fETH

1000

[Inception, Right now]

Getters in the smart contract

To read the value from the smart contract please use the following functions

// Displayed as "your points" in https://FixedLend.com/points
fn frontend_get_user_points(self: @ContractState, user: ContractAddress) -> u256 {
    self.user_points.read(user)
}
// Displayed as "total points" in https://FixedLend.com/points
fn frontend_get_total_points(self: @ContractState) -> u256 {
    self.total_points.read()
}

How points are increased in the smart contract

When a loan is repaid, or a liquidation occurs such that the lender gets repaid its lent token, points are increased in such way:

increase_user_point(ref self, lender, fee, lend_token);
increase_user_point(ref self, borrower, fee, borrow_token);

The above function is defined as that:

fn increase_user_point(ref self: ContractState, user: ContractAddress, amount: u256, asset: ContractAddress) {
    let user_point = self.user_points.entry(user).read();
    let amount = amount * self.points_multiplier_per_asset.entry(asset).read();
    let amount = amount * self.points_multiplier.read();
    self.user_points.entry(user).write(user_point + amount);
    self.total_points.write(self.total_points.read() + amount);
}

We can see above that your points get increased by the fee paid, multiplier by the total multiplier and the multiplier per assets. So, if you pay 1eth in fee for a eth loan, its value in fee in the code is 10^18 (because everything in the code is 18 decimals). With a total multiplier of 10000, and a asset multiplier of 1000, your points will be increase by 10^25.

If you previously used an old version of 0LiqLend, I've ported your points

We've successfully ported your points to the new protocol, and added a x10000 boost to thank you 😊 So if you paid 1eth in fee in the last protocol, you got in the new protocol 10^29 points (instead of 10^25). No action needed on your end, it should be displayed on the page https://FixedLend.com/points

Last updated