Commit Graph

1356 Commits

Author SHA1 Message Date
eboado
006a9ef1ed - Refactor digest encoding header to constant 2021-04-13 14:27:33 +02:00
eboado
07b42f99a7 - Refactored Errors on StaticAToken to library 2021-04-13 14:24:28 +02:00
eboado
ac9a124e77 - Gas optimization on _withdraw() on StaticAToken 2021-04-13 14:01:52 +02:00
eboado
57ab78d1cb - Renamed withdrawDynamicAmount() to withdrawInDynamicAmount() 2021-04-13 13:12:37 +02:00
eboado
9d3cfe02dc - Improve comments about referralCode input parameter on IStaticAToken 2021-04-13 13:09:10 +02:00
eboado
76b6e92136 - Added function to "renew" approval on LendingPool on StaticAToken
- Replace natspec on StaticAToken with @inheritdoc, to avoid duplications with interface
2021-04-13 12:44:17 +02:00
eboado
d0834a8960 - Added nonReentrant modifier on StaticAToken external functions 2021-04-12 16:18:12 +02:00
eboado
b1bc1d5168 - Solve non-used return values.
- Use safeApprove() and gas optimization on constructor.
2021-04-12 14:22:00 +02:00
eboado
c4bcddbaf5 - Renamed shadowed variables on _dynamicToStaticAmount() and _staticToDynamicAmount() 2021-04-12 12:31:50 +02:00
Hadrien Charlanes
314aa37de2 Tested and Fixed contract 2021-03-24 11:37:43 +01:00
eboado
a3e11800a4 - Added basic flow test of StaticAToken + template of other tests needed 2021-02-17 13:10:24 +01:00
eboado
7c555ba55a - Added return params for deposit and withdrawal
- Fixed amountToBurn and amountToWithdraw on _withdraw()
2021-02-17 13:01:52 +01:00
eboado
068a17ca62 - Added possibility of withdraw using dynamic amounts 2021-02-17 10:47:19 +01:00
eboado
1fa797ec40 - Fixed _withdraw() logic StaticAToken 2021-02-16 11:51:06 +01:00
eboado
8352ada9e1 - Fixed recipient of aTokens 2021-02-16 10:19:15 +01:00
eboado
28cb41b8ca - Initial version of StaticAToken 2021-02-15 11:10:01 +01:00
Ernesto Boado
2708551bcf
Merge pull request #23 from aave/gitlab-merge
Bring GitHub up to date with GitLab
2021-02-05 10:07:34 +01:00
Zer0dot
32ddc01ba9 Fixed slight merge errors 2021-02-04 14:12:08 -05:00
Zer0dot
39e994f533 Checked out unmerged readme from gitlab 2021-02-04 13:47:19 -05:00
Zer0dot
fc5129ec44 Checked out unmerged audit file from gitlab 2021-02-04 13:45:56 -05:00
Zer0dot
0d1e673f56 Removed an un-merged line break 2021-02-04 13:43:59 -05:00
Zer0dot
d3de30ff55 Merge remote-tracking branch 'gitlab/master' into gitlab-merge 2021-02-04 12:54:38 -05:00
Ernesto Boado
de6437b54e
Merge pull request #20 from aave/fix/adapter-reserve
Fixed memory usage adapter
2021-02-04 08:46:42 +01:00
dhadrien
9e62528b98 Fixed memory usage 2021-02-03 15:57:34 +01:00
The-3D
776a6a4aae Merge branch 'fix/hardhat-time-error' into 'master'
Fix master test suite at CI

See merge request aave-tech/protocol-v2!226
2021-02-03 09:43:49 +00:00
David Racero
56e5efd47b Add a comment to specify why retries are being used at scenarios tests suite 2021-02-03 09:22:22 +00:00
David Racero
f106502c72 Add retries to scenarios to prevent random networking bug. 2021-02-01 19:24:50 +01:00
David Racero
3f6dd8a0f0 Update hardhat to latest version. Add timeout to advanceTimeAndBlock function. 2021-02-01 17:54:02 +01:00
David Racero
a4a6d3d437 WIP change implementation of increaseTime 2021-02-01 16:40:11 +01:00
emilio
00f414b681 Updated test description 2021-02-01 16:16:42 +01:00
Ernesto Boado
f48c8d7395 Merge branch '183-flash-liquidation-adapter' into 'master'
Flash liquidation adapter

Closes #183

See merge request aave-tech/protocol-v2!212
2021-02-01 14:55:03 +00:00
Ernesto Boado
9b509eadbb
Merge pull request #17 from aave/fix/eth-eth-repay-w-collateral
Fix eth->eth repay with collateral
2021-02-01 15:18:32 +01:00
andyk
9f94f04b6c fix eth->eth repay with collateral 2021-02-01 17:13:53 +03:00
David Racero
211dca7a07 Add new variable borrowedAssetLeftovers to improve readability 2021-02-01 13:24:07 +01:00
The-3D
480e1a22a8
Merge pull request #16 from aave/github/feat/15-sp-report
Adds SigmaPrime audit report
2021-02-01 09:17:21 +01:00
eboado
f32aa520e2 - Added SigmaPrime audit report 2021-02-01 09:03:58 +01:00
David Racero
37ac8b5297 Add new edge case when flash liquidation same asset. Add tests. 2021-01-29 18:09:06 +01:00
David Racero
d464b0d592 Pull master and fix conflicts 2021-01-29 13:27:12 +01:00
The-3D
57d9d48bf8 Merge branch '201-add-protocol-contracts-to-the-npm' into 'master'
Add protocol contracts to the npm

Closes #201

See merge request aave-tech/protocol-v2!224
2021-01-29 09:13:42 +00:00
Ernesto Boado
b029c9436e Merge branch '198-add-lint-ci-ctep-to-reject-unformatted-code' into 'master'
Add lint CI ctep to reject unformatted code

See merge request aave-tech/protocol-v2!225
2021-01-28 13:32:39 +00:00
David Racero
80cfc7d0fe Add fixed format scenario test 2021-01-28 09:51:52 +01:00
David Racero
da0b13757a Fix scenario and rename jobs 2021-01-27 16:57:26 +01:00
David Racero
ba054edbd9 Test formatting error 2021-01-27 16:02:44 +01:00
David Racero
17af598680 Add missing npm run to script 2021-01-27 15:58:38 +01:00
David Racero
abb17b004d Fix pre-commit 2021-01-27 15:46:04 +01:00
David Racero
6a503eb0a8 Lint files. Add all ts and sol files to pre-commit. Add prettier format check to CI. 2021-01-27 15:43:34 +01:00
David Racero
89db02e79c Add include 2021-01-27 11:50:54 +01:00
David Racero
41b7adb4cc Test super linter at Gitlab and Solidity 2021-01-27 10:49:30 +01:00
David Racero
b2d70ec133 Run tests before publish at master 2021-01-26 14:02:47 +01:00
David Racero
9169e0db62 Add notes about how to use NPM package to import contract or artifacts 2021-01-26 13:46:48 +01:00