Core Contracts

This document provides a detailed overview of the Noderr Protocol's core smart contracts, including their public interfaces and functions.


Vaults

For deployed contract addresses, see Contract Addresses.

Functions

  • deposit(uint256 amount): Deposits the specified amount of the underlying asset into the vault.
  • withdraw(uint256 amount): Initiates the withdrawal of the specified amount of vault tokens.
  • claim(): Claims withdrawn funds after the 28-day unbonding period.

StakingManager

Functions

  • stake(uint256 amount): Stakes the specified amount of NODR tokens.
  • unstake(uint256 amount): Initiates the unstaking of the specified amount of NODR tokens.
  • claimRewards(): Claims accumulated staking rewards.

TrustFingerprint

Functions

  • getScore(address user): Returns the TrustFingerprint score for the specified user.
  • updateScore(address user, uint256 newScore): (Guardian/Oracle only) Updates the score for the specified user.

Governance

Functions

  • propose(...): Submits a new governance proposal.
  • castVote(uint256 proposalId, bool support): Casts a vote on the specified proposal.
  • execute(uint256 proposalId): Executes a passed proposal.

results matching ""

    No results matching ""