Developer reward program
Earn 20% of protocol fees generated by your application with the developer reward fee built into the Solend smart contracts. Any application that creates a transaction that calls borrow()
may pass in an address to collect 20% of the borrow fee!
Implementation
For now you'll have to roll up your sleeves a bit to figure it out, but here's the relevant line in Solend's codebase. Basically you have to pass in the account you want to receive fees in as host_fee_receiver_info
when invoking process_borrow_obligation_liquidity()
.