DealInterestDiscovery
Contract behaviors:
registerInterest(dealUuid,wallet,amount) (can be called multiple times to update previous
value)getRegisteredAmount( string memory dealUuid, address wallet )
dealsWalletsCount(dealUuid)
Contract properties:
mapping(string => mapping(address => uint256)) walletsDealsDeposits
mapping(string => address[]) public dealsWallets //can be multiple times!
mapping(string => uint256) dealsInterest
mapping(string => uint256) dealsLastChangeAt
lastChangeAt
Contract events:
event WalletRegistered(string dealUuid, address wallet, uint256 amount)
Roles:
-
Admin-only functions:
-
CA:
interface IDealInterestDiscovery {
//register interest in specific deal (can be called multiple times)
function registerInterest(string memory dealUuid, uint256 amount) external;
//preregistered amount check
function getRegisteredAmount(
string memory dealUuid,
address wallet
) external view returns (int256);
}
Last updated