πŸ‘»
Aave Book
search
⌘Ctrlk
πŸ‘»
Aave Book
  • Introduction
  • TradFi vs DeFi: Lending
  • Market forces x Interest Rate Models
  • On Indexes
  • Scaling and ATokens
  • Deposit & Borrow Interest
  • Stable borrowing
  • Liquidation
  • Primer
    • Bitmap & Masks
    • WadRayLibrary
      • Math Operations
      • 🚧WIP: Scaling different decimal representations
      • 🚧WIP: 2's complement
      • 🚧casting: to uint128
    • PercentageMath
    • Embedded vs Linked Libraries
  • Functions
    • General Execution flow
    • Architecture & Design choices
    • Common Functions
    • supply
    • withdraw
    • borrow
    • repay
    • liquidate
    • 🚧swapBorrowRateMode
    • 🚧setUserUseReserveAsCollateral
  • Contracts
    • AToken
    • StableDebtToken
    • VariableDebtToken
    • DefaultReserveInterestRateStrategy
    • L2
  • Audit findings
    • 🚧Under construction
  • Appendix
    • Simple, Compound, APR, APY
  • Aave Features
    • Risk Management
    • Other features
gitbookPowered by GitBook
block-quoteOn this pagechevron-down
githubEdit
  1. Primerchevron-right
  2. WadRayLibrary

🚧WIP: 2's complement

  • https://www.rareskills.io/post/signed-int-solidityarrow-up-right

  • https://stackoverflow.com/questions/1049722/what-is-twos-complementarrow-up-right

  • also search 1s complement

PreviousWIP: Scaling different decimal representationschevron-leftNextcasting: to uint128chevron-right

Last updated 2 years ago