Giter Site home page Giter Site logo

aave-v3-periphery's People

Contributors

awtammsaar avatar foodaka avatar github-actions[bot] avatar grothem avatar kartojal avatar lherskind avatar merlinegalite avatar miguelmtzinf avatar sakulstra avatar sendra avatar the-3d avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

aave-v3-periphery's Issues

Fix Incentives Controller with low decimal tokens

Low decimal tokens can cause an overflow at the index due the IncentivesController is fixed to work with 18 decimals at the index level.

The fix should allow low decimal tokens to be supported by the Incentives Controller contract.

UiIncentiveDataProviderV3 breaks if vTokens have zero incentives controller

If vTokenIncentiveController is zero, the following call will revert.

);
// Get vTokens rewards information
IRewardsController vTokenIncentiveController = IRewardsController(
address(IncentivizedERC20(baseData.variableDebtTokenAddress).getIncentivesController())
);
address[] memory vTokenRewardAddresses = vTokenIncentiveController.getRewardsByAsset(

ParaSwapRepayAdapter cannot repay with same asset

When a user has collateral and borrow position of the same asset, they aren't able to repay with this adapter since it attempts to swap the asset for itself.

This isn't an issue in V3 because of the repayWithATokens feature, but in V2, users can be locked into leveraged positions because of this

IRewardsController.handleAction() function is wrong (parameters do not match)

Parameters of the IRewardsController,handleAction():

  function handleAction(
    address user,
    uint256 userBalance,
    uint256 totalSupply
  ) external;

Parameters of the RewardsController,handleAction():

  function handleAction(
    address user,
    uint256 totalSupply,
    uint256 userBalance
  ) external override {
    _updateData(msg.sender, user, userBalance, totalSupply);
  }

New UiPoolDataProvider params

Add new params to the UiPoolDataProvider so we have all the information necessary for the new v3 logic and calculations on the libs / clients / apis

I noticed this one:

I noticed this one:

-    df["category"] = Series(
-        np.array(list("abcdefghij")).take(np.random.randint(0, 10, size=n))
-    ).astype("category")
+    df["category"] = (
+        Series(
+            np.array(list("abcdefghij")).take(np.random.randint(0, 10, size=n))
+        ).astype("category")
+    )

which I realize is another example of what you meant by 2.

Originally posted by @JelleZijlstra in psf/black#3368 (comment)

Gas golfing the incentives controller

The incentives controller logic needs to be refactored to reduce gas impact. The following can be applied

  • Pack userIndex and accrued rewards together to reduce the storage footprint
  • Get rid of two of the three events in the handleAction function and group all the data emitted in one event
  • Simplify calculations, use unchecked for loops

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.