Manage the token balances staked by the users and deposited by admins, and invest tokens to the integrated underlying lending protocols.
Work with UnionToken and UserManager to calculate the Union rewards based on the staking info from UserManager, and be ready to support multiple UserManagers for various tokens when we support multiple assets.
Calculate the user's credit line based on the trust he receives from the vouchees.
Calculate the borrowers' interest rate.
Registering and managing all the lending markets.
Working with AssetManager to support external money markets, like Compound etc.
Mint and distribute UnionTokens.
Manages the Union members credit lines, and their vouchees and borrowers info.
Union members can borrow and repay thru this component.