📁
Teller
  • Teller Protocol
  • Legal
    • Terms of Use
    • Privacy Policy
    • Cookie & Data Policies
  • Contracts
    • Node Network
    • Price Oracles
    • Settings.sol
    • LoansBase.sol
    • Consensus.sol
    • Gas usage
  • ATM Contracts
    • ATM Deposits & Withdrawals
  • Testing Guide
    • Getting Testnet Tokens - Rinkeby
    • Getting Testnet Tokens - Ropsten
  • Privileged Roles & Ownership
    • Overview
    • TLR Token
    • Progressive Pauser Role Ownership
  • Node & Infrastructure
    • Overview
    • Local Development
  • Platform Settings
    • Overview
Powered by GitBook
On this page

Was this helpful?

  1. Contracts

Gas usage

We collected the main list of functions available for users and calculated how much gas would use each of those functions.

Function

Estimate gas

EtherCollateralLoans.createLoanWithTerms()

1138154

TokenCollateralLoans.createLoanWithTerms()

1191193

EtherCollateralLoans.takeOutLoan()

672555

TokenCollateralLoans.takeOutLoan()

657603

EtherCollateralLoans.depositCollateral()

290760

TokenCollateralLoans.depositCollateral()

373961

EtherCollateralLoans.withdrawCollateral()

313009

TokenCollateralLoans.withdrawCollateral()

345523

LoansBase.repay()

406496

LoansBase.liquidateLoan()

421461

Lenders.setAccruedInterest()

374708

LendingPool.deposit()

1104599

LendingPool.withdraw()

1266276

LendingPool.withdrawInterest()

898116

PreviousConsensus.solNextATM Deposits & Withdrawals

Last updated 4 years ago

Was this helpful?