{"version":1,"pages":[{"id":"w1IxSjIS8GFHvSUuwuaE","title":"Introduction","pathname":"/aave-book","siteSpaceId":"sitesp_STfnx","description":""},{"id":"cM6ff5iW2gAxrmoU3LSg","title":"TradFi vs DeFi: Lending","pathname":"/aave-book/tradfi-vs-defi-lending","siteSpaceId":"sitesp_STfnx","description":""},{"id":"T46jqvGmcHmbJ0ZXzOgG","title":"Market forces x Interest Rate Models","pathname":"/aave-book/market-forces-x-interest-rate-models","siteSpaceId":"sitesp_STfnx","description":"Borrow Demand -> Utilization -> Borrow rate -> Supply rate"},{"id":"Fi9Uf4IicqQkdWSIUq4U","title":"On Indexes","pathname":"/aave-book/on-indexes","siteSpaceId":"sitesp_STfnx","description":""},{"id":"wFHKLoFx17U6ohmcOypZ","title":"Why use indexes?","pathname":"/aave-book/on-indexes/why-use-indexes","siteSpaceId":"sitesp_STfnx","description":"","breadcrumbs":[{"label":"On Indexes"}]},{"id":"aXqM0XumoG9w12T4ycPv","title":"Scaling and ATokens","pathname":"/aave-book/scaling-and-atokens","siteSpaceId":"sitesp_STfnx","description":""},{"id":"bm19cGov4zmZeZRDCsh0","title":"Deposit & Borrow Interest","pathname":"/aave-book/deposit-and-borrow-interest","siteSpaceId":"sitesp_STfnx","description":""},{"id":"Y7NePUOvKvehDQv1HRVG","title":"Stable borrowing","pathname":"/aave-book/stable-borrowing","siteSpaceId":"sitesp_STfnx","description":""},{"id":"v1bKnBa77i9M8pXN5B3i","title":"Under construction","pathname":"/aave-book/stable-borrowing/under-construction","siteSpaceId":"sitesp_STfnx","emoji":"1f6a7","breadcrumbs":[{"label":"Stable borrowing"}]},{"id":"hRkAbV4KHzSS8TWeQDdG","title":"Liquidation","pathname":"/aave-book/liquidation","siteSpaceId":"sitesp_STfnx","description":"https://docs.aave.com/risk/asset-risk/risk-parameters#liquidation-threshold"},{"id":"SaL7Ch7PTpIjIpYrBvbL","title":"TODO: Full example","pathname":"/aave-book/liquidation/todo-full-example","siteSpaceId":"sitesp_STfnx","emoji":"1f6a7","breadcrumbs":[{"label":"Liquidation"}]},{"id":"ksdBD0nd4zXuX2Q7oQX0","title":"Under construction: oracles","pathname":"/aave-book/liquidation/under-construction-oracles","siteSpaceId":"sitesp_STfnx","emoji":"1f6a7","description":"","breadcrumbs":[{"label":"Liquidation"}]},{"id":"IFG4EhQxIup1nu4MAmle","title":"Bitmap & Masks","pathname":"/aave-book/primer/bitmap-and-masks","siteSpaceId":"sitesp_STfnx","description":"","breadcrumbs":[{"label":"Primer"}]},{"id":"fqmpf9PIQaXcnIvo8QdX","title":"padding and bytes","pathname":"/aave-book/primer/bitmap-and-masks/padding-and-bytes","siteSpaceId":"sitesp_STfnx","emoji":"1f6a7","description":"","breadcrumbs":[{"label":"Primer"},{"label":"Bitmap & Masks"}]},{"id":"FzKweiClYMZh9dw59hsR","title":"WadRayLibrary","pathname":"/aave-book/primer/wadraylibrary","siteSpaceId":"sitesp_STfnx","description":"","breadcrumbs":[{"label":"Primer"}]},{"id":"H0k7svMRCHzrzRmm2BjX","title":"Math Operations","pathname":"/aave-book/primer/wadraylibrary/math-operations","siteSpaceId":"sitesp_STfnx","description":"","breadcrumbs":[{"label":"Primer"},{"label":"WadRayLibrary"}]},{"id":"B7XZn058Z1xJBa208Kiq","title":"WIP: Scaling different decimal representations","pathname":"/aave-book/primer/wadraylibrary/wip-scaling-different-decimal-representations","siteSpaceId":"sitesp_STfnx","emoji":"1f6a7","description":"","breadcrumbs":[{"label":"Primer"},{"label":"WadRayLibrary"}]},{"id":"Gwa18CtqQrKP6Nh7uF9c","title":"WIP: 2's complement","pathname":"/aave-book/primer/wadraylibrary/wip-2s-complement","siteSpaceId":"sitesp_STfnx","emoji":"1f6a7","description":"","breadcrumbs":[{"label":"Primer"},{"label":"WadRayLibrary"}]},{"id":"cXdvLcbbKOwRm4Jrs7NS","title":"casting: to uint128","pathname":"/aave-book/primer/wadraylibrary/casting-to-uint128","siteSpaceId":"sitesp_STfnx","emoji":"1f6a7","breadcrumbs":[{"label":"Primer"},{"label":"WadRayLibrary"}]},{"id":"xjLC8QpLVG1pG6NNJ98J","title":"PercentageMath","pathname":"/aave-book/primer/percentagemath","siteSpaceId":"sitesp_STfnx","description":"","breadcrumbs":[{"label":"Primer"}]},{"id":"8G61DifUmrDyAnn73eEu","title":"Embedded vs Linked Libraries","pathname":"/aave-book/primer/embedded-vs-linked-libraries","siteSpaceId":"sitesp_STfnx","breadcrumbs":[{"label":"Primer"}]},{"id":"RPo5hGifAL8jmvcqzjTU","title":"General Execution flow","pathname":"/aave-book/functions/general-execution-flow","siteSpaceId":"sitesp_STfnx","description":"","breadcrumbs":[{"label":"Functions"}]},{"id":"5pUbT6xbBgPBe7jIHALp","title":"Architecture & Design choices","pathname":"/aave-book/functions/architecture-and-design-choices","siteSpaceId":"sitesp_STfnx","description":"","breadcrumbs":[{"label":"Functions"}]},{"id":"R3RsNmUdyUdQH0UuHMtf","title":"Upgradability and Proxies","pathname":"/aave-book/functions/architecture-and-design-choices/upgradability-and-proxies","siteSpaceId":"sitesp_STfnx","emoji":"1f6a7","breadcrumbs":[{"label":"Functions"},{"label":"Architecture & Design choices"}]},{"id":"84fJMIBbvLtbY5C9aYoa","title":"Common Functions","pathname":"/aave-book/functions/common-functions","siteSpaceId":"sitesp_STfnx","description":"","breadcrumbs":[{"label":"Functions"}]},{"id":"meQfNdRlzG33izKOdLU1","title":"getReserveFactor, getDecimals","pathname":"/aave-book/functions/common-functions/getreservefactor-getdecimals","siteSpaceId":"sitesp_STfnx","description":"","breadcrumbs":[{"label":"Functions"},{"label":"Common Functions"}]},{"id":"v2ETQvs7cOPHjNKaJolj","title":".cache","pathname":"/aave-book/functions/common-functions/.cache","siteSpaceId":"sitesp_STfnx","description":"","breadcrumbs":[{"label":"Functions"},{"label":"Common Functions"}]},{"id":"3sIn5FDlqNcMsD0FqfBg","title":".updateState","pathname":"/aave-book/functions/common-functions/.updatestate","siteSpaceId":"sitesp_STfnx","description":"","breadcrumbs":[{"label":"Functions"},{"label":"Common Functions"}]},{"id":"20DTXI1OHomDZJIUlfxn","title":".updateInterestRates","pathname":"/aave-book/functions/common-functions/.updateinterestrates","siteSpaceId":"sitesp_STfnx","description":"","breadcrumbs":[{"label":"Functions"},{"label":"Common Functions"}]},{"id":"u6ZZGnnNeM7vdugMmudr","title":"SupplyCap, BorrowCap","pathname":"/aave-book/functions/common-functions/supplycap-borrowcap","siteSpaceId":"sitesp_STfnx","description":"","breadcrumbs":[{"label":"Functions"},{"label":"Common Functions"}]},{"id":"yQpgQxX3fJuAwGPYc2VT","title":"getFlags","pathname":"/aave-book/functions/common-functions/getflags","siteSpaceId":"sitesp_STfnx","description":"","breadcrumbs":[{"label":"Functions"},{"label":"Common Functions"}]},{"id":"UqV83E4KdgVEIx2UG7L3","title":"more on flags","pathname":"/aave-book/functions/common-functions/getflags/more-on-flags","siteSpaceId":"sitesp_STfnx","emoji":"1f6a7","breadcrumbs":[{"label":"Functions"},{"label":"Common Functions"},{"label":"getFlags"}]},{"id":"z2dNxrMh9A6m6XYQ8c41","title":"calculateUserAccountData","pathname":"/aave-book/functions/common-functions/calculateuseraccountdata","siteSpaceId":"sitesp_STfnx","description":"","breadcrumbs":[{"label":"Functions"},{"label":"Common Functions"}]},{"id":"9EZDUJElt6O2GiWDAZGx","title":"supply","pathname":"/aave-book/functions/supply","siteSpaceId":"sitesp_STfnx","description":"","breadcrumbs":[{"label":"Functions"}]},{"id":"1gKZJ8z2ce3XBsrMR7IH","title":"validateSupply","pathname":"/aave-book/functions/supply/validatesupply","siteSpaceId":"sitesp_STfnx","description":"","breadcrumbs":[{"label":"Functions"},{"label":"supply"}]},{"id":"jOvhPmQo67pBoqvu3btv","title":"transfer & mint","pathname":"/aave-book/functions/supply/transfer-and-mint","siteSpaceId":"sitesp_STfnx","description":"","breadcrumbs":[{"label":"Functions"},{"label":"supply"}]},{"id":"sWOUohMqKdFoNj5oImu8","title":"isFirstSupply","pathname":"/aave-book/functions/supply/isfirstsupply","siteSpaceId":"sitesp_STfnx","description":"","breadcrumbs":[{"label":"Functions"},{"label":"supply"}]},{"id":"WpilOtfdkQOFXGzNkLDt","title":"isUsingAsCollateralOne, isUsingAsCollateralAny","pathname":"/aave-book/functions/supply/isfirstsupply/isusingascollateralone-isusingascollateralany","siteSpaceId":"sitesp_STfnx","description":"","breadcrumbs":[{"label":"Functions"},{"label":"supply"},{"label":"isFirstSupply"}]},{"id":"uTfVMR16pm54KGUMLzyr","title":"On check-effects-interactions pattern","pathname":"/aave-book/functions/supply/on-check-effects-interactions-pattern","siteSpaceId":"sitesp_STfnx","description":"","breadcrumbs":[{"label":"Functions"},{"label":"supply"}]},{"id":"w4IvhywkD3Ua9VuedvpP","title":"withdraw","pathname":"/aave-book/functions/withdraw","siteSpaceId":"sitesp_STfnx","description":"","breadcrumbs":[{"label":"Functions"}]},{"id":"OCAhQDa0pk1f3n7jGbRq","title":"get user balance & withdraw amount","pathname":"/aave-book/functions/withdraw/get-user-balance-and-withdraw-amount","siteSpaceId":"sitesp_STfnx","description":"","breadcrumbs":[{"label":"Functions"},{"label":"withdraw"}]},{"id":"OxnGXEUACgrp0HvYAe2S","title":"validateWithdraw","pathname":"/aave-book/functions/withdraw/validatewithdraw","siteSpaceId":"sitesp_STfnx","description":"","breadcrumbs":[{"label":"Functions"},{"label":"withdraw"}]},{"id":"9WvUZib4FuOkgkx1cRC7","title":"collateral check","pathname":"/aave-book/functions/withdraw/collateral-check","siteSpaceId":"sitesp_STfnx","description":"","breadcrumbs":[{"label":"Functions"},{"label":"withdraw"}]},{"id":"36S9N18tCHGYX7kSJolB","title":"burn ATokens","pathname":"/aave-book/functions/withdraw/burn-atokens","siteSpaceId":"sitesp_STfnx","description":"","breadcrumbs":[{"label":"Functions"},{"label":"withdraw"}]},{"id":"6CVmFVl32WctO4BkSLtY","title":"Ensure existing loans are collateralized","pathname":"/aave-book/functions/withdraw/ensure-existing-loans-are-collateralized","siteSpaceId":"sitesp_STfnx","description":"","breadcrumbs":[{"label":"Functions"},{"label":"withdraw"}]},{"id":"ZABwxOifhe5YpI8H65YI","title":"borrow","pathname":"/aave-book/functions/borrow","siteSpaceId":"sitesp_STfnx","description":"","breadcrumbs":[{"label":"Functions"}]},{"id":"c3wGFKX0a4h7GQdDnJ5K","title":"getIsolationModeState","pathname":"/aave-book/functions/borrow/getisolationmodestate","siteSpaceId":"sitesp_STfnx","description":"","breadcrumbs":[{"label":"Functions"},{"label":"borrow"}]},{"id":"gqLoR2n59T5lpZQpTFvD","title":".validateBorrow","pathname":"/aave-book/functions/borrow/.validateborrow","siteSpaceId":"sitesp_STfnx","description":"","breadcrumbs":[{"label":"Functions"},{"label":"borrow"}]},{"id":"xBbOptAjQOY38K38ata6","title":"Mint debt token","pathname":"/aave-book/functions/borrow/mint-debt-token","siteSpaceId":"sitesp_STfnx","description":"","breadcrumbs":[{"label":"Functions"},{"label":"borrow"}]},{"id":"au8Es8vPovIP3e2dVRtP","title":"setBorrowing","pathname":"/aave-book/functions/borrow/setborrowing","siteSpaceId":"sitesp_STfnx","description":"","breadcrumbs":[{"label":"Functions"},{"label":"borrow"}]},{"id":"lXpzELePKruhhbKc2gmg","title":"update IsolationMode debt","pathname":"/aave-book/functions/borrow/update-isolationmode-debt","siteSpaceId":"sitesp_STfnx","description":"","breadcrumbs":[{"label":"Functions"},{"label":"borrow"}]},{"id":"x35OCT4V0DuUJs7wIC7j","title":"transfer underlying to user","pathname":"/aave-book/functions/borrow/transfer-underlying-to-user","siteSpaceId":"sitesp_STfnx","description":"","breadcrumbs":[{"label":"Functions"},{"label":"borrow"}]},{"id":"hgwTo8dLcq5Rc3KXwN0p","title":"repay","pathname":"/aave-book/functions/repay","siteSpaceId":"sitesp_STfnx","description":"","breadcrumbs":[{"label":"Functions"}]},{"id":"NGwYoqsAzYrKHDLmwK2K","title":"get current debt","pathname":"/aave-book/functions/repay/get-current-debt","siteSpaceId":"sitesp_STfnx","description":"","breadcrumbs":[{"label":"Functions"},{"label":"repay"}]},{"id":"vIPzwGCFkSF5BdrTuRqK","title":"validateRepay, paybackAmount","pathname":"/aave-book/functions/repay/validaterepay-paybackamount","siteSpaceId":"sitesp_STfnx","description":"","breadcrumbs":[{"label":"Functions"},{"label":"repay"}]},{"id":"iOAyhx7yEtJJSBqy8lON","title":"burn debt tokens","pathname":"/aave-book/functions/repay/burn-debt-tokens","siteSpaceId":"sitesp_STfnx","description":"","breadcrumbs":[{"label":"Functions"},{"label":"repay"}]},{"id":"l0VUGopQ5k7ZCpHWMJeh","title":"Cleanup + Collect repay","pathname":"/aave-book/functions/repay/cleanup-+-collect-repay","siteSpaceId":"sitesp_STfnx","description":"","breadcrumbs":[{"label":"Functions"},{"label":"repay"}]},{"id":"nRZCCbtUyhh4WgXmJ6f9","title":"liquidate","pathname":"/aave-book/functions/liquidate","siteSpaceId":"sitesp_STfnx","description":"liquidationCall()","breadcrumbs":[{"label":"Functions"}]},{"id":"c1A3wnLYiI1xdAiri9kI","title":"_calculateDebt","pathname":"/aave-book/functions/liquidate/_calculatedebt","siteSpaceId":"sitesp_STfnx","description":"","breadcrumbs":[{"label":"Functions"},{"label":"liquidate"}]},{"id":"r5kXC8GRUFLeGcEvvtH6","title":"validateLiquidationCall","pathname":"/aave-book/functions/liquidate/validateliquidationcall","siteSpaceId":"sitesp_STfnx","description":"","breadcrumbs":[{"label":"Functions"},{"label":"liquidate"}]},{"id":"5XqVL2yadDaAd9VhdBvc","title":"getConfigurationData","pathname":"/aave-book/functions/liquidate/getconfigurationdata","siteSpaceId":"sitesp_STfnx","description":"","breadcrumbs":[{"label":"Functions"},{"label":"liquidate"}]},{"id":"GUfRmr8UTG4CqBHk7GTP","title":"calculateAvailableCollateralToLiquidate","pathname":"/aave-book/functions/liquidate/calculateavailablecollateraltoliquidate","siteSpaceId":"sitesp_STfnx","description":"","breadcrumbs":[{"label":"Functions"},{"label":"liquidate"}]},{"id":"1Ag39RE35w97z7qxhrql","title":"_burnDebtTokens","pathname":"/aave-book/functions/liquidate/_burndebttokens","siteSpaceId":"sitesp_STfnx","emoji":"1f6a7","description":"","breadcrumbs":[{"label":"Functions"},{"label":"liquidate"}]},{"id":"7iF4PjC4cKRQnO6jDhzD","title":"liquidate/burn collateral","pathname":"/aave-book/functions/liquidate/liquidate-burn-collateral","siteSpaceId":"sitesp_STfnx","description":"","breadcrumbs":[{"label":"Functions"},{"label":"liquidate"}]},{"id":"ORT6UwSPEoBK0BVdrHeG","title":"liquidation Fee","pathname":"/aave-book/functions/liquidate/liquidation-fee","siteSpaceId":"sitesp_STfnx","description":"","breadcrumbs":[{"label":"Functions"},{"label":"liquidate"}]},{"id":"K1wDbqmod9xKgpX5SJr9","title":"Wrap-up","pathname":"/aave-book/functions/liquidate/wrap-up","siteSpaceId":"sitesp_STfnx","description":"","breadcrumbs":[{"label":"Functions"},{"label":"liquidate"}]},{"id":"s9qVZZVgwwLW4LMBR0Sb","title":"swapBorrowRateMode","pathname":"/aave-book/functions/swapborrowratemode","siteSpaceId":"sitesp_STfnx","emoji":"1f6a7","description":"","breadcrumbs":[{"label":"Functions"}]},{"id":"iy3NYFiJzF2tNAWvEABV","title":"setUserUseReserveAsCollateral","pathname":"/aave-book/functions/setuserusereserveascollateral","siteSpaceId":"sitesp_STfnx","emoji":"1f6a7","description":"","breadcrumbs":[{"label":"Functions"}]},{"id":"4Ue9br8bUXL6lqmCTpAb","title":"AToken","pathname":"/aave-book/contracts/atoken","siteSpaceId":"sitesp_STfnx","description":"","breadcrumbs":[{"label":"Contracts"}]},{"id":"kQOUlIl0U78HapGvJDlt","title":"Simple example: mint & balanceOf","pathname":"/aave-book/contracts/atoken/simple-example-mint-and-balanceof","siteSpaceId":"sitesp_STfnx","breadcrumbs":[{"label":"Contracts"},{"label":"AToken"}]},{"id":"Xn49nvVpYhr8XkjiKURg","title":"StableDebtToken","pathname":"/aave-book/contracts/stabledebttoken","siteSpaceId":"sitesp_STfnx","description":"https://docs.aave.com/developers/v/2.0/the-core-protocol/debt-tokens","breadcrumbs":[{"label":"Contracts"}]},{"id":"rr7MfZFoosB7UjlQMkxC","title":"Implementation explained","pathname":"/aave-book/contracts/stabledebttoken/implementation-explained","siteSpaceId":"sitesp_STfnx","breadcrumbs":[{"label":"Contracts"},{"label":"StableDebtToken"}]},{"id":"C6WhOedKHneSxExEpCJd","title":"VariableDebtToken","pathname":"/aave-book/contracts/variabledebttoken","siteSpaceId":"sitesp_STfnx","breadcrumbs":[{"label":"Contracts"}]},{"id":"KK8H8nicBzDOj951h3m3","title":"DefaultReserveInterestRateStrategy","pathname":"/aave-book/contracts/defaultreserveinterestratestrategy","siteSpaceId":"sitesp_STfnx","description":"https://docs.aave.com/developers/deployed-contracts/v3-mainnet/ethereum-mainnet","breadcrumbs":[{"label":"Contracts"}]},{"id":"ClIuShbjA9egOB6Xa1e4","title":"L2","pathname":"/aave-book/contracts/l2","siteSpaceId":"sitesp_STfnx","description":"","breadcrumbs":[{"label":"Contracts"}]},{"id":"C49XX6YhzhGCmhaP8vN9","title":"PriceOracleSentinel","pathname":"/aave-book/contracts/l2/priceoraclesentinel","siteSpaceId":"sitesp_STfnx","emoji":"1f6a7","breadcrumbs":[{"label":"Contracts"},{"label":"L2"}]},{"id":"4YUKKIS2uYwBG9HO39tY","title":"Under construction","pathname":"/aave-book/audit-findings/under-construction","siteSpaceId":"sitesp_STfnx","emoji":"1f6a7","breadcrumbs":[{"label":"Audit findings"}]},{"id":"PGY3srZaewVtBAupPLxv","title":"Simple, Compound, APR, APY","pathname":"/aave-book/appendix/simple-compound-apr-apy","siteSpaceId":"sitesp_STfnx","description":"","breadcrumbs":[{"label":"Appendix"}]},{"id":"N3QeSOzEHyvA9ZnsAPmc","title":"Risk Management","pathname":"/aave-book/aave-features/risk-management","siteSpaceId":"sitesp_STfnx","description":"","breadcrumbs":[{"label":"Aave Features"}]},{"id":"IvQ1kaWDXYqbzwQbZbuz","title":"Supply & Borrow Caps","pathname":"/aave-book/aave-features/risk-management/supply-and-borrow-caps","siteSpaceId":"sitesp_STfnx","description":"","breadcrumbs":[{"label":"Aave Features"},{"label":"Risk Management"}]},{"id":"32axmob0fLwRzKeLCZ7v","title":"Isolation Mode","pathname":"/aave-book/aave-features/risk-management/isolation-mode","siteSpaceId":"sitesp_STfnx","description":"","breadcrumbs":[{"label":"Aave Features"},{"label":"Risk Management"}]},{"id":"offB9DJdBdjP4CeaOflV","title":"Siloed Borrowing","pathname":"/aave-book/aave-features/risk-management/siloed-borrowing","siteSpaceId":"sitesp_STfnx","description":"https://docs.aave.com/developers/whats-new/siloed-borrowing","breadcrumbs":[{"label":"Aave Features"},{"label":"Risk Management"}]},{"id":"mtgLPBokxOfBWDdCpaF7","title":"Other features","pathname":"/aave-book/aave-features/other-features","siteSpaceId":"sitesp_STfnx","description":"","breadcrumbs":[{"label":"Aave Features"}]},{"id":"jAsZpMg2qD9NOyaZB8ed","title":"Repay with ATokens","pathname":"/aave-book/aave-features/other-features/repay-with-atokens","siteSpaceId":"sitesp_STfnx","description":"","breadcrumbs":[{"label":"Aave Features"},{"label":"Other features"}]},{"id":"v6ZQTQgnaDUvq23CKfpo","title":"eMode: High efficiency Mode","pathname":"/aave-book/aave-features/other-features/emode-high-efficiency-mode","siteSpaceId":"sitesp_STfnx","description":"https://docs.aave.com/developers/whats-new/efficiency-mode-emode","breadcrumbs":[{"label":"Aave Features"},{"label":"Other features"}]},{"id":"OHZPQ7ME9scWbQZnFwlK","title":"Aave Vault","pathname":"/aave-book/aave-features/other-features/aave-vault","siteSpaceId":"sitesp_STfnx","emoji":"1f6a7","description":"","breadcrumbs":[{"label":"Aave Features"},{"label":"Other features"}]},{"id":"fPvkSqHpMmMJgAAhQjui","title":"Portal","pathname":"/aave-book/aave-features/other-features/portal","siteSpaceId":"sitesp_STfnx","emoji":"1f6a7","description":"","breadcrumbs":[{"label":"Aave Features"},{"label":"Other features"}]}]}