Structs

Definition of structures used in Renfter Protocol

Offer

struct Offer {
    address lender;
    uint96 pricePerSecond;
    uint64 maxRentDuration;
    address beneficiary;
}

Structure containing rental offer data

Properties

Name
Type
Description

lender

address

Token lender address

pricePerSecond

uint96

Price per second during rental period

maxRentDuration

uint64

Maximum rent duration in seconds

beneficiary

address

Address that should hold original token during rental period

Rent

struct Rent {
    address holderWallet;
    uint64 expirationTs;
}

Structure containing rental data

Properties

Name
Type
Description

holderWallet

address

Wallet address holding original token during retal period

expirationTs

uint64

Rent expiration timestamp (UNIX)

ConditionsParams

struct ConditionsParams {
    uint96 pricePerSecond;
    uint64 maxRentDuration;
    address beneficiary;
}

Structure containing offer conditions

Properties

Name
Type
Description

pricePerSecond

uint96

Price per second during rental period

maxRentDuration

uint64

Maximum rent duration in seconds

beneficiary

address

Address that should hold original token during rental period

WhitelistedParams

struct WhitelistedParams {
    bytes4 selector;
    uint112 callLimit;
}

Structure used for setting whitelisting method selectors

Properties

Name
Type
Description

selector

bytes4

Method selector

callLimit

uint112

Limit of calls for method

Whitelisted

 struct Whitelisted {
    bytes4 selector;
    uint112 callCount;
    uint112 callLimit;
}

Structure for storing whitelisted selectors data

Properties

Name
Type
Description

selector

bytes4

Method selector

callCount

uint112

Current call count

callLimit

uint112

Limit of calls for method

Last updated