Skip to content

Commit

Permalink
fix: use broadcaster as user
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulRBerg committed Oct 11, 2023
1 parent 5684a88 commit ad0fb33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script/ExactlyDraft.sol
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ contract ExactlyDraftScript is BaseScript {
function run() public virtual broadcast returns (uint256[] memory streamIds) {
// Deploy an instance of PRBProxy. For more info, see:
// https://docs.sablier.com/contracts/v2/guides/proxy-architecture/overview
// IPRBProxy proxy = PROXY_REGISTRY.getProxy({ user: address(this) });
// IPRBProxy proxy = PROXY_REGISTRY.getProxy({ user: broadcaster });
// if (address(proxy) == address(0)) {
// proxy = PROXY_REGISTRY.deployAndInstallPlugin({ plugin: IPRBProxyPlugin(SABLIER_PROXY_PLUGIN) });
// }

// // Approve the proxy to transfer $EXA
uint256 allowance = EXA.allowance({ owner: address(this), spender: address(SABLIER_LOCKUP_DYNAMIC) });
uint256 allowance = EXA.allowance({ owner: broadcaster, spender: address(SABLIER_LOCKUP_DYNAMIC) });
if (allowance < AGGREGATE_AMOUNT) {
EXA.approve({ spender: address(SABLIER_LOCKUP_DYNAMIC), amount: AGGREGATE_AMOUNT });
}
Expand Down

0 comments on commit ad0fb33

Please sign in to comment.