Changed public => external for deposit func in pools

This commit is contained in:
Thrilok Kumar 2020-09-13 03:24:25 +05:30
parent fd450b33ec
commit 6028f48ce3
2 changed files with 2 additions and 2 deletions

View File

@ -118,7 +118,7 @@ contract PoolToken is ReentrancyGuard, ERC20Pausable, DSMath {
* @param tknAmt token amount
* @return mintAmt amount of wrap token minted
*/
function deposit(uint tknAmt) public payable whenNotPaused returns (uint mintAmt) {
function deposit(uint tknAmt) external payable whenNotPaused returns (uint mintAmt) {
require(msg.value == 0, "non-eth-pool");
uint _tokenBal = wdiv(totalSupply(), exchangeRate);
uint _newTknBal = add(_tokenBal, tknAmt);

View File

@ -115,7 +115,7 @@ contract PoolETH is ReentrancyGuard, ERC20Pausable, DSMath {
* @param tknAmt token amount
* @return mintAmt amount of wrap token minted
*/
function deposit(uint tknAmt) public whenNotPaused payable returns (uint mintAmt) {
function deposit(uint tknAmt) external whenNotPaused payable returns (uint mintAmt) {
require(tknAmt == msg.value, "unmatched-amount");
uint _tokenBal = wdiv(totalSupply(), exchangeRate);
uint _newTknBal = add(_tokenBal, tknAmt);