Commit Graph

98 Commits

Author SHA1 Message Date
Kirill Fedoseev 7579b5249e
Separate XDaiForeignBridge contract with compound and GSN support (#626) 2021-08-18 13:51:51 +03:00
Kirill Fedoseev 7d4a0c6d25
Stricter preconditions for payInterest (#623) 2021-08-16 22:16:00 +03:00
Leonid Tyurin de37e25b4b
Fix issues with packages versions and linter (#600) 2021-05-07 00:27:41 -06: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 816c4b1f23
Warning for admins about fee value changing on working bridge (#545) 2020-10-31 00:01:36 +03: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 2def0318bb
Add missing fix mediator balance (#510) 2020-10-15 20:27:12 +03:00
Kirill Fedoseev 3c18c12d39
Add missing zero address checks (#503) 2020-10-14 22:58:34 +03:00
Kirill Fedoseev df296d1790
Restrict relay of tokens for other user (#475) 2020-08-22 22:30:27 +03:00
Kirill Fedoseev cc3c888960
Multi AMB-ERC20-TO-ERC677 mediators (#455) 2020-08-01 04:22:35 +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 15d4d3e133
Use uint256[N] instead of uint256[] (#447) 2020-07-10 17:41:38 +03:00
Kirill Fedoseev de50e600fb
Add erc-to-native mediators (#440) 2020-06-30 23:20:33 +03:00
Gerardo Nardelli 0a7b10e77e
Add native to erc20 mediator on top of AMB (#367) 2020-05-16 21:02:25 +03:00
Kirill Fedoseev cfcc717b02
Add method for handling imbalance in SAI tokens (#419) 2020-05-12 20:14:55 +03:00
Gerardo Nardelli dcc7554341
Disable sai swap to dai (#404) 2020-04-16 11:07:25 +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
varasev 39dccf9c9e
Rename reward functions (#370) 2020-02-20 22:23:14 +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 1c8ee41fd4 Added Initialize functions access control modifier (#333) 2019-12-24 17:41:06 +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 39910b771b Add alternative receiver for transfer in erc20 to erc20 mode (#305)
* Add alternative receiver for transfer in erc20 to erc20 mode
* Check limits in foreign erc20-to-erc20 relayRequest
* Add relayRequest unit test for foreign erc20-to-erc20
* Update initialize parameters in foreign erc20-to-erc20
2019-10-25 15:33:40 +03:00
Gerardo Nardelli c0ee60806d Add alternative receiver for transfer in native to erc20 mode (#302) 2019-10-23 18:46:48 +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
Max Alekseenko 165d828437 Use hex-identifiers directly instead of runtime hash calculation (#303) 2019-10-11 11:36:37 +03:00
Gerardo Nardelli f7265bfee4 Update project dependencies to latest versions (#283)
* Update dependencies
* Apply prettier format
2019-09-10 00:27:45 +03:00
Gerardo Nardelli 83900ea971 Add erc677 to erc677 bridge on top of AMB (#273)
Closes #267
2019-09-09 16:07:24 +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 3a1d4d87b7 Move mappings key to constants (#261) 2019-08-05 22:10:53 +02:00
Gerardo Nardelli b20968c16c Check proxy upgrade contract code (#256)
* Remove isContract methods in favor of openzeppelin-solidity AddressUtils
* Check proxy implementation is contract
2019-08-01 14:44:51 +02:00
Gerardo Nardelli dc099b872b Add Solhint solidity linter (#240)
* Add solhint and prettier for solidity
* Apply prettier styles on contracts
* Fix solhint warnings
* Run js and solidity linter on travis
2019-07-22 07:19:24 +03:00
Gerardo Nardelli e8217f1276 Use external modifier instead of public (#236) 2019-07-17 15:03:02 +03:00
Gerardo Nardelli 4ae49f1cba Remove duplicated checks of contracts (#225) 2019-07-03 19:19:01 +03:00
Gerardo Nardelli 27458bfc90 Remove duplicated logic on top of withinExecutionLimit (#223)
* Replace affirmationWithinLimits with withinExecutionLimit on BasicHomeBridge
* Replace messageWithinLimits with withinExecutionLimit on BasicForeignBridge
2019-07-03 18:14:06 +03:00
Gerardo Nardelli 90a7a80112 Use OpenZeppelin SafeMath (#222)
* Fix openzeppelin-solidity version
* Remove own SafeMath library in favor of openzeppelin
2019-07-03 14:10:21 +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 eb75d2d674 Ignore contract interfaces on test coverage report (#200)
* Move interfaces to separate folder
* Ignore interfaces folder on coverage report
2019-06-27 22:41:45 +03:00
Gerardo Nardelli 942e6c4513 Update setBlockRewardContract method validations (#197)
* Update setBlockReward checks
2019-06-19 18:41:03 +03:00
Gerardo Nardelli 04069bbb7e Update FeeManagerErcToNativePOSDAO to extend BlockRewardFeeManager 2019-04-22 13:49:17 -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 f7cb8d253e Update getAmountToBurn method signature 2019-04-22 11:55:11 -03:00