Skip to content

require the user enable DeFi services before making a supply/withdraw tx #250

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

Merged
merged 2 commits into from
Sep 30, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE token [
<!ENTITY style SYSTEM "shared.css">
<!ENTITY style SYSTEM "../shared.css">
<!ENTITY mint.en SYSTEM "supply.en.shtml">
<!ENTITY redeem.en SYSTEM "withdraw.en.shtml">
<!ENTITY enable.en SYSTEM "enable.en.shtml">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE token [
<!ENTITY style SYSTEM "shared.css">
<!ENTITY style SYSTEM "../shared.css">
<!ENTITY supply.en SYSTEM "supply.en.shtml">
<!ENTITY withdraw.en SYSTEM "withdraw.en.shtml">
<!ENTITY enable.en SYSTEM "enable.en.shtml">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE token [
<!ENTITY style SYSTEM "shared.css">
<!ENTITY style SYSTEM "../shared.css">
<!ENTITY mint.en SYSTEM "supply.en.shtml">
<!ENTITY redeem.en SYSTEM "withdraw.en.shtml">
]>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE token [
<!ENTITY style SYSTEM "shared.css">
<!ENTITY style SYSTEM "../shared.css">
<!ENTITY mint.en SYSTEM "supply.en.shtml">
<!ENTITY redeem.en SYSTEM "withdraw.en.shtml">
<!ENTITY enable.en SYSTEM "enable.en.shtml">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE token [
<!ENTITY style SYSTEM "shared.css">
<!ENTITY style SYSTEM "../shared.css">
<!ENTITY mint.en SYSTEM "supply.en.shtml">
<!ENTITY redeem.en SYSTEM "withdraw.en.shtml">
<!ENTITY enable.en SYSTEM "enable.en.shtml">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE token [
<!ENTITY style SYSTEM "shared.css">
<!ENTITY style SYSTEM "../shared.css">
<!ENTITY mint.en SYSTEM "supply.en.shtml">
<!ENTITY redeem.en SYSTEM "withdraw.en.shtml">
<!ENTITY enable.en SYSTEM "enable.en.shtml">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE token [
<!ENTITY style SYSTEM "shared.css">
<!ENTITY style SYSTEM "../shared.css">
<!ENTITY mint.en SYSTEM "supply.en.shtml">
<!ENTITY redeem.en SYSTEM "withdraw.en.shtml">
<!ENTITY enable.en SYSTEM "enable.en.shtml">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ class Token {
let message = "";
if(this.props.allowance > 0) {
message = "Compound " + this.props.name + " is already enabled";
window.onConfirm = function() { window.close(); }
} else {
message = "Please enable compound " + this.props.name + " before supplying or withdrawing";
}
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ class Token {
render() {
let message = "";
if(this.props.allowance > 0) {
message = "iDAI is already enabled, no need to click confirm";
message = "iDAI is already enabled";
window.onConfirm = function() { window.close(); }
} else {
message = "Please enable iDAI by clicking confirm";
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE token [
<!ENTITY style SYSTEM "shared.css">
<!ENTITY style SYSTEM "../shared.css">
<!ENTITY supply.en SYSTEM "supply.en.shtml">
<!ENTITY withdraw.en SYSTEM "withdraw.en.shtml">
<!ENTITY enable.en SYSTEM "enable.en.shtml">
Expand Down
56 changes: 56 additions & 0 deletions examples/erc20/DeFi/iDAI/supply.en.shtml

Large diffs are not rendered by default.

Large diffs are not rendered by default.

File renamed without changes.
38 changes: 0 additions & 38 deletions examples/erc20/iDAI/Makefile

This file was deleted.

98 changes: 0 additions & 98 deletions examples/erc20/iDAI/shared.css

This file was deleted.

36 changes: 0 additions & 36 deletions examples/erc20/iDAI/supply.en.shtml

This file was deleted.