saffron.finance
HomeGovernanceLaunch App
  • Introduction
  • Saffron Finance
    • ♨️ Saffron V2
      • Saffron KCC
        • Saffron Converter
        • Saffron Insurance Fund
        • Saffron Mojito Adapter v2
        • Saffron Mojito Auto Compounder
        • Saffron Pool v2
        • Saffron Position NFT
        • Saffron Position Token
      • Saffron V2 Protocol
      • Saffron Staking V2
        • Saffron Staking V2
        • SFI Rewarder
    • 🌺Saffron V1
    • 🎓Saffron Academy
    • 📝Whitepaper
  • Governance
    • Vote
    • Governance
  • Community
    • Twitter
    • Telegram
    • Discord
    • Github
    • Medium
    • Youtube
Powered by GitBook
On this page
  • Introduction
  • Miscellaneous State Variables

Was this helpful?

  1. Saffron Finance
  2. ♨️ Saffron V2
  3. Saffron KCC

Saffron Position NFT

PreviousSaffron Pool v2NextSaffron Position Token

Last updated 3 years ago

Was this helpful?

Introduction

Saffron Position NFT representing Junior Tranche deposits and lock time

Miscellaneous State Variables

Type
Visibility
Name
Description

address

public

pool

Address of Saffron pool that owns this NFT

address

public

insurance_fund

Address of Saffron insurance fund

uint256

public

next_id

NFT tokenId counter

mapping(uint256=>uint256)

public

tranche

NFT(tokenID) variable: Tranche

mapping(uint256=>uint256)

public

balance

NFT(tokenID) variable: User's balance in this tranche LP

mapping(uint256=>uint256)

public

principal

NFT(tokenID) variable: Principal when user enters pool

mapping(uint256=>uint256)

public

expiration

NFT(tokenID) variable: Expiration date when NFT is unfrozen

Constructor

constructor(string memory name_, string memory symbol_) ERC721(name_, symbol_)
Type
Name
Description

string

name_

Name of position NFTs

string

symbol_

Symbol for position NFTs

renew()

DEPRECATED

function renew(uint256 token_id) external
Type
Name
Description

uint256

token_id

Position NFT ID to be checked

burn()

Burn Position NFT as part of a withdrawal

function burn(uint256 token_id) external
Type
Name
Description

uint256

token_id

Position NFT ID to be burned

begin_unfreeze()

Begin to unfreeze an NFT so it may be withdrawn

function begin_unfreeze(address user, uint256 token_id) external
Type
Name
Description

address

user

Address of user attempting to unfreeze

uint256

token_id

Position NFT ID to be unfrozen

set_insurance_fund()

Set a new Saffron Insurance Fund to provide coverage

function set_insurance_fund(address to) external
Type
Name
Description

uint256

token_id

Position NFT ID to be burned

baseURI()

NFT Metadata baseURI

function baseURI() external

tokenURI()

NFT metadata tokenURI

function tokenURI(uint256 token_id) external
Type
Name
Description

uint256

token_id

Position NFT ID to be checked

Source Code
Source Code
Source Code
Source Code
Source Code
Source Code
Source Code
Source Code