Shprd
  • Shprd
    • 📒Introduction
    • 📜Whitepaper
  • UNDERSTAND SHPRD
    • 📚Protocol Overview
    • 📈Vault Rebalancing
    • 🛡️Security
      • ⏯️Pause procedure
      • 🆘Emergency Contact
    • 💸Protocol Fees
    • 🕸️Networks
  • Guides
    • 👷Create and manage a vault
      • ⛏️Create a vault
      • ⚙️Manage a vault
    • 💰Investing in a vault
      • 🤝Choose a vault
      • 📥Deposit in a vault
      • 📤Redeem in vault
    • 🏎️RPC
      • 🔁Change RPC
      • 🔧Create your own RPC
    • 🔑Cold Wallet
  • Technical Reference
    • 🧠Core Contracts
      • 📓VLib
      • 🏭Factory
      • 💎Vault
      • 💰FeesManager
      • ⛔AccessManager
      • 🛂KYCToken
    • 📌Contracts Addresses
      • 🪙BNB Chain
      • 🚀Arbitrum
    • 📊Subgraphs
  • Other websites
    • 🔗Linktree
    • 🆔Authentication
    • 🏛️Trading Signals
  • Find Us
    • 🎮Discord
  • Help
    • 📢Issues
Powered by GitBook
On this page
  • View Methods
  • whiteListMode (KYC)
  • permissionLessMode
  • getUserAccessInfo
  • isWhiteListed
  • Write Methods
  • SetPermissionLessMode
  • SetWhiteListMode (KYC)
  • SetKYCTokenImp
  1. Technical Reference
  2. Core Contracts

AccessManager

AccessManager contract manages roles and whitelist status related to Vaults contracts.

View Methods

whiteListMode (KYC)

function whiteListMode(address _vaultAddress) external view returns (bool isEnabled)

Returns the KYC mode status of a vault.

Call Parameters:

Type
Description

_vaultAddress

address

address of the vault

Return Value:

Type
Description

bool

true if the KYC mode is enabled

permissionLessMode

function permissionLessMode() external view returns (bool isEnabled)

Returns the status of the permission-less mode.

Return Value:

Type
Description

bool

true if the permission-less mode is enabled

getUserAccessInfo

function getUserAccessInfo(address _user)
    external
    view
    returns (
        uint256 ownedTokenID,
        bool isUserKYC,
        IKYCToken.TokenParameters memory _tokenParameters
    )

Returns the KYC information for a given user.

Call Parameters:

Name
Type
Description

_user

address

address of the user

Return Values:

Name
Type
Description

ownedTokenID

uint256

KYC token ID

isUserKYC

bool

KYC state of the user

_tokenParameters

IKYCToken.TokenParameters

KYC information of the user

isWhiteListed

function isWhiteListed(address _vault, address _user) 
    public view returns (bool)

Returns the whitelist status of a given user.

Call Parameters:

Name
Type
Description

_vault

address

address of a vault

_user

address

address of a vault's user

Return Value:

Type
Description

bool

true if the address is whitelisted

Write Methods

SetPermissionLessMode

function setPermissionLessMode(bool _status) external

Settles the permission-less mode.

This method can only be called by address with DEFAULT_ADMIN_ROLE.

Call Parameters:

Name
Type
Description

_status

bool

true to enable the permission-less mode

SetWhiteListMode (KYC)

function setWhiteListMode(address _vault, bool _status) external

Settles the KYC mode of a vault.

This method can only be called by address with DEFAULT_ADMIN_ROLE.

Call Parameters:

Name
Type
Description

_vault

address

address of a vault

_status

bool

true to enable the KYC mode

SetKYCTokenImp

function setKYCTokenImp(address _newKYCTokenImp) external

Settles the implementation address of the KYCToken.

This method can only be called by address with DEFAULT_ADMIN_ROLE.

Call Parameters:

Name
Type
Description

_newKYCTokenImp

address

the address of the contract containing the new implementation

PreviousFeesManagerNextKYCToken

Last updated 2 years ago

🧠
⛔