Kirill Fedoseev
248ed4681b
Rework upgradeable contracts initialization ( #642 )
2022-02-03 00:00:42 +03:00
Leonid Tyurin
93b1afbe67
Update GSN interface ( #628 )
2021-08-20 12:48:10 +03:00
Kirill Fedoseev
7579b5249e
Separate XDaiForeignBridge contract with compound and GSN support ( #626 )
2021-08-18 13:51:51 +03:00
Leonid Tyurin
37177d30f7
Fix coverage ( #606 )
2021-06-12 00:22:15 +03:00
Leonid Tyurin
f6758222d5
Add GSN support for erc20-to-native bridge mode ( #571 )
2021-05-06 14:31:11 -06:00
Kirill Fedoseev
aa771ecc7e
Remove deprecated bridge types ( #595 )
2021-05-03 07:58:57 -06:00
Kirill Fedoseev
e7f7fae726
Earn interest on locked tokens using Compound Protocol ( #590 )
2021-04-23 11:26:41 -06:00
Kirill Fedoseev
2d9efe2937
Fix behaviour for the unset fee manager contract ( #539 )
2020-10-22 00:24:08 +03:00
Kirill Fedoseev
2b51dcf0c4
Avoid doublespending for transfers above limits ( #509 )
2020-10-19 23:14:12 +03:00
Kirill Fedoseev
d5fc8ab8d5
Add missing checks and return values ( #535 )
2020-10-15 22:09:37 +03:00
Kirill Fedoseev
df296d1790
Restrict relay of tokens for other user ( #475 )
2020-08-22 22:30:27 +03:00
Gerardo Nardelli
dd46135248
Remove half duplex erc20 token code ( #457 )
2020-07-29 21:40:15 +03:00
Kirill Fedoseev
f8aea2366c
Support negative decimal shift ( #448 )
2020-07-17 23:16:41 +03:00
Kirill Fedoseev
de50e600fb
Add erc-to-native mediators ( #440 )
2020-06-30 23:20:33 +03:00
Kirill Fedoseev
cfcc717b02
Add method for handling imbalance in SAI tokens ( #419 )
2020-05-12 20:14:55 +03:00
Kirill Fedoseev
1a32902da9
Remove unneeded checks in Zero DSR tests ( #414 )
2020-05-04 22:47:31 +03:00
Gerardo Nardelli
dcc7554341
Disable sai swap to dai ( #404 )
2020-04-16 11:07:25 +03:00
Kirill Fedoseev
adf9993208
Fix ChaiConnector behaviour when DSR is zero ( #400 )
2020-04-08 15:25:29 +03:00
Kirill Fedoseev
bfea462cd6
Update interest receiver ( #382 )
2020-03-28 22:04:59 +03:00
Kirill Fedoseev
c073e83067
Paying interest in chai to avoid the oracle misbehavior ( #380 )
2020-03-12 22:37:06 +03:00
Kirill Fedoseev
aebb1ed768
Chai integration internal audit fixes ( #372 )
2020-02-27 15:28:54 +03:00
Kirill Fedoseev
cf53cd7cba
Add restriction on claiming Chai token ( #368 )
2020-02-20 10:37:33 +03:00
Kirill Fedoseev
f35a2722d3
Earning interest with Chai for erc-to-native mode ( #356 )
2020-02-17 15:15:19 +03:00
Kirill Fedoseev
34a8d2fdc7
Single execute signatures ( #357 )
2020-01-20 17:46:56 +03:00
Kirill Fedoseev
06e4565886
Tests to cover max number of signatures ( #335 )
...
* Fixed Message library bug
* Added tests for covering max number of signatures
* Increased heap memory limit for coverage script
2019-12-19 01:25:59 +03:00
Kirill Fedoseev
c8e0f48bdf
Consistent checks for setMaxPerTx and setMinPerTx ( #330 )
2019-12-16 23:01:47 +03:00
Kirill Fedoseev
1a7a91ee76
Hardcoded max validators limit ( #331 )
...
* Added internal contract limit on validators list size
* Updated validators contracts tests. Testing possible out-of-gas situation.
2019-12-14 01:20:03 +03:00
Gerardo Nardelli
9504b832b1
Add support for two tokens in erc to native ( #319 )
2019-12-11 23:18:32 +03:00
Gerardo Nardelli
cc7718284d
Add method to migrate from SCD to MCD ( #311 )
2019-11-05 09:07:19 +03:00
Gerardo Nardelli
36afcf0019
Add alternative receiver for transfer in erc20 to native mode ( #294 )
...
* Add alternative receiver for erc20-to-native transfers
* Check limits in foreign erc20-to-native relayRequest
* Update initialize parameters in foreign erc20-to-native
2019-10-17 17:06:09 +03:00
fbranciard
63c11df4b5
decimal shift feature ( #268 )
...
* implementation proposal for decimal shift feature issue #243
2019-09-03 19:51:20 +03:00
Gerardo Nardelli
79de6a6319
Add missing events in initialize methods ( #262 )
2019-08-06 20:31:34 +02:00
Gerardo Nardelli
c28f956b6a
Add param check in setDailyLimit and setExecutionDailyLimit methods ( #255 )
2019-08-01 14:40:29 +02:00
Gerardo Nardelli
7990addf17
Increase code coverage ( #250 )
...
* Refactor mocks contract structure
* Add solcov ignore on covered lines not reported
* Lint fixes
* Ignore abstract methods in coverage report
* Add unit test for not covered methods
2019-08-01 14:36:46 +02:00
Gerardo Nardelli
73c01b2d91
Allow fixAssetsAboveLimits to fix partial amounts ( #247 )
...
* Allow fixAssetsAboveLimits to fix partial amounts
* Emit event in fixAssetsAboveLimits
* Increase patch version in BasicBridge
2019-07-31 17:33:18 +02:00
Gerardo Nardelli
b66a678648
Fix random method visibility in BaseFeeManager ( #246 )
...
* Reduce random visibility
* Add FeeManagerMock to test random method
* Fix lint:sol:prettier:fix npm script
2019-07-25 22:55:57 +02:00
Gerardo Nardelli
5a92a57c8f
fix fixAssetsAboveLimits imbalance if feeManager used ( #218 )
2019-07-01 20:26:25 +03:00
Gerardo Nardelli
5e845af7c9
Add fee value check ( #209 )
...
* Add fee value check
2019-06-28 16:36:37 +03:00
Gerardo Nardelli
c28770b1f6
Refactoring as per comments received on the security audit ( #203 )
...
* Remove duplicate modifier on claimTokens method
* Fix multiple reads of totalBurntCoins
* Remove parameter on setInitialize
* Remove status parameter on setFixedAssets
* Remove unused fireEventOnTokenTransfer on HomeBridgeErcToNative
* Redefine empty block methods on BasicHomeBridge
* Simplify signature method on BasicHomeBridge
* Add abi.encodePacked to deployedAtBlock on validators contracts
* Extract fallback implementation into separate method on HomeBridgeErcToNative and HomeBridgeNativeToErc
2019-06-28 16:22:05 +03:00
Gerardo Nardelli
a1f64ca6c5
Remove proxyOwner method from proxy contract ( #198 )
...
* Remove proxyOwner method from proxy
* Rename onlyProxyOwner
* Remove upgradeabilityAdmin
* Rename onlyIfOwnerOfProxy to onlyIfUpgradeabilityOwner
2019-06-27 23:44:09 +03:00
Gerardo Nardelli
942e6c4513
Update setBlockRewardContract method validations ( #197 )
...
* Update setBlockReward checks
2019-06-19 18:41:03 +03:00
Gerardo Nardelli
34d48efad7
Add linter for unit tests
2019-05-14 12:36:34 -03:00
Gerardo Nardelli
6bad8be39d
Fix unit tests
2019-05-14 11:22:31 -03:00
Gerardo Nardelli
786529ae9b
Merge branch 'develop' into 119-Epic-rewards-for-bridge-validators
...
# Conflicts:
# contracts/upgradeable_contracts/BasicHomeBridge.sol
# contracts/upgradeable_contracts/erc20_to_erc20/ForeignBridgeErcToErc.sol
# contracts/upgradeable_contracts/erc20_to_erc20/HomeBridgeErcToErc.sol
# contracts/upgradeable_contracts/native_to_erc20/ForeignBridgeNativeToErc.sol
# deploy/.env.example
# deploy/src/erc_to_erc/foreign.js
# deploy/src/loadEnv.js
2019-05-03 13:13:17 -03:00
Gerardo Nardelli
39c7d392e9
Fix FeeManagerErcToNativePOSDAO unit tests
2019-04-22 13:50:52 -03:00
Gerardo Nardelli
1f57b24ef8
Merge branch '119-Epic-rewards-for-bridge-validators' into #159-fee-erc-native-posdao-chain
...
# Conflicts:
# contracts/IBlockReward.sol
# contracts/test/BlockReward.sol
# deploy/.env.example
2019-04-22 12:58:34 -03:00
Gerardo Nardelli
4c8e664226
Emit event on fee distribution from transfer
2019-04-15 13:51:34 -03:00
Gerardo Nardelli
595315d6af
Avoid calling blockReward if zero value from foreign transfer on erc-to-native
2019-04-01 11:48:51 -03:00
Gerardo Nardelli
d2bdf62296
Add fee manager for erc-to-native in posdao chain
2019-03-15 16:06:49 -03:00
Gerardo Nardelli
e1787e6309
Refactor fee into homeFee and foreignFee
2019-02-01 17:06:19 -03:00