Point program

For a potential futur airdrop

Discover how many points you have on this page: https://FixedLend.com/points

(Participation in the points program does not constitute a contractual right to an airdrop or any other form of compensation).

When you make a loan, and it gets repaid or liquidated, you pay a platform fee of 1% APR. How much you paid in fee is accrued in your number of points, multiplied by some multiplier which varies itself (will decreases over time as platform gets more popular), and the assets used. Please note that when a liquidation occurs, and when the lender gets the borrower's collateral, no fee is paid to the platform and no points are increased.

The above page displays your points, as well as the total number of points. The total number of points shall always be the sum of all points distributed so far.

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

I'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