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 {
76
76
/// @param to The beneficiary wallet.
77
77
/// @param amples The amount of AMPLs to deposit.
78
78
/// @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 ) {
80
80
uint256 wamples = _ampleToWample (amples, _queryAMPLSupply ());
81
81
82
82
IERC20 (_ampl).safeTransferFrom (_msgSender (), address (this ), amples);
Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ describe('WAMPL:deposit', () => {
132
132
} )
133
133
} )
134
134
135
- describe ( 'WAMPL:depositTo ' , ( ) => {
135
+ describe ( 'WAMPL:depositFor ' , ( ) => {
136
136
beforeEach ( 'setup WAMPL contract' , setupContracts )
137
137
138
138
let r : any , amplesDeposited : BigNumber , wamplesMinted : BigNumber
@@ -147,7 +147,7 @@ describe('WAMPL:depositTo', () => {
147
147
)
148
148
149
149
await ampl . connect ( deployer ) . approve ( wAMPL . address , amplesDeposited )
150
- r = wAMPL . connect ( deployer ) . depositTo ( userBAddress , amplesDeposited )
150
+ r = wAMPL . connect ( deployer ) . depositFor ( userBAddress , amplesDeposited )
151
151
await r
152
152
} )
153
153
You can’t perform that action at this time.
0 commit comments