UserManager

Manages the Union members' credit lines, their vouchees info, and their borrowers info.

Functions

checkIsMember(address account) → bool

Check if the account is a valid member

Parameters:

  • account: Member address

Return Values:

  • Address whether is member

getBorrowerAddresses(address account) → address[]

Get member borrowerAddresses

Parameters:

  • account: Member address

Return Values:

  • Address array

getStakerAddresses(address account) → address[]

Get member stakerAddresses

Parameters:

  • account: Member address

Return Values:

  • Address array

getBorrowerAsset(address account, address borrower) → uint256, uint256, uint256

Get member backer asset

Parameters:

  • account: Member address
  • borrower: Borrower address

Return Values:

  • Trust amount, vouch amount, and locked stake amount

getStakerAsset(address account, address staker) → uint256, uint256, uint256

Get member stakers asset

Parameters:

  • account: Member address
  • staker: Staker address

Return Values:

  • Vouch amount and lockedStake

getCreditLimit(address account) → int256

Get the member's available credit line

Parameters:

  • account: Member address

totalStaked() → uint256

No description

totalFrozen() → uint256

No description

getFrozenCoinAge(address staker, uint256 pastBlocks) → uint256