File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ contract WAMPL is ERC20, ERC20Permit {
7676 /// @param to The beneficiary wallet.
7777 /// @param amples The amount of AMPLs to deposit.
7878 /// @return The number of wAMPLs minted.
79- function depositTo (address to , uint256 amples ) external returns (uint256 ) {
79+ function depositFor (address to , uint256 amples ) external returns (uint256 ) {
8080 uint256 wamples = _ampleToWample (amples, _queryAMPLSupply ());
8181
8282 IERC20 (_ampl).safeTransferFrom (_msgSender (), address (this ), amples);
Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ describe('WAMPL:deposit', () => {
132132 } )
133133} )
134134
135- describe ( 'WAMPL:depositTo ' , ( ) => {
135+ describe ( 'WAMPL:depositFor ' , ( ) => {
136136 beforeEach ( 'setup WAMPL contract' , setupContracts )
137137
138138 let r : any , amplesDeposited : BigNumber , wamplesMinted : BigNumber
@@ -147,7 +147,7 @@ describe('WAMPL:depositTo', () => {
147147 )
148148
149149 await ampl . connect ( deployer ) . approve ( wAMPL . address , amplesDeposited )
150- r = wAMPL . connect ( deployer ) . depositTo ( userBAddress , amplesDeposited )
150+ r = wAMPL . connect ( deployer ) . depositFor ( userBAddress , amplesDeposited )
151151 await r
152152 } )
153153
You can’t perform that action at this time.
0 commit comments