Skip to content

Commit a7b83e3

Browse files
adapt Compound to use e8 instead of JS hack
1 parent fb92686 commit a7b83e3

File tree

8 files changed

+8
-18
lines changed

8 files changed

+8
-18
lines changed

examples/erc20/DeFi/Compound/cBAT.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
<ts:string xml:lang="en">Amount to withdraw</ts:string>
8383
</ts:name>
8484
<ts:origins>
85-
<ts:user-entry as="uint"/>
85+
<ts:user-entry as="e8"/>
8686
</ts:origins>
8787
</ts:attribute-type>
8888
<ts:transaction>

examples/erc20/DeFi/Compound/cDAI.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
<ts:string xml:lang="en">Amount to withdraw</ts:string>
8383
</ts:name>
8484
<ts:origins>
85-
<ts:user-entry as="uint"/>
85+
<ts:user-entry as="e8"/>
8686
</ts:origins>
8787
</ts:attribute-type>
8888
<ts:transaction>

examples/erc20/DeFi/Compound/cETH.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
<ts:string xml:lang="en">Amount to withdraw</ts:string>
6363
</ts:name>
6464
<ts:origins>
65-
<ts:user-entry as="uint"/>
65+
<ts:user-entry as="e8"/>
6666
</ts:origins>
6767
</ts:attribute-type>
6868
<ts:transaction>

examples/erc20/DeFi/Compound/cREP.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
<ts:string xml:lang="en">Amount to withdraw</ts:string>
8484
</ts:name>
8585
<ts:origins>
86-
<ts:user-entry as="uint"/>
86+
<ts:user-entry as="e8"/>
8787
</ts:origins>
8888
</ts:attribute-type>
8989
<ts:transaction>

examples/erc20/DeFi/Compound/cUSDC.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
<ts:string xml:lang="en">Amount to withdraw</ts:string>
8383
</ts:name>
8484
<ts:origins>
85-
<ts:user-entry as="uint"/>
85+
<ts:user-entry as="e8"/>
8686
</ts:origins>
8787
</ts:attribute-type>
8888
<ts:transaction>

examples/erc20/DeFi/Compound/cWBTC.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
<ts:string xml:lang="en">Amount to withdraw</ts:string>
8383
</ts:name>
8484
<ts:origins>
85-
<ts:user-entry as="uint"/>
85+
<ts:user-entry as="e8"/>
8686
</ts:origins>
8787
</ts:attribute-type>
8888
<ts:transaction>

examples/erc20/DeFi/Compound/cZRX.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
<ts:string xml:lang="en">Amount to withdraw</ts:string>
8383
</ts:name>
8484
<ts:origins>
85-
<ts:user-entry as="uint"/>
85+
<ts:user-entry as="e8"/>
8686
</ts:origins>
8787
</ts:attribute-type>
8888
<ts:transaction>

examples/erc20/DeFi/Compound/withdraw.en.shtml

+1-11
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,4 @@
11
<script type="text/javascript" src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
2-
<script type="text/javascript">
3-
$(() => {
4-
window.onConfirm = () => {
5-
//Hacky fix for 2019/05 schemas
6-
var value = parseFloat($("#amt").val() * 1e+8);
7-
$("#redeemAmount").val(value);
8-
}
9-
});
10-
</script>
112
<script type="text/javascript"><![CDATA[
123
class Token {
134

@@ -56,8 +47,7 @@ class Token {
5647
</div>
5748
<div id="inputBox">
5849
<bold><h3>Withdraw ${this.props.name} for ${this.props.underlyingToken} from Compound</h3></bold>
59-
<span><input id="redeemAmount" type="hidden"></span>
60-
<span><input id="amt" type="number"></span>
50+
<span><input id="redeemAmount" type="number"></span>
6151
</div>
6252
</div>`;
6353
}

0 commit comments

Comments
 (0)