Skip to content

Commit a37e983

Browse files
authored
audit: remove payable from vault functions (#413)
1 parent a5f6d9f commit a37e983

1 file changed

Lines changed: 2 additions & 12 deletions

File tree

solidity/src/vaults/OneWayVault.sol

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -586,12 +586,7 @@ contract OneWayVault is
586586
* @param receiver Address to receive the withdrawn assets on the destination domain (as string)
587587
* @param owner Address that owns the shares
588588
*/
589-
function withdraw(uint256 assets, string calldata receiver, address owner)
590-
public
591-
payable
592-
nonReentrant
593-
whenNotPaused
594-
{
589+
function withdraw(uint256 assets, string calldata receiver, address owner) public nonReentrant whenNotPaused {
595590
if (_checkAndHandleStaleRate()) {
596591
return; // Exit early if vault was just paused
597592
}
@@ -629,12 +624,7 @@ contract OneWayVault is
629624
* @param receiver Address to receive the redeemed assets on destination domain (as string)
630625
* @param owner Address that owns the shares
631626
*/
632-
function redeem(uint256 shares, string calldata receiver, address owner)
633-
public
634-
payable
635-
nonReentrant
636-
whenNotPaused
637-
{
627+
function redeem(uint256 shares, string calldata receiver, address owner) public nonReentrant whenNotPaused {
638628
if (_checkAndHandleStaleRate()) {
639629
return; // Exit early if vault was just paused
640630
}

0 commit comments

Comments
 (0)