Skip to content

Commit d95968e

Browse files
committed
Renamed deposit function
1 parent fb474f7 commit d95968e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

contracts/WAMPL.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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);

test/unit/WAMPL.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)