Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support token migration #224

Merged
merged 9 commits into from
Nov 6, 2019
Merged

Support token migration #224

merged 9 commits into from
Nov 6, 2019

Conversation

patitonar
Copy link
Contributor

This PR includes changes explained here https://forum.poa.network/t/migration-to-mcd-for-xdai-bridge/3136

  • The oracle Transfer watcher will discard transfers that includes a TokensSwapped event in the same transaction.

  • The monitor was updated to also filter the Transfer events that includes a TokensSwapped event in the same transaction and to get Transfer events of previous token used to correctly calculate the results.

Tested the implementation with MakerDAO contracts in Sokol - Kovan testnets:

Sai Address: 0xc4375b7de8af5a38a93548eb8453a498222c4ff2
Dai Address: 0x1d7e3a1a65a367db1d1d3f51a54ac01a2c4c92ff
ScdMcdMigration Address: 0x97cb5a9abcdbe291d0cd85915fa5b08746fe948a

HomeBridge: 0x6E4b2262CFD96Af188C2c3Aae21a24a53A88E9F4
ForeignBridge: 0x4F7925718A2492BD41D77D9F81552535E72A2090
migrateToMCD call: 0x332c540a8c711a680167088fdf3732399f33707f07a08f56dde41a4f0b9377ac

@patitonar patitonar added oracle related to TokenBridge oracle monitor related to TokenBridge monitor labels Nov 1, 2019
@patitonar patitonar requested a review from akolotov November 1, 2019 20:27
@patitonar patitonar self-assigned this Nov 1, 2019
@akolotov akolotov merged commit 346fa1e into develop Nov 6, 2019
@akolotov akolotov deleted the support-token-swap branch November 6, 2019 19:49
akolotov added a commit that referenced this pull request Nov 12, 2019
…230

* Support alternative receiver in Oracle (#221)
* Support alternative receiver feature in Monitor (#223)
* Support token migration (#224)
* Fix suggested gas price in transaction for ui production build (#222)
* Updated links to new repo with tokenbridge contracts (#226)
* Update the contract's submodule to the release 3.2.0 (#228)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
monitor related to TokenBridge monitor oracle related to TokenBridge oracle
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants