# Developer Referral Fee

On Solend, 80% of fees are collected as a protocol fee with 20% earmarked as a host fee.&#x20;

The host fee goes to: (in order of priority)

* Users with 1,000 SLND self-referring
* Referrals from another address
* Permissionless pool creators
* Alternative UIs built on Solend smart contracts
* Solend&#x20;

When calling the borrow function on the Solend smart contracts, a client may pass in an address to receive the 20% host fee. This is applicable to DeFi strategies integrating Solend (discount off fee), or alternative UIs to Solend's (pass in an address to receive some fees).&#x20;

This is an incentive to encourage developers to build on top of Solend.

{% embed url="<https://github.com/solendprotocol/solana-program-library/blob/mainnet/token-lending/program/src/processor.rs#L1387>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.save.finance/developers/developer-referral-fee.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
