Search…
API

Opting In to receive interest on smart contract addresses

Use setRebasingOption() on the IRhoToken interface to selectively Opt-In/Opt-Out or isRebasingAccount() to check if a particular account address rebases or not.
1
/**
2
* @notice Interface for yield farming strategies to integrate with various DeFi Protocols like Compound, Aave, dYdX.. etc
3
*/
4
interface IRhoToken is IERC20MetadataUpgradeable {
5
...
6
​
7
/**
8
* @notice switches the account type of `msg.sender` between rebasing and non-rebasing
9
* @param isRebasing true if setting to rebasing, false if setting to non-rebasing
10
* NOTE: this function does nothing if caller is already in the same option
11
*/
12
function setRebasingOption(bool isRebasing) external;
13
​
14
/**
15
* @param account address of account to check
16
* @return true if `account` is a rebasing account
17
*/
18
function isRebasingAccount(address account) external view returns (bool);
19
20
...
21
}
22
​
Copied!
Last modified 3mo ago
Copy link